[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] CEditor bombs in M5
|
Thanks, Ed,
I'm downloading M5 now and will give it a try. Should have an answer
shortly after lunch.
Doug Schaefer
Senior Staff Software Engineer
Rational - the software development company
Ottawa (Kanata), Ontario, Canada
-----Original Message-----
From: Ed Burnette [mailto:Ed.Burnette@xxxxxxx]
Sent: Monday, February 10, 2003 11:40 AM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] CEditor bombs in M5
With M5 and CDT20030127 (that's the latest build I could find) I'm getting a
NPE in :
Thread [main] (Suspended (exception java.lang.NullPointerException))
org.eclipse.cdt.internal.ui.editor.CEditor(org.eclipse.ui.editors.text.TextE
ditor).createPartControl(org.eclipse.swt.widgets.Composite) line: 646
org.eclipse.cdt.internal.ui.editor.CEditor.createPartControl(org.eclipse.swt
.widgets.Composite) line: 686
org.eclipse.ui.internal.PartPane$4.run() line: 138
org.eclipse.core.internal.runtime.InternalPlatform.run(org.eclipse.core.runt
ime.ISafeRunnable) line: 867
org.eclipse.core.runtime.Platform.run(org.eclipse.core.runtime.ISafeRunnable
) line: 413
org.eclipse.ui.internal.EditorPane(org.eclipse.ui.internal.PartPane).createC
hildControl() line: 134
org.eclipse.ui.internal.EditorPane(org.eclipse.ui.internal.PartPane).createC
ontrol(org.eclipse.swt.widgets.Composite) line: 183
org.eclipse.ui.internal.EditorWorkbook.createPage(org.eclipse.ui.internal.Ed
itorPane) line: 393
org.eclipse.ui.internal.EditorWorkbook.add(org.eclipse.ui.internal.LayoutPar
t) line: 95
org.eclipse.ui.internal.EditorArea.addEditor(org.eclipse.ui.internal.EditorP
ane) line: 49
org.eclipse.ui.internal.EditorPresentation.openEditor(org.eclipse.ui.IEditor
Reference, boolean) line: 352
org.eclipse.ui.internal.EditorManager$2.run() line: 556
It looks like createPartControl() is being called before
createSourceViewer() so the decoration support is not initialized. It worked
ok in M4. Before I spend a lot of time trying to debug it, has anybody else
run into this problem?
I'm creating the editor page in a plug-in like this:
IEditorRegistry registry=
PlatformUI.getWorkbench().getEditorRegistry();
IEditorDescriptor desc = registry.getDefaultEditor(fileName);
IEditorInput input = new ExternalEditorInput(storage);
IEditorPart editor = page.openEditor(input, desc.getId());
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cdt-dev