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 and
RepositoryManager.
The attributes tested explicitly on CARMAResource 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()
- repositoryManagerId -- the Id of the resources' repository manager, tested with
resource.getRepository().getRepositoryManager().getManagerId()
- repositoryManagerUniqueId -- the global unique ID of the resources' repository manager,
tested with resource.getRepository().getRepositoryManager().getUniqueId().
- class -- the Class of the resource, tested with resource.getClass().getName();
Anything not in the above list will be tested from the CARMAresource's MetaInformation.
If the item cannot be found, or does not match the given value, then we will return false.
The attributes tested on RepositoryManager are
- repositoryManager -- the Name of the repository manager, tested with
repositoryManager.getName()
- repositoryManagerId -- the Id of the repository manager, tested with
repositoryManager.getManagerId()
- repositoryManagerUniqueId -- the global unique ID of the repository manager,
tested with repositoryManager.getUniqueId().
- class -- the Class of the resource, tested with repositoryManager.getClass().getName();
Anything not in the above list 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
|
static java.lang.String |
RAM_ID
|
static java.lang.String |
RAM_UNIQUE_ID
|
|
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
RAM_ID
public static final java.lang.String RAM_ID
- See Also:
- Constant Field Values
RAM_UNIQUE_ID
public static final java.lang.String RAM_UNIQUE_ID
- 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