Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » parallel opened diagrams - delete not working
parallel opened diagrams - delete not working [message #732205] Tue, 04 October 2011 08:36 Go to next message
Eclipse UserFriend
Originally posted by: Lilija Klassen

I've a problem with the delete action when two diagrams are opened at
the same time. The problem occurrs when I add a new element and then try
to delete elements. While debugging I found out that the shape node of
the second openend diagram will not be deleted. This causes then a
recreation of edit parts and a nullpointer exception.

Any idea how to fix this?
Re: parallel opened diagrams - delete not working [message #734053 is a reply to message #732205] Thu, 06 October 2011 14:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lilija Klassen

Am 04.10.2011 10:36, schrieb Lilija Klassen:
> I've a problem with the delete action when two diagrams are opened at
> the same time. The problem occurrs when I add a new element and then try
> to delete elements. While debugging I found out that the shape node of
> the second openend diagram will not be deleted. This causes then a
> recreation of edit parts and a nullpointer exception.
>
> Any idea how to fix this?

The two diagrams have also connections included, if i comment the
createConnection in the DiagramCanonicalEditPolicy out the delete action
works?

Has someone any idea why and how to fix this problem?

Best regards,

Lilija Klassen
Re: parallel opened diagrams - delete not working [message #734177 is a reply to message #734053] Thu, 06 October 2011 23:37 Go to previous messageGo to next message
Michael Golubev is currently offline Michael GolubevFriend
Messages: 373
Registered: July 2009
Senior Member
Hello,

Please post the stack trace and more details about how to reproduce the NPE here or into the new bugzilla.

Regards,
Michael "Borlander" Golubev
Eclipse Committer (GMF, UML2Tools)
at Montages Think Tank, Prague, Czech Republic
Montages AG, Zürich, Switzerland
Re: parallel opened diagrams - delete not working [message #734230 is a reply to message #734177] Fri, 07 October 2011 07:38 Go to previous message
Eclipse UserFriend
Originally posted by: Lilija Klassen

Am 07.10.2011 01:37, schrieb Michael Golubev:
> Hello,
> Please post the stack trace and more details about how to reproduce the
> NPE here or into the new bugzilla.
> Regards, Michael "Borlander" Golubev
> Eclipse Committer (GMF, UML2Tools)
> at Montages Think Tank, Prague, Czech Republic
> Montages AG, Zürich, Switzerland
>

Hello,

here the stack trace. Note, that I did lots of customization. When I add
a new element into one of the two parallel opened diagrams I also create
connections. When I then delete the new added element or any other the
following stack trace occures.

!ENTRY org.eclipse.gmf.runtime.diagram.ui 4 4 2011-10-07 09:30:54.817
!MESSAGE execute
!STACK 0
org.eclipse.core.commands.ExecutionException: While executing the
operation, an exception occurred
at
org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:521)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack.execute(DiagramCommandStack.java:194)
at
org.eclipse.gmf.runtime.diagram.ui.parts.DiagramCommandStack.execute(DiagramCommandStack.java:169)
at
org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction.execute(DiagramAction.java:141)
at
de.wagner.tooling.incident.modeller.diagram.edit.commands.DeleteAction.doRun(DeleteAction.java:60)
at
org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler.run(AbstractActionHandler.java:359)
at
org.eclipse.gmf.runtime.common.ui.action.ActionManager$1.run(ActionManager.java:225)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at
org.eclipse.gmf.runtime.common.ui.action.ActionManager.run(ActionManager.java:223)
at
org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler.run(AbstractActionHandler.java:348)
at org.eclipse.gef.KeyHandler.performStroke(KeyHandler.java:83)
at org.eclipse.gef.KeyHandler.keyPressed(KeyHandler.java:55)
at
org.eclipse.gef.tools.SelectionTool.handleKeyDown(SelectionTool.java:331)
at org.eclipse.gef.tools.AbstractTool.keyDown(AbstractTool.java:1016)
at org.eclipse.gef.tools.SelectionTool.keyDown(SelectionTool.java:491)
at org.eclipse.gef.EditDomain.keyDown(EditDomain.java:169)
at
org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchKeyPressed(DomainEventDispatcher.java:252)
at
org.eclipse.draw2d.LightweightSystem$EventHandler.keyPressed(LightweightSystem.java:497)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:167)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
at org.eclipse.swt.widgets.Widget.wmKeyDown(Widget.java:1809)
at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:4892)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4560)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4972)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2531)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at de.wagner.tooling.incident.Application.start(Application.java:45)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:344)
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:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.NullPointerException
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSettingDelegate(BasicEObjectImpl.java:1571)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1037)
at
de.wagner.tooling.incident.modeller.metamodel.impl.SwimlaneImpl.eGet(SwimlaneImpl.java:336)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1021)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1013)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1008)
at
de.wagner.tooling.incident.modeller.diagram.parsers.AbstractParser.getValue(AbstractParser.java:189)
at
de.wagner.tooling.incident.modeller.diagram.parsers.AbstractParser.getValues(AbstractParser.java:169)
at
de.wagner.tooling.incident.modeller.diagram.parsers.MessageFormatParser.getValues(MessageFormatParser.java:238)
at
de.wagner.tooling.incident.modeller.diagram.parsers.MessageFormatParser.getPrintString(MessageFormatParser.java:203)
at
de.wagner.tooling.incident.modeller.diagram.edit.parts.SceneStatusEditPart.getLabelText(SceneStatusEditPart.java:194)
at
de.wagner.tooling.incident.modeller.diagram.edit.parts.SceneStatusEditPart.refreshLabel(SceneStatusEditPart.java:385)
at
de.wagner.tooling.incident.modeller.diagram.edit.parts.SceneStatusEditPart.refreshVisuals(SceneStatusEditPart.java:374)
at
de.wagner.tooling.incident.modeller.diagram.edit.parts.SceneStatusEditPart.setLabel(SceneStatusEditPart.java:155)
at
de.wagner.tooling.incident.modeller.diagram.edit.parts.SceneEditPart.addFixedChild(SceneEditPart.java:132)
at
de.wagner.tooling.incident.modeller.diagram.edit.parts.SceneEditPart.addChildVisual(SceneEditPart.java:165)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:211)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.addChild(GraphicalEditPart.java:1319)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:781)
at
org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:726)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:644)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$3(GraphicalEditPart.java:1)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart$3.run(GraphicalEditPart.java:861)
at
org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.runExclusive(TransactionalEditingDomainImpl.java:328)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.refresh(GraphicalEditPart.java:851)
at
org.eclipse.gef.editparts.AbstractEditPart.addNotify(AbstractEditPart.java:253)
at
org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(AbstractGraphicalEditPart.java:223)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:212)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.addChild(GraphicalEditPart.java:1319)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:781)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.refreshChild(GraphicalEditPart.java:1232)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.handleMajorSemanticChange(GraphicalEditPart.java:1258)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeEditPart.handleNotificationEvent(ShapeEditPart.java:165)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart.handleNotificationEvent(ShapeNodeEditPart.java:236)
at
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.notifyChanged(GraphicalEditPart.java:1438)
at
org.eclipse.gmf.runtime.diagram.core.listener.DiagramEventBroker.fireNotification(DiagramEventBroker.java:500)
at
org.eclipse.gmf.runtime.diagram.core.listener.DiagramEventBroker.resourceSetChanged(DiagramEventBroker.java:395)
at
org.eclipse.gmf.runtime.diagram.ui.DiagramEventBrokerThreadSafe.resourceSetChanged(DiagramEventBrokerThreadSafe.java:73)
at
org.eclipse.gmf.runtime.diagram.core.DiagramEditingDomainFactory$DiagramEditingDomain.postcommit(DiagramEditingDomainFactory.java:214)
at
org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.deactivate(TransactionalEditingDomainImpl.java:543)
at
org.eclipse.emf.transaction.impl.TransactionImpl.close(TransactionImpl.java:712)
at
org.eclipse.emf.transaction.impl.TransactionImpl.commit(TransactionImpl.java:474)
at
org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:155)
at
org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:513)
... 53 more
Previous Topic:Using GMF without code generation
Next Topic:XYAnchor to EllipseAnchor: is it possible?
Goto Forum:
  


Current Time: Fri Nov 28 21:04:06 GMT 2014

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

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