Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Polarsys » Capella General » Viewpoint Modes & States for Capella 1.4.x
Viewpoint Modes & States for Capella 1.4.x [message #1829804] Fri, 10 July 2020 18:04 Go to next message
Fábio Guarita is currently offline Fábio GuaritaFriend
Messages: 64
Registered: December 2019
Member
Hi, is any release of the VPMS for Capella 1.4.x planned soon? Alternatively, is it planned to be embedded as a core viewpoint in any future release of Capella?
Re: Viewpoint Modes & States for Capella 1.4.x [message #1829808 is a reply to message #1829804] Fri, 10 July 2020 20:00 Go to previous messageGo to next message
Stephane LACRAMPE is currently offline Stephane LACRAMPEFriend
Messages: 206
Registered: July 2009
Senior Member
Hi Fabio,
I found the latest build for Capella 1.4.x here: https://download.eclipse.org/capella/addons/vpms/updates/nightly/v1.4.x/0.14.0.202005131411/
I have not tested it though.
I believe it is intended to become a core Capella viewpoint but I do not think it is planned yet. Any help/sponsoring is welcome here I guess.
Stephane


Stephane LACRAMPE
Obeo Canada
Re: Viewpoint Modes & States for Capella 1.4.x [message #1829810 is a reply to message #1829808] Fri, 10 July 2020 20:48 Go to previous messageGo to next message
Fábio Guarita is currently offline Fábio GuaritaFriend
Messages: 64
Registered: December 2019
Member
Wow, thank you so much Stephane! I'll test the build. I wasn't expecting to be able to install it right away!
Re: Viewpoint Modes & States for Capella 1.4.x [message #1829811 is a reply to message #1829810] Fri, 10 July 2020 21:02 Go to previous messageGo to next message
Fábio Guarita is currently offline Fábio GuaritaFriend
Messages: 64
Registered: December 2019
Member
It works! Although I'm getting a lot of the warnings below. But it still works for now :D

Thanks again for the link. I couldn't find it by myself.

org.eclipse.sirius.common.tools.api.interpreter.EvaluationException: EVAL : Unresolved call "typedElements", at position [2,15], for object : fragment=9c70f882-5997-4f58-8f9b-8a252fc30a19 file=/resource/test/test.melodymodeller
	at org.eclipse.sirius.query.legacy.business.internal.interpreter.AcceleoExtendedInterpreter.doEvaluate(AcceleoExtendedInterpreter.java:230)
	at org.eclipse.sirius.query.legacy.business.internal.interpreter.AcceleoExtendedInterpreter.evaluate(AcceleoExtendedInterpreter.java:191)
	at org.eclipse.sirius.tools.internal.interpreter.SessionInterpreter.evaluate(SessionInterpreter.java:179)
	at org.eclipse.sirius.common.tools.api.interpreter.IInterpreter.evaluateCollection(IInterpreter.java:148)
	at org.eclipse.sirius.diagram.business.api.query.DiagramElementMappingQuery.evaluateCandidateExpression(DiagramElementMappingQuery.java:450)
	at org.eclipse.sirius.diagram.business.internal.sync.AbstractSynchronizerHelper.evaluateCandidateExpression(AbstractSynchronizerHelper.java:109)
	at org.eclipse.sirius.diagram.business.internal.sync.AbstractSynchronizerHelper.getSemanticCandidates(AbstractSynchronizerHelper.java:171)
	at org.eclipse.sirius.diagram.business.internal.sync.DNodeSynchronizerHelper.computeNodeCandidates(DNodeSynchronizerHelper.java:66)
	at org.eclipse.sirius.diagram.business.internal.sync.DDiagramSynchronizer.computeNodeCandidates(DDiagramSynchronizer.java:1073)
	at org.eclipse.sirius.diagram.business.internal.sync.DDiagramSynchronizer.addNowNodeCandidates(DDiagramSynchronizer.java:1041)
	at org.eclipse.sirius.diagram.business.internal.sync.DDiagramSynchronizer.computeCurrentStatus(DDiagramSynchronizer.java:885)
	at org.eclipse.sirius.diagram.business.internal.sync.DDiagramSynchronizer.refreshContainerMapping(DDiagramSynchronizer.java:707)
	at org.eclipse.sirius.diagram.business.internal.sync.DDiagramSynchronizer.refreshOperation(DDiagramSynchronizer.java:382)
	at org.eclipse.sirius.diagram.business.internal.sync.DDiagramSynchronizer.refresh(DDiagramSynchronizer.java:317)
	at org.eclipse.sirius.diagram.business.internal.dialect.DiagramDialectServices.refresh(DiagramDialectServices.java:239)
	at org.eclipse.sirius.business.internal.dialect.DialectManagerImpl.refresh(DialectManagerImpl.java:106)
	at org.eclipse.sirius.business.api.dialect.command.RefreshRepresentationsCommand.doExecute(RefreshRepresentationsCommand.java:124)
	at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
	at org.eclipse.emf.common.command.CompoundCommand.execute(CompoundCommand.java:261)
	at org.eclipse.emf.common.command.CompoundCommand.execute(CompoundCommand.java:261)
	at org.eclipse.emf.transaction.util.TriggerCommand.execute(TriggerCommand.java:113)
	at org.polarsys.capella.common.ef.internal.command.WorkspaceCommandStackImpl.executeTriggers(WorkspaceCommandStackImpl.java:312)
	at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.precommit(TransactionalEditingDomainImpl.java:712)
	at org.eclipse.emf.transaction.impl.TransactionImpl.commit(TransactionImpl.java:414)
	at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:155)
	at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:495)
	at org.polarsys.capella.common.ef.internal.command.WorkspaceCommandStackImpl.doExecute(WorkspaceCommandStackImpl.java:148)
	at org.polarsys.capella.common.platform.sirius.ted.SemanticEditingDomainFactory$SemanticCommandStack.doExecute(SemanticEditingDomainFactory.java:277)
	at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:165)
	at org.polarsys.capella.common.ef.ExecutionManager.executeReadWriteCommand(ExecutionManager.java:91)
	at org.polarsys.capella.common.ef.ExecutionManager.execute(ExecutionManager.java:66)
	at org.polarsys.capella.core.ui.properties.fields.AbstractSemanticField.verifiedExecution(AbstractSemanticField.java:154)
	at org.polarsys.capella.core.ui.properties.fields.AbstractSemanticField.executeCommand(AbstractSemanticField.java:126)
	at org.polarsys.capella.core.ui.properties.fields.AbstractSemanticKindGroup.setValue(AbstractSemanticKindGroup.java:146)
	at org.polarsys.capella.core.ui.properties.fields.AbstractSemanticKindGroup.widgetSelected(AbstractSemanticKindGroup.java:133)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1056)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:635)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:559)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at org.polarsys.capella.core.platform.sirius.ui.app.CapellaApplication.start(CapellaApplication.java:115)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
	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:660)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1468)
Re: Viewpoint Modes & States for Capella 1.4.x [message #1829812 is a reply to message #1829811] Fri, 10 July 2020 22:00 Go to previous messageGo to next message
Stephane LACRAMPE is currently offline Stephane LACRAMPEFriend
Messages: 206
Registered: July 2009
Senior Member
Great, please save your model on a regular base as I do not know if this build is really stable...

Stephane LACRAMPE
Obeo Canada
Re: Viewpoint Modes & States for Capella 1.4.x [message #1829926 is a reply to message #1829812] Tue, 14 July 2020 08:58 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 364
Registered: December 2015
Senior Member
Fabio, I maintain that addon. Since forever I would love if sirius would tell me where the expression is actually located, a clickable link to an .odesign would be very nice.... It could be anywhere. I'll take a look at the warning.
Re: Viewpoint Modes & States for Capella 1.4.x [message #1829930 is a reply to message #1829926] Tue, 14 July 2020 09:45 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 364
Registered: December 2015
Senior Member
I can't see anything obvious. There is one place that uses "typedElements", but that relation still exists, so not sure what's wrong with your test. Could you send me the test model so that I can check?

Re: Viewpoint Modes & States for Capella 1.4.x [message #1829969 is a reply to message #1829930] Wed, 15 July 2020 01:51 Go to previous messageGo to next message
Fábio Guarita is currently offline Fábio GuaritaFriend
Messages: 64
Registered: December 2019
Member
Hi Felix, thank you for your attention!

Just attached the model to this post.

As for the version of Capella I'm using: It is Version: 1.4.0, Build id: 201911211736

If you need any more data regarding my installation, I attached a file with the text in my Installation Details > Configuration tab.

Btw, the only error I get is that the configurations icon is not presented on my SAB diagrams (although the highlighted deactivated functions and etc... are sometimes present - sometimes not).
Re: Viewpoint Modes & States for Capella 1.4.x [message #1830001 is a reply to message #1829969] Wed, 15 July 2020 15:25 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 364
Registered: December 2015
Senior Member
Oh, so this is all caused by the fact that Capella 1.4 allows Architecture Diagrams to be created on Component Package Elements. The modes/states addon assumes that the root element of every Architecture diagram is a Component/Part, as it has been until now. I can maybe fix this in coming months, but for now - unless you really need it for other reasons - make sure your Diagram Root elements are Components, not Packages, and you should be fine.
Re: Viewpoint Modes & States for Capella 1.4.x [message #1830008 is a reply to message #1830001] Wed, 15 July 2020 17:20 Go to previous messageGo to next message
Fábio Guarita is currently offline Fábio GuaritaFriend
Messages: 64
Registered: December 2019
Member
That's awesome! Thank you Felix!

Just to understand this better, when you say "root element" you mean the direct parent of the diagram?

Or will it work without warnings if I create a package under a component and put my diagram there?

Anyway, for now I'll put the diagrams under components. Tks again!
Re: Viewpoint Modes & States for Capella 1.4.x [message #1830050 is a reply to message #1830008] Thu, 16 July 2020 10:52 Go to previous messageGo to next message
Felix Dorner is currently offline Felix DornerFriend
Messages: 364
Registered: December 2015
Senior Member
Yes, what appears to be the parent of the diagram in the project explorer is - in capella - the root element of the diagram. You can see this also by clicking on any white area in the diagram. It should show you the properties of the diagram parent/root.
Re: Viewpoint Modes & States for Capella 1.4.x [message #1830076 is a reply to message #1830050] Thu, 16 July 2020 19:35 Go to previous message
Fábio Guarita is currently offline Fábio GuaritaFriend
Messages: 64
Registered: December 2019
Member
Thank you!
Previous Topic:Functional chains
Next Topic:Links on the Documentation tab
Goto Forum:
  


Current Time: Sat Dec 05 12:28:28 GMT 2020

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

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

Back to the top