Project: JDT
Bug 10597 JavaModelException after renaming method
Reported: 2002-03-01 12:38:12 | Status: resolved fixed

20020228 I renamed a method and the parent type was showing in the type hierarchy. 4 org.eclipse.jdt.ui 1 Internal Error Java Model Exception: Java Model Status [createRetryQueryWithNoWorkingDirectory does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:452) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy (JavaElement.java:481) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo (JavaElement.java:269) at org.eclipse.jdt.internal.core.SourceMethod.isConstructor (SourceMethod.java:133) at org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabels.getMethodLabel (JavaElementLabels.java:339) at org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabels.getElementLabel (JavaElementLabels.java:292) at org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabels.getElementLabel (JavaElementLabels.java:272) at org.eclipse.jdt.internal.ui.viewsupport.StatusBarUpdater.formatJavaElementMessag e(StatusBarUpdater.java:76) at org.eclipse.jdt.internal.ui.viewsupport.StatusBarUpdater.formatMessage (StatusBarUpdater.java:66) at org.eclipse.jdt.internal.ui.viewsupport.StatusBarUpdater.selectionChanged (StatusBarUpdater.java:51) at org.eclipse.jdt.internal.ui.typehierarchy.SelectionProviderMediator.fireSelectio nChanged(SelectionProviderMediator.java:105) at org.eclipse.jdt.internal.ui.typehierarchy.SelectionProviderMediator.propagateFoc usChanged(SelectionProviderMediator.java:94) at org.eclipse.jdt.internal.ui.typehierarchy.SelectionProviderMediator.doFocusChang ed(SelectionProviderMediator.java:78) at org.eclipse.jdt.internal.ui.typehierarchy.SelectionProviderMediator.access$1 (SelectionProviderMediator.java:75) at org.eclipse.jdt.internal.ui.typehierarchy.SelectionProviderMediator$InternalList ener.focusGained(SelectionProviderMediator.java:39) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:100) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:74) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:841) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:827) at org.eclipse.swt.widgets.Control.WM_SETFOCUS(Control.java:3694) at org.eclipse.swt.widgets.Table.WM_SETFOCUS(Table.java:2252) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2710) at org.eclipse.swt.widgets.Display.windowProc(Display.java:1806) at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method) at org.eclipse.swt.widgets.Control.forceFocus(Control.java:572) at org.eclipse.swt.widgets.Decorations.restoreFocus (Decorations.java:608) at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE (Decorations.java:1255) at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:962) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2652) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1225) at org.eclipse.swt.widgets.Display.windowProc(Display.java:1806) at org.eclipse.swt.internal.win32.OS.DestroyWindow(Native Method) at org.eclipse.swt.widgets.Control.destroyWidget(Control.java:485) at org.eclipse.swt.widgets.Widget.dispose(Widget.java:356) at org.eclipse.swt.widgets.Shell.dispose(Shell.java:402) at org.eclipse.jface.window.Window.close(Window.java:220) at org.eclipse.jface.wizard.WizardDialog.hardClose (WizardDialog.java:625) at org.eclipse.jface.wizard.WizardDialog.finishPressed (WizardDialog.java:579) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:311) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:363) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:74) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1420) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.jface.window.Window.runEventLoop(Window.java:538) at org.eclipse.jface.window.Window.open(Window.java:525) at org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter.activate (RefactoringStarter.java:78) at org.eclipse.jdt.internal.ui.refactoring.RefactoringSupportFactory$RenameSupport. rename(RefactoringSupportFactory.java:73) at org.eclipse.jdt.internal.ui.reorg.RenameAction.run (RenameAction.java:37) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:74) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:637) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1420) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1208) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:788) at org.eclipse.ui.internal.Workbench.run(Workbench.java:771) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362)

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.java