Question about extension-point org.eclipse.ui ViewActions [message #331902] |
Sat, 27 September 2008 16:25 |
Eclipse User |
|
|
|
Originally posted by: martin.ohlsson.netplus.se
Hi,
The ViewActions exention has serveral different options to control when the
action is enabled or not.
I have a need for a more advanced option for enablement that I cannot find.
I'm thinking in terms of registering a callback method like
public boolean enable (Object anyObject) and
public boolean enable (Object[] anyObject)
In both the cases it would be up to the implementer of the callback method
to all typecasting etc. and
to return just true or false.
The reason that I can not used the standard object instance is that all the
selected items is the same EMF model.
Just by invoking the getType method it is possible to actually find out if
the object is of correct type.
Perhaps this is possible somehow?
BR
M
|
|
|
|
Powered by
FUDForum. Page generated in 0.03036 seconds