Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Disable selection on certain objects in Ecore editor
Disable selection on certain objects in Ecore editor [message #1740964] Sun, 21 August 2016 20:02 Go to next message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
I want to be able to disable selection on certain elements in the Ecore Editor dynamically.

How can I do that?
Re: Disable selection on certain objects in Ecore editor [message #1740967 is a reply to message #1740964] Sun, 21 August 2016 20:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 28978
Registered: July 2009
Senior Member
You could listen to selection changes and unselect things you don't want to be selected. But I doubt users would find that intuitive behavior; I've need seen a tree that doesn't allow certain things to be selected...
Re: Disable selection on certain objects in Ecore editor [message #1741716 is a reply to message #1740967] Sun, 28 August 2016 15:09 Go to previous message
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
Hi Ed,

Thanks for your answer.

But is it not possible at all to disable a TreeItem in the TreeViewer?

There is only "setGrayed" method available on any TreeItem?

But not "disable" or something similiar?





/uma

[Updated on: Sun, 28 August 2016 21:59]

Report message to a moderator

Previous Topic:[EMF Forms] Which are its limits?
Next Topic:[EMFForms] TableControl detail view properties not resolving
Goto Forum:
  


Current Time: Fri Nov 24 04:10:17 GMT 2017

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

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