com.ibm.jdg2e.msseditor.ui.actions
Class MiniSSRowActionFilter

java.lang.Object
  extended bycom.ibm.jdg2e.msseditor.ui.actions.MiniSSRowActionFilter
All Implemented Interfaces:
org.eclipse.ui.IActionFilter

public class MiniSSRowActionFilter
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.jdg2e.msseditor.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.


Constructor Summary
MiniSSRowActionFilter()
           
 
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
 

Constructor Detail

MiniSSRowActionFilter

public MiniSSRowActionFilter()
Method Detail

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)