Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Eclipse Oxygen with Sirius 6 and XText 2.14 - correct install?(Sirius XText Oxygen)
Eclipse Oxygen with Sirius 6 and XText 2.14 - correct install? [message #1793420] Wed, 08 August 2018 00:26
Steve Hickman is currently offline Steve HickmanFriend
Messages: 56
Registered: August 2017
Member
I'm using Eclipse Oxygen with Sirius 6.0 and XText 2.14 on a Windows 7 machine.

I've got an XText grammar and I've built a Sirius Viewpoint Specification to create diagrams based on the EMF model created by that grammar.

The relevant part of the grammar is::

IntegrationModel :
'im' name=ID '{' (im+=IntegrationModel | element+=IntegrationElement)* '}'
;
IntegrationElement :
IntegrationIntegrationContext | IntegrationTransportChannel | IntegrationUoPInstance
;
IntegrationIntegrationContext:
'ic' name=ID '{
('nodes:' '[' node+=IntegrationTransportNode+ ']')?
('conns:' '[' connection+=IntegrationTSNodeConnection+ '])?
'}' ';'
;
IntegrationUoPInstance :
'uinst' name=ID -> realizes=[UoPUnitOfPortability| QN] '{'
'URI:' configurationURI=STRING
('in:' '[' input+=IntegrationUoPInputEndPoint+ ']')?
('out:' '[' output+=IntegrationUoPOutputEndPoint+ ']')?
'}' ';'
;

The relevant part of the design is::

I created a diagram called IntegrationContextDiag where the diagram Domain Class is IntegrationIntegrationContext. I want to include in instances of that diagram IntegrationUoPInstance nodes for each IntegrationUoPInstance that is contained in the IntegrationModel that also contains the IntegrationIntegrationContext for the diagram. (So I have to navigate up from the diagram's IntegrationIntegrationContext instance to its containing IntegrationIntegrationModel instance then back down to find all the IntegrationUoPInstances)

I specified a Node type named UoPInstance in IntegrationContextDiag with a Domain Class of IntegrationUoPInstance and a Semantic Candidates Expression of [self.eContainer(tSM::IntegrationModel).element->filter(tSM::IntegrationUoPInstance)/]
When I test the expression in the Interpreter with an IntegrationIntegrationContext instance selected, it returns exactly what I want. However, the diagram never displays the nodes for the IntegrationUoPInstances (they should display as light_green squares).

I've tried at least 3 different Semantic Candidate Expressions that all work in the interpreter but I haven't been able to get any of them to result in the light_green squares displaying in the diagram instance for a particular IntegrationIntegrationContext.

I see now in the console window of my first Eclipse instance the following:
!ENTRY org.eclipse.acceleo.engine 4 4 2018-08-07 17:19:06.189
!MESSAGE Operation filter(EClassImpl) is undefined on type org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1.
!STACK 0
java.lang.UnsupportedOperationException: Operation filter(EClassImpl) is undefined on type org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1.
at org.eclipse.acceleo.engine.internal.environment.AcceleoLibraryOperationVisitor.getExceptionOperationCallFailed(AcceleoLibraryOperationVisitor.java:1056)
at org.eclipse.acceleo.engine.internal.environment.AcceleoLibraryOperationVisitor.callNonStandardOperation(AcceleoLibraryOperationVisitor.java:174)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitOperationCallExp(AcceleoEvaluationVisitor.java:1220)
at org.eclipse.ocl.ecore.impl.OperationCallExpImpl.accept(OperationCallExpImpl.java:386)
at org.eclipse.ocl.AbstractEvaluationVisitor.visitExpression(AbstractEvaluationVisitor.java:242)
at org.eclipse.ocl.EvaluationVisitorDecorator.visitExpression(EvaluationVisitorDecorator.java:150)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(AcceleoEvaluationVisitor.java:1974)
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(AcceleoEvaluationVisitor.java:1049)
at org.eclipse.acceleo.internal.ide.ui.interpreter.AcceleoEvaluationTask.evaluateOCLExpression(AcceleoEvaluationTask.java:491)
at org.eclipse.acceleo.internal.ide.ui.interpreter.AcceleoEvaluationTask.call(AcceleoEvaluationTask.java:282)
at org.eclipse.acceleo.internal.ide.ui.interpreter.AcceleoEvaluationTask.call(AcceleoEvaluationTask.java:1)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
(many times over)

I assume that means that I am missing something in my installation. I've done an update and everything is current as far as Eclipse is concerned. My installation contains:

Acceleo 3.7.2.201708211328 org.eclipse.acceleo.feature.group Eclipse Modeling Project
Buildship: Eclipse Plug-ins for Gradle 2.2.1.v20180125-1441 org.eclipse.buildship.feature.group Eclipse Buildship
Code Recommenders for Java Developers 2.5.2.v20180401-1226 org.eclipse.recommenders.rcp.feature.feature.group Eclipse Code Recommenders
Code Recommenders Mylyn Integration 2.5.2.v20180401-1226 org.eclipse.recommenders.mylyn.rcp.feature.feature.group Eclipse Code Recommenders
Code Recommenders Snipmatch 2.5.2.v20180401-1226 org.eclipse.recommenders.snipmatch.rcp.feature.feature.group Eclipse Code Recommenders
EclEmma Java Code Coverage 3.1.0.201804041601 org.eclipse.eclemma.feature.feature.group Eclipse EclEmma
Eclipse 4 - All Spies (Incubation) 0.18.0.v20171217-2215 org.eclipse.e4.tools.spies.feature.feature.group Eclipse.org
Eclipse e4 Tools 4.7.0.v20170515-1617 org.eclipse.e4.core.tools.feature.feature.group Eclipse.org
Eclipse e4 Tools Developer Resources 4.7.0.v20170515-1617 org.eclipse.e4.core.tools.feature.source.feature.group Eclipse.org
Eclipse for RCP and RAP Developers 4.7.3.20180405-1200 epp.package.rcp Eclipse Packaging Project
Eclipse Java Development Tools 3.13.4.v20180330-0919 org.eclipse.jdt.feature.group Eclipse.org
Eclipse Platform 4.7.3.v20180330-0640 org.eclipse.platform.feature.group Eclipse.org
Eclipse Plug-in Development Environment 3.13.4.v20180330-0640 org.eclipse.pde.feature.group Eclipse.org
Eclipse RCP 4.7.3.v20180330-0640 org.eclipse.rcp.feature.group Eclipse.org
Eclipse XML Editors and Tools 3.9.2.v201803221834 org.eclipse.wst.xml_ui.feature.feature.group Eclipse Web Tools Platform
Git integration for Eclipse 4.9.2.201712150930-r org.eclipse.egit.feature.group Eclipse EGit
Git integration for Eclipse - Task focused interface 4.9.2.201712150930-r org.eclipse.egit.mylyn.feature.group Eclipse EGit
m2e - Maven Integration for Eclipse (includes Incubating components) 1.8.3.20180227-2137 org.eclipse.m2e.feature.feature.group Eclipse.org - m2e
m2e - slf4j over logback logging (Optional) 1.8.3.20180227-2137 org.eclipse.m2e.logback.feature.feature.group Eclipse.org - m2e
Mylyn Builds Connector: Hudson/Jenkins 1.15.0.v20170411-2141 org.eclipse.mylyn.hudson.feature.group Eclipse Mylyn
Mylyn Context Connector: Eclipse IDE 3.23.0.v20170411-2108 org.eclipse.mylyn.ide_feature.feature.group Eclipse Mylyn
Mylyn Context Connector: Java Development 3.23.0.v20170411-2108 org.eclipse.mylyn.java_feature.feature.group Eclipse Mylyn
Mylyn Context Connector: Plug-in Development 3.23.0.v20170411-2108 org.eclipse.mylyn.pde_feature.feature.group Eclipse Mylyn
Mylyn Reviews Connector: Gerrit 2.14.0.v20170411-2108 org.eclipse.mylyn.gerrit.feature.feature.group Eclipse Mylyn
Mylyn Task-Focused Interface 3.23.0.v20170414-0629 org.eclipse.mylyn.context_feature.feature.group Eclipse Mylyn
Mylyn Tasks Connector: Bugzilla 3.23.1.v20170623-0008 org.eclipse.mylyn.bugzilla_feature.feature.group Eclipse Mylyn
Mylyn Versions Connector: Git 1.15.0.v20170411-2003 org.eclipse.mylyn.git.feature.group Eclipse Mylyn
Mylyn WikiText 3.0.19.201711172000 org.eclipse.mylyn.wikitext_feature.feature.group Eclipse Mylyn
OCL All-In-One SDK 6.3.0.v20170613-1432 org.eclipse.ocl.master.feature.group Eclipse Modeling Project
Oomph Setup 1.9.0.v20180529-1103 org.eclipse.oomph.setup.feature.group Eclipse Oomph Project
RAP Tools 3.4.2.20180404-1636 org.eclipse.rap.tools.feature.feature.group Eclipse.org - RAP
Sirius Integration with EEF 6.0.0.201806111309 org.eclipse.sirius.runtime.ide.eef.feature.group Eclipse Modeling Project
Sirius Integration with Xtext 6.0.0.201806111309 org.eclipse.sirius.runtime.ide.xtext.feature.group Eclipse Modeling Project
Sirius Properties Views - Runtime Support 6.0.0.201806111309 org.eclipse.sirius.properties.feature.feature.group Eclipse Modeling Project
Sirius Specifier Environment 6.0.0.201806111309 org.eclipse.sirius.specifier.feature.group Eclipse Modeling Project
Sirius Support for AQL 6.0.0.201806111309 org.eclipse.sirius.aql.feature.group Eclipse Modeling Project
SWTBot for Eclipse Testing 2.6.0.201706141832 org.eclipse.swtbot.eclipse.feature.group Eclipse.org - SWTBot
SWTBot for GEF Testing 2.6.0.201706141832 org.eclipse.swtbot.eclipse.gef.feature.group Eclipse.org - SWTBot
SWTBot IDE Features 2.6.0.201706141832 org.eclipse.swtbot.ide.feature.group Eclipse.org - SWTBot
Xtend IDE 2.14.0.v20180523-0937 org.eclipse.xtend.sdk.feature.group Eclipse Xtend
Xtext Complete SDK 2.14.0.v20180523-0937 org.eclipse.xtext.sdk.feature.group Eclipse Xtext
Xtext Redistributable 2.14.0.v20180523-0937 org.eclipse.xtext.redist.feature.group Eclipse Xtext

Is there something missing? Is there something incompatible here?

[Updated on: Wed, 08 August 2018 13:59]

Report message to a moderator

Previous Topic:Element edges are not deleting from container
Next Topic:Delete multiple elements that are selected by using Java Service
Goto Forum:
  


Current Time: Fri Apr 26 12:51:22 GMT 2024

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

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

Back to the top