Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EMF-IncQuery » Query on Papyrus UML models with applied profiles(Query on Papyrus UML models with applied profiles)
Query on Papyrus UML models with applied profiles [message #1701589] Tue, 14 July 2015 10:22 Go to next message
Van Cam PHAM is currently offline Van Cam PHAMFriend
Messages: 13
Registered: July 2015
Junior Member
Hi everyone,

I'm using IncQuery for detecting changes on Papyrus UML models.
My UML models are applied with UML profiles created by Papyrus.
How can I query on models applied profiles that have the same stereotype name. How to distinguish stereotype name and UML model element name in queries?
For example, there is Connector and in the applied profile, there is also a stereotype named Connector. How can I use prefix name for this kind.

Thanks.
Re: Query on Papyrus UML models with applied profiles [message #1701620 is a reply to message #1701589] Tue, 14 July 2015 13:25 Go to previous messageGo to next message
Abel Hegedus is currently offline Abel HegedusFriend
Messages: 189
Registered: September 2015
Senior Member
Since 1.0.0, you can name imports and use the name as a prefix for types:
import "umlNsUri" as uml;
import "myProfileUri" as profile;

pattern someP ( myParam : uml::Connector, myP2 : profile::Connector) {...}
Re: Query on Papyrus UML models with applied profiles [message #1702188 is a reply to message #1701620] Mon, 20 July 2015 14:11 Go to previous message
Van Cam PHAM is currently offline Van Cam PHAMFriend
Messages: 13
Registered: July 2015
Junior Member
Thanks Abel,

It works except semicolons for import as.

import "uri" as uml

Best regards,

Cam,
Previous Topic:EVM: Update job - How to find the element that changed?
Next Topic:Using Incquery as EVM for notifying UML papyrus changes
Goto Forum:
  


Current Time: Thu Nov 15 00:25:12 GMT 2018

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

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

Back to the top