Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[stp-dev] Problems between the BPMN Modeler and the SCA Composite Designer

Hi,

I'm experimenting the integration of the SCA Composite designer with the others tools of the STP project. I have a problem with the BPMN modeler. I have the two following exceptions :

java.lang.ClassCastException: org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditDomain cannot be cast to org.eclipse.stp.bpmn.diagram.part.BpmnDiagramEditDomain at org.eclipse.stp.bpmn.diagram.actions.GroupAction.getSelection(GroupAction.java:509) at org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler.getStructuredSelection(AbstractActionHandler.java:434) at org.eclipse.stp.bpmn.diagram.actions.GroupAction.refresh(GroupAction.java:195) at org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler.selectionChanged(AbstractActionHandler.java:387) at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer.flushSelectionEvents(DiagramGraphicalViewer.java:269) at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer$1.run(DiagramGraphicalViewer.java:247)
   at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
   ... 23 more

and

java.lang.ClassCastException: org.eclipse.stp.sca.impl.DocumentRootImpl cannot be cast to org.eclipse.emf.ecore.EModelElement at org.eclipse.stp.bpmn.diagram.actions.AbstractDeleteAnnotationAction.updateSelectedEModelElement(AbstractDeleteAnnotationAction.java:166) at org.eclipse.stp.bpmn.diagram.actions.AbstractDeleteAnnotationAction.refresh(AbstractDeleteAnnotationAction.java:101) at org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler$2.partActivated(AbstractActionHandler.java:158) at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72)
   at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
   at org.eclipse.core.runtime.Platform.run(Platform.java:857)
   ...

Moreover some menu items (for example "save image as") on the SCA diagrams have disappeared.

In the SCA designer I don't see any links to the BPMN modeler. So, I added, in the BPMN modeler, some code to check the type before making the cast and everything seems to work correctly. I made these modifications on two methods :
- org.eclipse.stp.bpmn.diagram.actions.GroupAction.getSelection and
- org.eclipse.stp.bpmn.diagram.actions.AbstractDeleteAnnotationAction.updateSelectedEModelElement

BPMN guys, do you think that
1) I must open a bug on the BPMN modeler or
2) it's a problem in the plugin.xml file of the SCA Composite designer?

Best regards

Stéphane Drapeau
Obeo



Back to the top