Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Unexpected error while trying to create a new project(New project creation fails giving exception message "java.lang.AssertionError: Store must not be null.")
icon8.gif  Unexpected error while trying to create a new project [message #553907] Thu, 19 August 2010 12:00 Go to next message
daisydale85 is currently offline daisydale85Friend
Messages: 38
Registered: August 2010
Member
Hi,

I am trying to create an editor using DLTK support. In that, I need to provide support for creating New Project.

This is how the entry in plugin.xml looks like:

<extension
      point="org.eclipse.ui.newWizards">
   <category
         id="sample.editor"
         name="Sample ProjectWizard">
   </category>
   <wizard
         category="sample.editor"
         class="org.eclipse.dltk.ui.wizards.GenericDLTKProjectWizard:sample.editor.nature"
         icon="icons/sample.gif"
         id="sample.editor.SampleNewWizard"
         name="Example ProjectWizard"
         project="true">
   </wizard>
</extension>


I am following the tutorial given in " http://wiki.eclipse.org/A_guide_to_building_a_DLTK-based_lan guage_IDE"

When I try to create an project by selecting "Example ProjectWizard", I am getting following error

Message: Problems occurred when invoking code from plug-in: "org.eclipse.jface".


Exception Stack Trace : java.lang.AssertionError: Store must not be null.
at org.eclipse.dltk.ui.viewsupport.AppearanceAwareLabelProvider.<init>(AppearanceAwareLabelProvider.java:47)
at org.eclipse.dltk.internal.ui.wizards.buildpath.newsourcepage.DialogPackageExplorer$PackageLabelProvider.<init>(DialogPackageExplorer.java:111)
at org.eclipse.dltk.internal.ui.wizards.buildpath.newsourcepage.DialogPackageExplorer.setContentProvider(DialogPackageExplorer.java:388)
at org.eclipse.dltk.internal.ui.wizards.buildpath.newsourcepage.NewSourceContainerWorkbookPage.getControl(NewSourceContainerWorkbookPage.java:146)
at org.eclipse.dltk.ui.wizards.BuildpathsBlock.createControl(BuildpathsBlock.java:221)
at org.eclipse.dltk.ui.wizards.CapabilityConfigurationPage.createControl(CapabilityConfigurationPage.java:174)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
at org.eclipse.dltk.ui.wizards.ProjectWizard.createPageControls(ProjectWizard.java:47)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:675)
at org.eclipse.jface.wizard.WizardDialog.setWizard(WizardDialog.java:1093)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1152)
at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog.java:1149)
at org.eclipse.jface.wizard.WizardDialog$5.run(WizardDialog.java:1138)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1136)
at org.eclipse.ui.internal.dialogs.NewWizardSelectionPage.advanceToNextPageOrFinish(NewWizardSelectionPage.java:71)
at org.eclipse.ui.internal.dialogs.NewWizardNewPage$1.doubleClick(NewWizardNewPage.java:355)
at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:821)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:819)
at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1419)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1195)
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:238)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:235)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:296)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:117)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)


Session Data: eclipse.buildId=unknown
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.platform.ide
Command-line arguments:  -product org.eclipse.platform.ide -data C:\Eclipse_DLTK_Sample/../runtime-EclipseApplication -dev file:C:/Eclipse_DLTK_Sample/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/dev.properties -os win32 -ws win32 -arch x86


I am using Eclipse 3.5 and DLTK 2.0. I am initializing PreferenceStore settings from my editor. I compared my implementation with "org.eclipse.dltk.examples.python". Only difference is that my code supports syntax coloring and code completion also.

Any help wil be highly appreciated.

Thanks,
Daisy

[Updated on: Thu, 19 August 2010 12:02]

Report message to a moderator

Re: Unexpected error while trying to create a new project [message #554077 is a reply to message #553907] Fri, 20 August 2010 05:00 Go to previous message
daisydale85 is currently offline daisydale85Friend
Messages: 38
Registered: August 2010
Member
Solved the issue. I missed returning PreferenceStore from the function getPreferenceStore in class that implements IDLTKUILanguageToolkit.

Daisy
Previous Topic:Problem with run menu action
Next Topic:Spaces only
Goto Forum:
  


Current Time: Thu Apr 18 18:07:15 GMT 2024

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

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

Back to the top