Hi i'm trying to add a custom node to the palette of the Designer.
i changed the plugin.xml, created classes in
org.jbpm.gd.jpdl.xml and org.jbpm.gd.jpdl.model
the new node just extends "tasknode" without adding anything.. just for test
now the new nodetype shows up in the palette but i can't drop it to the design field,
and in the logfile of eclipse i get this error:
java.lang.NullPointerException
at org.jbpm.gd.common.notation.NotationMapping.getNotationElementId(Unknown Source)
at org.jbpm.gd.common.editor.CreationFactory.getNewObject(Unknown Source)
at org.eclipse.gef.requests.CreateRequest.getNewObject(CreateRequest.java:73)
at org.jbpm.gd.common.policy.XYLayoutEditPolicy.initCreateCommand(Unknown Source)
at org.jbpm.gd.common.policy.XYLayoutEditPolicy.getCreateCommand(Unknown Source)
at org.eclipse.gef.editpolicies.LayoutEditPolicy.getCommand(LayoutEditPolicy.java:199)
at
org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy.getCommand(ConstrainedLayoutEditPolicy.java:154)
at org.eclipse.gef.editparts.AbstractEditPart.getCommand(AbstractEditPart.java:473)
at org.eclipse.gef.tools.TargetingTool.getCommand(TargetingTool.java:122)
at org.eclipse.gef.tools.CreationTool.handleMove(CreationTool.java:239)
at org.eclipse.gef.tools.AbstractTool.mouseMove(AbstractTool.java:1049)
at org.eclipse.gef.EditDomain.mouseMove(EditDomain.java:252)
at
org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseMoved(DomainEventDispatcher.java:359)
at
org.eclipse.draw2d.LightweightSystem$EventHandler.mouseMove(LightweightSystem.java:533)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:199)
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:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
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:193)
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:382)
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:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192368#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...