Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Selecting an element after it was created
Selecting an element after it was created [message #650928] Thu, 27 January 2011 08:27 Go to next message
Wladimir Schamai is currently offline Wladimir SchamaiFriend
Messages: 53
Registered: May 2010
Member
Hi all,

I am implementing additional Papyrus Model Explorer context menu actions for creating new elements, for example, a UML class with a stereotype applied to it.

I would like to set the focus, or in fact even to select the new element in the Model Explorer, after it was created, so that the properties view for it is shown. Is there Papyrus code that does it. If yes, can anybody please point me to it?

Wladimir
Re: Selecting an element after it was created [message #650972 is a reply to message #650928] Thu, 27 January 2011 11:00 Go to previous message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 245
Registered: July 2009
Location: Paris Saclay, France
Senior Member
Hi,
I think that you need to get the created object and set to the selection service that this element is a new selection.
see this page:
http://www.eclipse.org/articles/Article-WorkbenchSelections/ article.html

I will send you more information on Tuesday, I'm quite overloaded Smile .
Patrick
Papyrus Team
Previous Topic:Layout of ports
Next Topic:drag elements from the model view, don`t show the profile stereotypes.
Goto Forum:
  


Current Time: Sat Jul 11 15:35:12 GMT 2020

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

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

Back to the top