|
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 --
|
_______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

