Using Incquery as EVM for notifying UML papyrus changes

Hi everyone,
I'm using IncQuery for incremental evaluation when model changes.
I have a model listened by IncQueryEngine, my model is UML created by papyrus. I want each time the model changed by Papyrus editor, the incquery should evaluate queries incrementally and notify me the results.
How can I do it? I tried to use ExecutionSchema but it only works if I change my model by Java code not by the Papyrus editor. Say like:
val clz = UMLFactory.eINSTANCE.createClass => [name = "ABC"]
umlModel.packagedElements += clz
This code snippets work and IncQuery notifies me the results but not does by IncQuery? Does Incquery re-evaluate models if they are changed in any manner?
Thanks

Hi,
Quote:This code snippets work and IncQuery notifies me the results but not does by IncQuery? Does Incquery re-evaluate models if they are changed in any manner?
I guess, one of the IncQuery occurences in the first version should be Papyrus; in the remainder I would go on that basis. If it is incorrect, feel free to ask for clarification.
The change notification in EMF-IncQuery works by registering an IncQueryEngine instance as change listener to EMF models (more specifically, Resource/ResourceSets), and then sends further notifications when match sets are changed. E.g., you can verify this in the Query Explorer view from the IncQuery SDK: load your queries and the instance model (from a Papyrus editor), and you can check that the display reacts to model changes automatically.
Behind the scenes, for EMF-IncQuery to work with the changes of the edited model, you have to make sure to initialize the IncQueryEngine on the ResourceSet used by Papyrus, instead of simply opening the model again programmatically (that would result in having a separate in-memory representation of the same model; but the two are not connected in any way). For this to work, you have to write some integration code, e.g. check the current selection of the editor, and find the corresponding resource, or (if I recall correctly), the Papyrus editor implements the IEditingDomainProvider interface, that can also be used to access the editors ResourceSet.
Cheers,
Zoltán

Similar Messages

  • Numbers for iPad.Can i change background color?

    When using spreadsheets in numbers for iPad,can I change the background color of the screen while leaving the table white.I want to have a few tables on one spreadsheet and leave the the tables white.Can I do this and change the screen color surrounding the table?

    (Numbers '09 answer, Numbers for iOS procedure may be similar.)
    In Numbers '09 the Sheet is white (period), You can, however, place a coloured shape on the Sheet, and apply your desired fill colou to that shap, then ruse the Arrange menu to Move it to the Back, then resize it and position it as needed to fill the background.
    Regards,
    Barry

  • HT204053 The entire family has used one itunes account for years. How do we all set up separate iCloud accounts now?

    The entire family has used one itunes account for years. How do we all set up separate iCloud accounts now? Or should we? 5 macbooks, 2 ipads, 4 iphones, 2 itouch, 2 imacs.   How does one decide what to sync, share and what not to? Green Jeans.

    You need to start by understanding the distinction between iTunes and iCloud - Apple confuse the issue by referring to 'iTunes Match' as part of iCloud. It isn't.
    You don't have to have the same login (Apple ID) for iTunes and iCloud; many people don't and there's no problem about it.
    Your iCloud ID gets you email, calendars, contacts, iWork documents and PhotoStream syncing between devices.
    Your iTunes ID gets you the iTunes Store, the App Store for iOS, the Mac App Store for OSX,, 'iTunes in the Cloud' (downloading of purchased items to any logged-in device) and 'iTunes Match' (uploading of songs not purchased in the iTunes Store).
    Your family members can easily each get their own iCloud account to keep email etc. separate - in each case they will need a different non-Apple email address (a free one from Yahoo etc. would do) to set up the ID. If they are sharing a Mac they need to be using a separate user account.
    They can have their own iCloud accounts and still all sign into the same iTunes account: or they can open their own iTunes accounts using their new iCloud Apple IDs.
    BUT they cannot transfer items purchased under the present iTunes ID to different iTunes IDs.

  • If we have 3 iPhones, and use the same iTunes for all content, should we use 3 Apple IDs and authorize for all 3 or just use 1 ID?

    I want to enable us to share all apps, music, videos and photos, but enable each phone to keep its contacts and history separate. If I use 1 ID, all new purchases will go on the same credit card, which I'm not sure is ideal, but not horrible. Since we use the same computer and iTunes using only 1 appleID, and the phones are new to the equation since it was only iPods before, what is the best way to handle a family with 3 phones that can share all entertainment content, but not all phone-related stuff? I saw that you can use one AppleID for purchases, but another for iCloud. That may be the best solution, but I don't know enough about this yet to move forward yet- migrating from Android...
    Appreciate the help.

    Thanks for the help, but a follow up question now.
    My iPhone won't arrive for a little while, but my wife already got hers and she wants to set it up now. Using my Apple ID for the purchases, if she starts setting hers up, can she change her iCloud ID to something else quickly? It keeps telling us that we have to sign in with the AppleID first.
    Should we just set up an iCloud account via normal internet before trying all this via iPhone?

  • How to use one email adress for multiple recipients

    Hello,
    I'd like to know how to use one email adress for multiple recipients. 
    this would be very useful or projects. for example;
    if i send one mail to [email protected], all people in this project get an email.
    I will add the people in this project myself. 
    I know it is possible, but I don't know how to do it ;-)
    please help me! 

    Hope this help.
    _http://technet.microsoft.com/en-us/library/cc164331(v=exchg.65) .aspx

  • [SOLVED] how to use diffrent iptables rules for different ppp account?

    x86 plantform run arch linux system , have two network interface etn1 eth0 .eth1 connect to internet. eth0 connect to other terminals through switch. want use different iptables rules for different pppoe account .also want to know how to forbidden more than one terminals established pppoe link use same account at the same time .
    Last edited by linuxsir (2013-09-26 06:48:01)

    (You establish PPPoE sessions over the local network to the Arch machine? Which then routes the traffic?)
    first question ,yes that is exactly what i am done. second question i also have a small  scripts on windows pc to solve routes traffic problem
    route -p delete 0.0.0.0
    route -p add 192.168.9.0 mask 255.255.255.0 192.168.9.1
    route -p add 0.0.0.0 mask 0.0.0.0 192.168.22.0
    but after a while i found scripts is not necessary because windows always attempt to use PPPoE sessions as default internet connection local connection is also ok
    and use  -i pppX in my iptables rules dose not  solve my problem , because same account start PPPoE session could be marked as ppp0 or ppp1. it is hard to identified which account start session.

  • How do I change the icloud account on my iphone? I want to use the same account for all my apple devices (macbook air and imac and iphone). I can't see where I can amend the iphone account because it is in grey?

    I want to use the same account for all my apple devices (macbook air, imac and iphone). I can't see how I can amend the iphone account because it is in grey? I also can't remember the password for this account so i can't even delete it and start again?
    Help!
    Thanks

    Deleting an iCloud account only deletes it from the Device, not from iCloud.  In iOS 8, the name of this setting changed to "Sign Out" as that is a better reflection of what actually happens.  Your iCloud data remains on the server, available to devices still signed into the account, but the device you sign out of the account on is disconnected from the account, and as a result, the iCloud data from that account is removed from the device.  It will redownload to the device should you sign back into the account.
    The only issue you'll run into when you switch between accounts is with my photo stream photos older than 30 days.  When you delete (or sign out of) and account, your photo stream photos are deleted along with the other data from the account in question.  However, unlike other data which remains on the server and can redownload to your device when you sign back in, my photo stream photos only remain in iCloud for 30 days.  When you sign back in, you will only get back my photo stream photos added in the last 30 days (as older photos are no longer in iCloud to redownload).  Like other account data, any my photo stream photos on your other devices signed into the account are unaffected by this.  If you want to keep older my photo stream photos on your device as you change iCloud accounts, save them to your camera roll before deleting (signing out of) the account.

  • Hi. I am using a time capsule for few PC s. I have made 5 different account to access time capsule. but in windows when i enter account name and password for one account, i cannot access other accounts, because windows saves username

    Hi. I am using a time capsule for few PC s. I have made 5 different account to access time capsule. but in windows when I enter account name and password for one account, i cannot access other accounts, because windows saves username. how can i prevent this from happenning. I really need to access all my accounts and dont want it to save automaticlly.

    Why have 5 accounts if you need to access all of them.. just have one account?
    Sorry I cannot follow why you would even use the PC to control the Time Capsule. Apple have not kept the Windows version of the utility up to date.. so they keep making it harder and harder to run windows with apple routers.

  • Why does my app store use a different account for downloading and another for updating apps?

    My app store used my own account for downloading and my sister's for updating, and it keeps telling me to reset my account. I already did that the other few times it told me to do that!

    Have you restored your device from your sister's backup?

  • HT204053 i RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    I RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    Welcome to the Apple community.
    iTunes and iCloud and different accounts, you will need to delete both accounts from your device before adding the new details in their place.
    For iCloud go to settings > iCloud, scroll down and hit the delete button. You can then sign back in using your correct details. For iTunes go to settings >store, tap your account ID and then sign out, you can then sign back in using your correct Apple ID.

  • How do you use one apple id for iPad and iphone

    We have an iPad, four iphone 3gs and a new iphone4.  We use one apple Id for each with iCloud.  Do we need a new apple Id for the 4gs?  Also how do we share the iPad between the iPhones for music & apps.   Thanks.

    To allow you to Message one another and FaceTimne one another see:
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime

  • How to use 1 apple id for multiple deivces

    How do I use 1 apple id for multiple devices.  My son just got new ipod and wants to imessage, but when he does it shows it is from me.

    Thank you

  • HT204053 Can I use one Apple ID for two Apple IPhones?

    Can I use one Apple ID for two Apple IPhones? I received an answer of yes.
    Now another question.  I have one ICloud Account, Two IPhones.  Can I use Find my IPhone via the one ICloud Account?  Can I see two IPhones on the map at the same time?  or do I need to view the second phone via some other method.
    Message was edited by: Hunter3D

    Yes.
    Cheers,
    GB

  • HT204053 What's the best way to set up a family of devices in order to use one apple id for purchases on itunes and the app store?

    we are trying to face time between devices, but it won't work whn multiple devices are tied to one apple id.
    How do you designate one id to pay for purchases and one so that we can facetime from device to device?

    The ID used for purchasing is in Settings>Store.  This ID does not need to be the same one used for other services such as FaceTime, iMessage, etc. (in fact you're far better off if you use separate Apple IDs for these other services).  To change the ID used for iMessage, go to Settings>Messages>Receive At, tap the ID at the top, sign out, then sign back in using a separate (and unique) ID.  You can similarly change the ID used for FaceTime in Settings>FaceTime.  To sycn data with iCloud such as calendars, contacts, etc., without merging your data across devices, set up different iCloud account with different Apple IDs for each device.  You can go to Settings>iCloud and turn off syncing for your data, and when prompted, choose to keep the data on the device.  Then scroll to the bottom and tap Delete Account.  Then set up a new iCloud account using a different Apple ID for each device and turn data syncing back on in Settings>iCloud.
    This article may be of interest: http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/.

Maybe you are looking for