Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 131434 - It is impossible to set an editor without an icon
Summary: It is impossible to set an editor without an icon
Status: RESOLVED DUPLICATE of bug 129765
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-11 14:26 EST by David Goetschmann CLA
Modified: 2006-03-11 15:09 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 David Goetschmann CLA 2006-03-11 14:26:07 EST
Hi there.

I found an error with a custom editor. In fact, the editor ID was good (cf the following stacktrace). The problem was I did't set any icon for this editor. 
I define an icon for the editor and this bug disappear.


org.eclipse.ui.PartInitException: Unable to open editor, unknown editor ID: ch.comem.rcp.dcm.editors.dvdeditor
	at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:661)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2390)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2325)
	at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2317)
	at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2303)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2298)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2275)
	at ch.comem.rcp.dcm.views.CollectionView$1.doubleClick(CollectionView.java:39)
	at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:759)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
	at org.eclipse.core.runtime.Platform.run(Platform.java:816)
	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
	at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:757)
	at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.java:991)
	at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1098)
	at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:220)
	at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:217)
	at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:276)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1074)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3158)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2838)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1899)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1863)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:417)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at rcp.Application.run(Application.java:18)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:99)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:374)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169)
	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:585)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)
Comment 1 Wassim Melhem CLA 2006-03-11 15:09:48 EST

*** This bug has been marked as a duplicate of 129765 ***