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: 9
Registered: August 2017
Junior 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
'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.
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(
at org.eclipse.acceleo.engine.internal.environment.AcceleoLibraryOperationVisitor.callNonStandardOperation(
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitOperationCallExp(
at org.eclipse.ocl.ecore.impl.OperationCallExpImpl.accept(
at org.eclipse.ocl.AbstractEvaluationVisitor.visitExpression(
at org.eclipse.ocl.EvaluationVisitorDecorator.visitExpression(
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.switchExpression(
at org.eclipse.acceleo.engine.internal.evaluation.AcceleoEvaluationVisitor.visitExpression(
at org.eclipse.acceleo.internal.ide.ui.interpreter.AcceleoEvaluationTask.evaluateOCLExpression(
at Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$ Source)
at 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 Eclipse Modeling Project
Buildship: Eclipse Plug-ins for Gradle 2.2.1.v20180125-1441 Eclipse Buildship
Code Recommenders for Java Developers 2.5.2.v20180401-1226 Eclipse Code Recommenders
Code Recommenders Mylyn Integration 2.5.2.v20180401-1226 Eclipse Code Recommenders
Code Recommenders Snipmatch 2.5.2.v20180401-1226 Eclipse Code Recommenders
EclEmma Java Code Coverage Eclipse EclEmma
Eclipse 4 - All Spies (Incubation) 0.18.0.v20171217-2215
Eclipse e4 Tools 4.7.0.v20170515-1617
Eclipse e4 Tools Developer Resources 4.7.0.v20170515-1617
Eclipse for RCP and RAP Developers epp.package.rcp Eclipse Packaging Project
Eclipse Java Development Tools 3.13.4.v20180330-0919
Eclipse Platform 4.7.3.v20180330-0640
Eclipse Plug-in Development Environment 3.13.4.v20180330-0640
Eclipse RCP 4.7.3.v20180330-0640
Eclipse XML Editors and Tools 3.9.2.v201803221834 Eclipse Web Tools Platform
Git integration for Eclipse Eclipse EGit
Git integration for Eclipse - Task focused interface Eclipse EGit
m2e - Maven Integration for Eclipse (includes Incubating components) - m2e
m2e - slf4j over logback logging (Optional) - m2e
Mylyn Builds Connector: Hudson/Jenkins 1.15.0.v20170411-2141 Eclipse Mylyn
Mylyn Context Connector: Eclipse IDE 3.23.0.v20170411-2108 Eclipse Mylyn
Mylyn Context Connector: Java Development 3.23.0.v20170411-2108 Eclipse Mylyn
Mylyn Context Connector: Plug-in Development 3.23.0.v20170411-2108 Eclipse Mylyn
Mylyn Reviews Connector: Gerrit 2.14.0.v20170411-2108 Eclipse Mylyn
Mylyn Task-Focused Interface 3.23.0.v20170414-0629 Eclipse Mylyn
Mylyn Tasks Connector: Bugzilla 3.23.1.v20170623-0008 Eclipse Mylyn
Mylyn Versions Connector: Git 1.15.0.v20170411-2003 Eclipse Mylyn
Mylyn WikiText Eclipse Mylyn
OCL All-In-One SDK 6.3.0.v20170613-1432 Eclipse Modeling Project
Oomph Setup 1.9.0.v20180529-1103 Eclipse Oomph Project
RAP Tools - RAP
Sirius Integration with EEF Eclipse Modeling Project
Sirius Integration with Xtext Eclipse Modeling Project
Sirius Properties Views - Runtime Support Eclipse Modeling Project
Sirius Specifier Environment Eclipse Modeling Project
Sirius Support for AQL Eclipse Modeling Project
SWTBot for Eclipse Testing - SWTBot
SWTBot for GEF Testing - SWTBot
SWTBot IDE Features - SWTBot
Xtend IDE 2.14.0.v20180523-0937 Eclipse Xtend
Xtext Complete SDK 2.14.0.v20180523-0937 Eclipse Xtext
Xtext Redistributable 2.14.0.v20180523-0937 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: Tue Nov 13 06:28:36 GMT 2018

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

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

Back to the top