com.ibm.carma.ui.view
Class CarmaActionFilter
java.lang.Object
com.ibm.carma.ui.view.CarmaActionFilter
- All Implemented Interfaces:
- org.eclipse.ui.IActionFilter
public class CarmaActionFilter
- extends java.lang.Object
- implements org.eclipse.ui.IActionFilter
This IActionFilter allows users to test specific attributes on CARMAResource.
The attributes tested explicitly are
- name -- the Name of the resource, tested with resource.getName()
- repositoryManager -- the Name of the resources' repository manager, tested with
resource.getRepository().getRepositoryManager().getName()
- class -- the Class of the resource, tested with resource.getClass().getName();
Anything not in the above list will be tested from the resource's MetaInformation. If the item
cannot be found, or does not match the given value, then we will return false
|
Field Summary |
static java.lang.String |
CLASS
|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
NAME
|
static java.lang.String |
RAM
|
|
Method Summary |
boolean |
testAttribute(java.lang.Object target,
java.lang.String name,
java.lang.String value)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
RAM
public static final java.lang.String RAM
- See Also:
- Constant Field Values
CLASS
public static final java.lang.String CLASS
- See Also:
- Constant Field Values
CarmaActionFilter
public CarmaActionFilter()
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