com.ibm.lab.soln.editor.ui.actions
Class MiniSpreadsheetRowActionFilter
java.lang.Object
|
+--com.ibm.lab.soln.editor.ui.actions.MiniSpreadsheetRowActionFilter
- All Implemented Interfaces:
- org.eclipse.ui.IActionFilter
- public class MiniSpreadsheetRowActionFilter
- extends java.lang.Object
- implements org.eclipse.ui.IActionFilter
Action filters allows an action delegate to be hidden/disabled without having to
create an instance of its target action. This comes in particularly handy when
a plug-in extension isn't yet loaded, but its contributed actions must reflect
current state.
For an example, see the plugin.xml
of
the com.ibm.lab.soln.mini.spreadsheet.extras
project, specifically:
...
<action ...>
<enablement>
<objectState name="hasInts" value="true"/>
</enablement>
</action>
Here the enablement of the contributed action is controlled by testing
the object state without having to first load the action.
- See Also:
MiniSpreadsheetUIPlugin.startup()
Method Summary |
boolean |
testAttribute(java.lang.Object target,
java.lang.String name,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MiniSpreadsheetRowActionFilter
public MiniSpreadsheetRowActionFilter()
testAttribute
public boolean testAttribute(java.lang.Object target,
java.lang.String name,
java.lang.String value)
- Specified by:
testAttribute
in interface org.eclipse.ui.IActionFilter
- See Also:
IActionFilter.testAttribute(Object, String, String)