Skip to main content



      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 06:22 Go to next message
Eclipse UserFriend
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 09:25 Go to previous messageGo to next message
Eclipse UserFriend
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 10:11 Go to previous message
Eclipse UserFriend
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: Tue Jul 15 08:29:42 EDT 2025

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

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

Back to the top