Bug 7041 - Rename a Java source file does not work
Summary: Rename a Java source file does not work
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Dirk Baeumer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-18 10:17 EST by Michael Fraenkel CLA
Modified: 2002-01-17 12:08 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Fraenkel CLA 2001-12-18 10:17:11 EST
In the 20011217 build, if you attempt to rename a java source, you get the 
following exception:

org.eclipse.jface.util.Assert$AssertionFailedException: null argument;Must 
call initializeDialogUnits before calling this method
        at org.eclipse.jface.util.Assert.isNotNull(Assert.java:133)
        at org.eclipse.jface.dialogs.DialogPage.convertWidthInCharsToPixels
(DialogPage.java:157)
        at 
org.eclipse.jdt.internal.ui.refactoring.ErrorWizardPage.createTableViewer
(ErrorWizardPage.java:226)
        at 
org.eclipse.jdt.internal.ui.refactoring.ErrorWizardPage.createControl
(ErrorWizardPage.java:203)
        at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:164)
        at org.eclipse.jface.wizard.WizardDialog.createPageControls
(WizardDialog.java:504)
        at org.eclipse.jface.wizard.WizardDialog.createContents
(WizardDialog.java:455)
        at org.eclipse.jface.window.Window.create(Window.java:237)
        at org.eclipse.jface.window.Window.open(Window.java:510)
        at 
org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringAction.activateRefac
toringWizard(RefactoringAction.java:111)
        at 
org.eclipse.jdt.internal.ui.reorg.RefactoringSupportFactory$RenameSupport.renam
e(RefactoringSupportFactory.java:57)
        at org.eclipse.jdt.internal.ui.reorg.RenameAction.run
(RenameAction.java:36)
        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
(Compiled Code))
        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
        at org.eclipse.ui.internal.Workbench.run(Workbench.java:762)
        at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:820)
        at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
        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)
Comment 1 Erich Gamma CLA 2001-12-18 11:07:11 EST
pls see: 7039. The assertion will be removed for the 20011217 integration build.
However, should adapt our code to make it conform to the wizard API spec.
Comment 2 Dirk Baeumer CLA 2002-01-17 12:08:47 EST
Added call initializeDialogUnits to conform to new API.