Eclipse bug # 26028, diff revision: r1.11 - r1.12
Path: org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java
public ITextHovergetCurrentTextHover() {
+ if (fTextHoverManager== null)
+ return null;
return fTextHoverManager.getCurrentTextHover();
}
Eclipse bug # 12525, diff revision: r1.15 - r1.16
Path: org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractMethodAnalyzer.java
protected void handleNextSelectedNode(ASTNodenode){
- checkParent(node);
+ super.handleNextSelectedNode(node);
- super.handleNextSelectedNode(node);
+ checkParent(node);
}
Eclipse bug # 8388, diff revision: r1.7.2.1 - r1.7.2.2
Path: org.eclipse.jdt.debug/model/org/eclipse/jdt/internal/debug/core/hcr/JavaHotCodeReplaceManager.java
if (buildTime== null) {
+ buildTime= new ProjectBuildTime();
fProjectBuildTimes.put(project, buildTime);
}
buildTime.setCurrentBuildDate(currentDate);
Eclipse bug # 4376, diff revision: r1.24 - r1.25
Path: org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/core/refactoring/Checks.java
for (int i= 0; i < grouped.length; i++){
IResource resource= grouped[i].getResource();
if (unsavedFileList.contains(resource)){
status.addError(RefactoringCoreMessages.getFormattedString("Checks.not_saved",
resource.getFullPath().toString())); //$NON-NLS-1$
continue; //removed, go to the next one
}
+ IJavaElement element= JavaCore.create(resource);
+ if (! (element instanceof ICompilationUnit))
+ continue;
ICompilationUnitcu= (ICompilationUnit)
JavaCore.create(resource);
if (! cu.isStructureKnown()){
String path= AbstractRefactoringASTAnalyzer.getFullPath(cu);
status.addError(RefactoringCoreMessages.getFormattedString("Checks.cannot_be_parsed",
path)); //$NON-NLS-1$
continue; //removed, go to the next one
}
result.add(grouped[i]);
}
Eclipse Bug # 13866, diff revision: r1.6 - r1.7
Path: org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/InstanceOfOperator.java
public void execute() throws CoreException {
IJavaTypetype= (IJavaType)pop();
- IJavaObjectobject= (IJavaObject)pop();
+ IJavaObjectobject= (IJavaObject)popValue();
IJavaObject classObject= getClassObject(type);
if (classObject == null) {
throw new CoreException(null);
} else {
push(classObject);
push(object);
SendMessage send= new SendMessage(IS_INSTANCE,IS_INSTANCE_SIGNATURE,1,false, -1);
execute(send);
// Do not pop because the result is left on the stack.
}
}
Eclipse bug # 96964, diff revision: r1.4 - r1.5
path: org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/StratumTests.java
try {
thread= launchToBreakpoint(typeName);
assertNotNull("Breakpoint not hit within timeout period", thread);
- IJavaClassType type = ((IJavaStackFrame)thread.getTopStackFrame()).getDeclaringType();
+ IJavaReferenceType type = ((IJavaStackFrame)thread.getTopStackFrame()).getReferenceType();
String[] strata = type.getAvailableStrata();
assertEquals("Wrong number of available strata", 1, strata.length);
assertEquals("Wrong strata", "Java", strata[0]);
}
Eclipse Bug # 67437, diff revision: r1.3 -r1.4
Path: org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ContainerGenerator.java
public void run(IProgressMonitor monitor) throws CoreException {
monitor.beginTask(FileBuffersMessages.getString("ContainerGenerator.task.creatingContainer"),
1000 * fContainerFullPath.segmentCount()); //$NON-NLS-1$
if (fContainer != null)
return;
// Does the container exist already?
IWorkspaceRoot root= fWorkspace.getRoot();
- fContainer= (IContainer) root.findMember(fContainerFullPath);
+ IResource found= root.findMember(fContainerFullPath);
+ if (found instanceof IContainer) {
+ fContainer= (IContainer) found;
if (fContainer!= null)
return;
// Create the container for the given path
fContainer= root;
Eclipse Bug # 95012, diff revision: r1.33 - r1.34
Path: org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/extension/BaseExtensionPointMainPage.java
private void handlePluginBrowse(){
PluginSelectionDialog dialog = new PluginSelectionDialog(getShell(),
PDECore.getDefault().getModelManager().getWorkspaceModels(), false);
dialog.create();
if (dialog.open() == Window.OK){
- WorkspacePluginModelBase workspaceModelBase=(WorkspacePluginModelBase)dialog.getFirstResult();
+ IPluginModelBase workspaceModelBase=(IPluginModelBase)dialog.getFirstResult();
fPluginIdText.setText(workspaceModelBase.getPluginBase().getId());
}
}
Eclipse Bug # 110191, diff revision: r1.18 - r1.19
Path: org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/expression/ExpressionInformationControl.java
+ if (selections.length> 0) {
Object data =
selections[selections.length-1].getData();
IValueval= null;
if (data instanceofIndexedVariablePartition) {
// no details for parititions
return;
}
Eclipse Bug # 90412, diff revision: r1.71 - r1.72
Path: org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java
+ if (0 <= index && index < fFilteredProposals.length){
ICompletionProposalcurrent = fFilteredProposals[index];
item.setText(current.getDisplayString());
item.setImage(current.getImage());
item.setData(current);
+ }
Eclipse Bug # 15095, diff revision: r1.12 -r1.13
Path: org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/NewLocationWizard.java
// Exception validating. We can continue if the user wishes.
if (error.isMultiStatus() && error.getChildren().length == 1) {
- error = error.getChildren()[1];
+ error = error.getChildren()[0];
}
Eclipse Bug # 137782, diff revision: r1.44 - r1.45
Path: org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousTreeViewer.java
- fTree.clear(fTree.indexOf(item), true);
+ int index = fTree.indexOf(item);
+ if (index >= 0)
+ fTree.clear(index, true);
Eclipse Bug # 136633, diff revision: 1.165 -r1.166
Path: org.eclipse.swt/Eclipse SWT/emulated/treetable/org/eclipse/swt/widgets/Table.java
void redrawItem (int itemIndex, boolean focusBoundsOnly) {
- if (!items [itemIndex].isInViewport ()) return;
+ if (itemIndex < itemsCount && !items [itemIndex].isInViewport ()) return;
}