Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Core Expression Definition null/exists check?
Core Expression Definition null/exists check? [message #938829] Wed, 10 October 2012 07:32
Dirk Fauth is currently offline Dirk Fauth
Messages: 1286
Registered: July 2012
Senior Member
Hi,

I learned that making commands visible in menus can be done via core expression definitions, similar to Eclipse 3.x. I also learned that I can use PropertyTesters and SourceProviders, but as you can access values in the context directly in Eclipse 4, using a SourceProvider doesn't make that much sense IMHO.

Is there a possiblity to add a null or exists check in the core expression definition? e.g. the command should only be visible if the specified key is contained within the context, like only show the Calculate command in the menu if there is a Calculate object in the context.

AFAIK this wasn't possible in Eclipse 3.x either, but maybe it is now possible with Eclipse 4.

Greez,
Dirk
Previous Topic:treeviewer prob,eclipse rcp,juno
Next Topic:Using own TranslationService for Application.e4xmi
Goto Forum:
  


Current Time: Wed Sep 17 23:47:02 GMT 2014

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

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