Project: Eclipse_Platform_UI
Bug 49494 [RCP] [Contributions] IllegalArgumentException: Group not found: group.editor
Reported: 2004-01-03 17:40:29 | Status: resolved fixed

When opening a text editor it tries to append some actions to "group.editor", and gets an exception if that group doesn't exist, for example if you try to use the editor in an RCP application that doesn't have any tool bars. java.lang.IllegalArgumentException: Group not found: group.editor at org.eclipse.jface.action.ContributionManager.addToGroup (ContributionManager.java:113) at org.eclipse.jface.action.ContributionManager.prependToGroup (ContributionManager.java:337) at org.eclipse.ui.internal.EditorActionBars.getToolBarManager (EditorActionBars.java:164) at org.eclipse.ui.part.EditorActionBarContributor.init (EditorActionBarContributor.java:154) at org.eclipse.ui.editors.text.TextEditorActionContributor.init (TextEditorActionContributor.java:101) at org.eclipse.ui.part.EditorActionBarContributor.init (EditorActionBarContributor.java:133) at org.eclipse.ui.internal.EditorManager.createEditorActionBars (EditorManager.java:228) at org.eclipse.ui.internal.EditorManager.createSite (EditorManager.java:574) at org.eclipse.ui.internal.EditorManager.openInternalEditor (EditorManager.java:628) at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor (EditorManager.java:433) at org.eclipse.ui.internal.EditorManager.openEditor (EditorManager.java:421) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor (WorkbenchPage.java:2047) at org.eclipse.ui.internal.WorkbenchPage.access$6 (WorkbenchPage.java:1990) at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:1977) at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:84) at org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:1972) at org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:1955) at org.eclipsepowered.rcptutorial3.actions.OpenAction.openFile (OpenAction.java:46) at org.eclipsepowered.rcptutorial3.actions.OpenAction.run (OpenAction.java:29) at org.eclipse.ui.internal.PluginAction.runWithEvent (PluginAction.java:271) at org.eclipse.ui.internal.WWinPluginAction.runWithEvent (WWinPluginAction.java:207) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:509) at org.eclipse.jface.action.ActionContributionItem.access$2 (ActionContributionItem.java:461) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent (ActionContributionItem.java:408) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2311) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1992) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1506) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1482) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:246) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139) at org.eclipsepowered.rcptutorial3.RcpApplication.run (RcpApplication.java:11) at org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:226) at org.eclipse.core.runtime.adaptor.EclipseStarter.run (EclipseStarter.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:279) at org.eclipse.core.launcher.Main.run(Main.java:742) at org.eclipse.core.launcher.Main.main(Main.java:581)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorActionBars.java