Community
Participate
Working Groups
i get a NPE when trying to open the code formatter in M8: !ENTRY org.eclipse.ui 4 4 Mrz 27, 2004 10:55:05.765 !MESSAGE Unhandled event loop exception !ENTRY org.eclipse.ui 4 0 Mrz 27, 2004 10:55:05.765 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.ui.preferences.formatter.WhiteSpaceTabPage$JavaElementComponent.innerViewerChanged(WhiteSpaceTabPage.java:336) at org.eclipse.jdt.internal.ui.preferences.formatter.WhiteSpaceTabPage$JavaElementComponent.refreshState(WhiteSpaceTabPage.java:267) at org.eclipse.jdt.internal.ui.preferences.formatter.WhiteSpaceTabPage$JavaElementComponent.initialize(WhiteSpaceTabPage.java:275) at org.eclipse.jdt.internal.ui.preferences.formatter.WhiteSpaceTabPage$SwitchComponent.initialize(WhiteSpaceTabPage.java:417) at org.eclipse.jdt.internal.ui.preferences.formatter.WhiteSpaceTabPage.initializePage(WhiteSpaceTabPage.java:457) at org.eclipse.jdt.internal.ui.preferences.formatter.ModifyDialogTabPage.createContents(ModifyDialogTabPage.java:573) at org.eclipse.jdt.internal.ui.preferences.formatter.ModifyDialog.addTabPage(ModifyDialog.java:199) at org.eclipse.jdt.internal.ui.preferences.formatter.ModifyDialog.createDialogArea(ModifyDialog.java:127) at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:556) at org.eclipse.jface.window.Window.create(Window.java:350) at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:859) at org.eclipse.jdt.internal.ui.dialogs.StatusDialog.create(StatusDialog.java:103) at org.eclipse.jdt.internal.ui.preferences.formatter.ModifyDialog.create(ModifyDialog.java:97) at org.eclipse.jface.window.Window.open(Window.java:639) at org.eclipse.jdt.internal.ui.preferences.formatter.CodingStyleConfigurationBlock$ButtonController.modifyButtonPressed(CodingStyleConfigurationBlock.java:172) at org.eclipse.jdt.internal.ui.preferences.formatter.CodingStyleConfigurationBlock$ButtonController.widgetSelected(CodingStyleConfigurationBlock.java:149) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
Created attachment 8941 [details] zipped .log file
i copied the workspace from M7 and integration builds
it works with a newly created workspace
Move to JDT/UI.
It also won't bring up the the page for the built-in ones (with the "Show..." button). I even removed by preferences and tried again, no luck.
fixed > 20040329
*** Bug 56442 has been marked as a duplicate of this bug. ***
*** Bug 56652 has been marked as a duplicate of this bug. ***
The workaround for the nasty bug is: - shutdown eclipse - find the file .metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml in your workspace - find the string 'key="org.eclipse.jdt.uiformatter_page.white_space.java_view.inner"' and change the following value to 'value="0"' - you can also delete the who file 'dialog_settings.xml': you will loose some saved state of dialogs, e.g. last opened size, last browsed lcoation; but nothing serious. - restart eclipse
*** Bug 59532 has been marked as a duplicate of this bug. ***
*** Bug 60433 has been marked as a duplicate of this bug. ***