Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Plugin Start Problem
Plugin Start Problem [message #289454] Fri, 05 August 2005 09:28 Go to next message
Yong cheng is currently offline Yong chengFriend
Messages: 46
Registered: July 2009
Member
Hi, Plugin experts,

I'm writing my own plugin, but got an error message when I tried to start
it.
The error message shows that the method "getPreferenceStore" return a null
value. Thought Debug I found that the "getDefault" in EngrPlugin return a
null value. Can anyone help me? Thanks a lot.

Lucia

############################################################ ##############
public class EngrPlugin extends AbstractUIPlugin {
/** Single plugin instance. */
private static EngrPlugin singleton;

/**
* Returns the shared plugin instance.
*/
public static EngrPlugin getDefault() {
return singleton;
}

/**
* The constructor.
*/
public EngrPlugin() {
super();
singleton = this;
}
}
############################################################ ##################
And the error message:
java.lang.NullPointerException
at
wzl.cosmos.engr.ganttcharteditor.GanttChartEditorPaletteFact ory$1.getPreferenceStore(GanttChartEditorPaletteFactory.java :88)
at
wzl.cosmos.engr.ganttcharteditor.GanttChartEditorPaletteFact ory$1.getPaletteWidth(GanttChartEditorPaletteFactory.java:97 )
at
org.eclipse.gef.ui.palette.FlyoutPaletteComposite.<init>(FlyoutPaletteComposite.java:195)
at
org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.cr eatePartControl(GraphicalEditorWithFlyoutPalette.java:75)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:585)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:365)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:552)
at
org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:258)
at
org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1216)
at org.eclipse.ui.internal.EditorManager$5.run(EditorManager.ja va:944)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at
org.eclipse.ui.internal.EditorManager.restoreState(EditorMan ager.java:939)
at
org.eclipse.ui.internal.WorkbenchPage.restoreState(Workbench Page.java:2535)
at
org.eclipse.ui.internal.WorkbenchWindow.restoreState(Workben chWindow.java:1819)
at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.j ava:2566)
at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2 515)
at org.eclipse.ui.internal.Workbench$19.run(Workbench.java:1514 )
at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:1263 )
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:291)
Re: Plugin Start Problem [message #289655 is a reply to message #289454] Tue, 09 August 2005 15:47 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Is your EngrPlugin class correctly defined as the plugin class for your
plugin? If it isn't, then the singleton will not be set.

--
Thanks,
Rich Kulp
Previous Topic:[PDE]how to place an editor in a ScrolledComposite ?
Next Topic:Convert TAB chars in spaces...
Goto Forum:
  


Current Time: Thu Apr 25 14:51:33 GMT 2024

Powered by FUDForum. Page generated in 0.02822 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top