Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to modify GEF Shapes example
How to modify GEF Shapes example [message #1748140] Fri, 18 November 2016 20:47 Go to next message
Enrico Foglio is currently offline Enrico FoglioFriend
Messages: 3
Registered: November 2016
Junior Member
Hi.
I'm just now approaching to the Eclipse plugins world.

I would be interested in trying to modify the Shapes example as first step.
I've followed the instructions here: https://github.com/eclipse/gef/blob/master/README.md

The problem is that when I do:
File->New->Project->GEF Plugins->Shapes
I can't create the project, when I press the Finish button this is the log output:

java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:448)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:353)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:993)
at org.eclipse.gef.examples.ui.pde.internal.wizards.ProjectUnzipperNewWizard.performFinish(ProjectUnzipperNewWizard.java:274)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:790)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:423)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4410)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4228)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3816)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
at org.eclipse.jface.window.Window.open(Window.java:794)
at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:115)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:473)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4410)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4228)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3816)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
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:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
Caused by: java.lang.NullPointerException
at org.eclipse.gef.examples.ui.pde.internal.wizards.ProjectUnzipperNewWizard.extractProject(ProjectUnzipperNewWizard.java:326)
at org.eclipse.gef.examples.ui.pde.internal.wizards.ProjectUnzipperNewWizard.access$3(ProjectUnzipperNewWizard.java:312)
at org.eclipse.gef.examples.ui.pde.internal.wizards.ProjectUnzipperNewWizard$1.execute(ProjectUnzipperNewWizard.java:224)
at org.eclipse.ui.actions.WorkspaceModifyOperation.lambda$0(WorkspaceModifyOperation.java:107)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:128)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:437)
... 44 more

Eclipse version: Neon.1a Release (4.6.1)
Java: jre 1.8.0.111
GEF4

Can someone please give me an hint?

Thank you very much.
Re: How to modify GEF Shapes example [message #1748142 is a reply to message #1748140] Fri, 18 November 2016 21:07 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
That looks a bit mixed up. The 'shapes' example you are referring to is a GEF-Legacy (3.x) example, to which the org.eclipse.gef.examples.ui.pde wizard belongs. The README however points to the current GEF (4) code base (and does not mention the shapes example).
Re: How to modify GEF Shapes example [message #1748155 is a reply to message #1748140] Sat, 19 November 2016 10:20 Go to previous message
Enrico Foglio is currently offline Enrico FoglioFriend
Messages: 3
Registered: November 2016
Junior Member
Yes, I'm sorry. Wrong post started and I wasn't able to delete it Smile
The correct one is this:
https://www.eclipse.org/forums/index.php/t/1082585/

Thank you for your reply
Previous Topic:How to use GEF Shapes editor example
Next Topic:[RCP3] Block Diagram Generating API in Eclipse
Goto Forum:
  


Current Time: Tue Apr 23 17:24:03 GMT 2024

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

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

Back to the top