Community
Participate
Working Groups
- open a class diagram - create 2 classes (with the palette) - create anassociation between classes (with the palette) - select the association - from the contextual menu, try "delete from diagram". Nothing happen But after that, some unexpected errors happens when selecting other elements: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) at org.eclipse.swt.SWT.error(SWT.java:4083) at org.eclipse.swt.SWT.error(SWT.java:3998) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:137) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4012) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3631) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2416) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2380) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2229) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:504) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:497) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115) 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:369) 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:619) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574) at org.eclipse.equinox.launcher.Main.run(Main.java:1406) at org.eclipse.equinox.launcher.Main.main(Main.java:1382) Caused by: java.lang.NullPointerException at org.eclipse.emf.transaction.util.TransactionUtil.getEditingDomain(TransactionUtil.java:61) at org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest.<init>(DestroyElementRequest.java:118) at org.eclipse.papyrus.diagram.clazz.edit.policies.ClassItemSemanticEditPolicy.getDestroyElementCommand(ClassItemSemanticEditPolicy.java:146) at org.eclipse.papyrus.diagram.clazz.custom.policies.itemsemantic.CustomClassItemSemanticEditPolicy.getDestroyElementCommand(CustomClassItemSemanticEditPolicy.java:129) at org.eclipse.papyrus.diagram.clazz.edit.policies.UMLBaseItemSemanticEditPolicy.getSemanticCommandSwitch(UMLBaseItemSemanticEditPolicy.java:690) at org.eclipse.papyrus.diagram.clazz.edit.policies.UMLBaseItemSemanticEditPolicy.getSemanticCommand(UMLBaseItemSemanticEditPolicy.java:670) at org.eclipse.gmf.runtime.diagram.ui.editpolicies.SemanticEditPolicy.getCommand(SemanticEditPolicy.java:69) at org.eclipse.papyrus.diagram.clazz.edit.policies.UMLBaseItemSemanticEditPolicy.getCommand(UMLBaseItemSemanticEditPolicy.java:544) at org.eclipse.gef.editparts.AbstractEditPart.getCommand(AbstractEditPart.java:473) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$1(GraphicalEditPart.java:1) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart$1.run(GraphicalEditPart.java:482) at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.runExclusive(TransactionalEditingDomainImpl.java:328) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.getCommand(GraphicalEditPart.java:477) at org.eclipse.papyrus.diagram.clazz.part.DeleteElementAction.getCommand(DeleteElementAction.java:86) at org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction.getCommand(DiagramAction.java:161) at org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction.calculateEnabled(DiagramAction.java:124) at org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction.refresh(DiagramAction.java:114)
I could not reproduce the bug, does this still occurs ?
I can reproduce it, but slightly differently : - open a class diagram - create 2 classes (with the palette) - create an association between classes (with the palette) - save abd close the editor - open the editor - select the association - from the contextual menu, try "delete from diagram". Nothing happen I have found an exception in the log: java.lang.ClassCastException: org.eclipse.emf.ecore.change.impl.ChangeDescriptionImpl cannot be cast to org.eclipse.gmf.runtime.notation.Edge at org.eclipse.papyrus.diagram.clazz.custom.helper.AssociationEndSourceLabelHelper.getUMLElement(AssociationEndSourceLabelHelper.java:45) at org.eclipse.papyrus.diagram.clazz.custom.policies.DisplayAssociationEndEditPolicy.getUMLElement(DisplayAssociationEndEditPolicy.java:145) at org.eclipse.papyrus.diagram.clazz.custom.policies.DisplayAssociationEndEditPolicy.removeAdditionalListeners(DisplayAssociationEndEditPolicy.java:345) at org.eclipse.papyrus.diagram.common.editpolicies.AbstractMaskManagedEditPolicy.deactivate(AbstractMaskManagedEditPolicy.java:93) at org.eclipse.gef.editparts.AbstractEditPart.deactivateEditPolicies(AbstractEditPart.java:306) at org.eclipse.gef.editparts.AbstractEditPart.deactivate(AbstractEditPart.java:294) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.deactivate(AbstractGraphicalEditPart.java:354) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.deactivate(GraphicalEditPart.java:315) at org.eclipse.gef.editparts.AbstractEditPart.deactivate(AbstractEditPart.java:292) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.deactivate(AbstractGraphicalEditPart.java:354) at org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart.deactivate(ConnectionEditPart.java:383) at org.eclipse.papyrus.diagram.clazz.custom.edit.part.AbstractAssociationEditPart.deactivate(AbstractAssociationEditPart.java:73) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.deactivate(AbstractGraphicalEditPart.java:352) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.deactivate(GraphicalEditPart.java:315) at org.eclipse.gef.editparts.AbstractEditPart.deactivate(AbstractEditPart.java:292) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.deactivate(AbstractGraphicalEditPart.java:354) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.deactivate(GraphicalEditPart.java:315) at org.eclipse.gef.editparts.AbstractEditPart.deactivate(AbstractEditPart.java:292) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.deactivate(AbstractGraphicalEditPart.java:354) at org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramRootEditPart.deactivate(DiagramRootEditPart.java:737) at org.eclipse.gef.ui.parts.AbstractEditPartViewer.unhookControl(AbstractEditPartViewer.java:768) at org.eclipse.gef.ui.parts.GraphicalViewerImpl.unhookControl(GraphicalViewerImpl.java:432) at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer.unhookControl(DiagramGraphicalViewer.java:363) at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setControl(AbstractEditPartViewer.java:634) at org.eclipse.gef.ui.parts.AbstractEditPartViewer.handleDispose(AbstractEditPartViewer.java:222) at org.eclipse.gef.ui.parts.GraphicalViewerImpl.handleDispose(GraphicalViewerImpl.java:109) at org.eclipse.gef.ui.parts.AbstractEditPartViewer$2.widgetDisposed(AbstractEditPartViewer.java:436) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:123) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
It runs, it was a problem due to my local workspace