Hi Alessandro,

Some informations:

I tested the use case you are talking about with a Topcased 3.3 RCP platform.
When you double-click on the Block3, you can create a parametric diagram and initialize it with model objects.

The model objects that are created in your parametric diagram are not blocks but properties, that's why you can't see properties a and b.
When you created the composite associations from Block3 to Block1 and Block2, properties block1 and block2 are automatically created in Block3.
These properties are the ones displayed in your parametric diagram. Then you should be able to create a connector between both properties (it works for me).

About the error, I have the same behavior and it occurs when you initialize the diagram with model objects. But it's not a disturbing point to keep working on your model. You can create your diagram without initialization to avoid this error. Then you drag and drop the properties of Block3 on the diagram.

regards,

Emilien

Le 30/04/2010 14:47, [email protected] a écrit :
-- Sorry for posting again, but I don't see this message in the archive --

Hello,
I have the following simple system:
- A model M with a class diagram D
- A package P which is a children of M and is in D
- Package P has an associated BDD with three blocks:
-- block1 with property a : Real
-- block2 with property b : Real
-- block3 what contains (with composite associations) block1 and block2.

Now, I would like to create a parametric diagram for block3. When I
create one, the editor also initializes the diagram with thre two
block1 and block2 but:

3) The diagram is initialized with block1 and block2 but the two
properties a and b are not shown (and thus I cannot create a connector
between the two).

2) The following error occurs
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:477)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.topcased.modeler.commands.CreateDiagramCommand.importObjects(CreateDiagramCommand.java:209)
at org.topcased.modeler.commands.CreateDiagramCommand.redo(CreateDiagramCommand.java:185)
at org.topcased.modeler.commands.CreateDiagramCommand.execute(CreateDiagramCommand.java:125)
at org.eclipse.gef.commands.CompoundCommand.execute(CompoundCommand.java:107)
at org.topcased.modeler.commands.CommandStack.execute(CommandStack.java:230)
at org.topcased.modeler.internal.actions.CreateDiagramAction.run(CreateDiagramAction.java:123)
at org.topcased.modeler.edit.EMFGraphNodeEditPart.performRequest(EMFGraphNodeEditPart.java:211)
at org.eclipse.gef.tools.SelectEditPartTracker.performOpen(SelectEditPartTracker.java:187)
at org.eclipse.gef.tools.SelectEditPartTracker.handleDoubleClick(SelectEditPartTracker.java:131)
at org.eclipse.gef.tools.AbstractTool.mouseDoubleClick(AbstractTool.java:955)
at org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(SelectionTool.java:501)
at org.eclipse.gef.EditDomain.mouseDoubleClick(EditDomain.java:208)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseDoubleClicked(DomainEventDispatcher.java:285)
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDoubleClick(LightweightSystem.java:508)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:183)
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:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
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:194)
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:368)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: java.lang.NullPointerException
at org.topcased.modeler.edit.policies.ModelerLayoutEditPolicy.getCreateCommand(ModelerLayoutEditPolicy.java:274)
at org.topcased.modeler.edit.policies.ModelerLayoutEditPolicy.getCreateCommand(ModelerLayoutEditPolicy.java:172)
at org.eclipse.gef.editpolicies.LayoutEditPolicy.getCommand(LayoutEditPolicy.java:199)
at org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy.getCommand(ConstrainedLayoutEditPolicy.java:154)
at org.topcased.modeler.edit.policies.ModelerLayoutEditPolicy.getCommand(ModelerLayoutEditPolicy.java:533)
at org.eclipse.gef.editparts.AbstractEditPart.getCommand(AbstractEditPart.java:473)
at org.topcased.modeler.tools.Importer.createHierarchy(Importer.java:421)
at org.topcased.modeler.tools.Importer.run(Importer.java:177)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
... 41 more
Root exception:
java.lang.NullPointerException
at org.topcased.modeler.edit.policies.ModelerLayoutEditPolicy.getCreateCommand(ModelerLayoutEditPolicy.java:274)
at org.topcased.modeler.edit.policies.ModelerLayoutEditPolicy.getCreateCommand(ModelerLayoutEditPolicy.java:172)
at org.eclipse.gef.editpolicies.LayoutEditPolicy.getCommand(LayoutEditPolicy.java:199)
at org.eclipse.gef.editpolicies.ConstrainedLayoutEditPolicy.getCommand(ConstrainedLayoutEditPolicy.java:154)
at org.topcased.modeler.edit.policies.ModelerLayoutEditPolicy.getCommand(ModelerLayoutEditPolicy.java:533)
at org.eclipse.gef.editparts.AbstractEditPart.getCommand(AbstractEditPart.java:473)
at org.topcased.modeler.tools.Importer.createHierarchy(Importer.java:421)
at org.topcased.modeler.tools.Importer.run(Importer.java:177)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.topcased.modeler.commands.CreateDiagramCommand.importObjects(CreateDiagramCommand.java:209)
at org.topcased.modeler.commands.CreateDiagramCommand.redo(CreateDiagramCommand.java:185)
at org.topcased.modeler.commands.CreateDiagramCommand.execute(CreateDiagramCommand.java:125)
at org.eclipse.gef.commands.CompoundCommand.execute(CompoundCommand.java:107)
at org.topcased.modeler.commands.CommandStack.execute(CommandStack.java:230)
at org.topcased.modeler.internal.actions.CreateDiagramAction.run(CreateDiagramAction.java:123)
at org.topcased.modeler.edit.EMFGraphNodeEditPart.performRequest(EMFGraphNodeEditPart.java:211)
at org.eclipse.gef.tools.SelectEditPartTracker.performOpen(SelectEditPartTracker.java:187)
at org.eclipse.gef.tools.SelectEditPartTracker.handleDoubleClick(SelectEditPartTracker.java:131)
at org.eclipse.gef.tools.AbstractTool.mouseDoubleClick(AbstractTool.java:955)
at org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(SelectionTool.java:501)
at org.eclipse.gef.EditDomain.mouseDoubleClick(EditDomain.java:208)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseDoubleClicked(DomainEventDispatcher.java:285)
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDoubleClick(LightweightSystem.java:508)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:183)
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:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
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:194)
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:368)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

Any suggestion?

Thanks
Alessandro

_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users


  

--
Emilien PERICO
Ingénieur - Atos Origin
Tel : 05 34 36 34 49
www.atosorigin.fr
Développement durable, anticipons pour notre avenir / Sustainibility, advance our future
P N'imprimez ce mail que si nécessaire / please consider your environmental responsibility before printing this e-mail.
Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra être recherchée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to