|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.carma.ui.view.RAMActionRegistry
public class RAMActionRegistry
Registry of action states to display in CARMA viewers. The registry can be
populated by the com.ibm.carma.ui.ramBrowserActions extension point, or programmaticaly
using the setRAMActionState(String, String, RAMActionState) method. The action states are
held individually per RAM based on the RAM id.
RAMActionState| Field Summary | |
|---|---|
static java.lang.String |
COPYRIGHT
|
| Method Summary | |
|---|---|
RAMActionState |
getRAMActionState(java.lang.String ramId,
java.lang.String actionId)
Retrieves the stored display state for the given RAM ID and action ID. |
RAMActionState |
getRegisteredActionState(java.lang.String actionId,
org.eclipse.ui.actions.ActionContext context)
Determines the action state for the given ActionContext |
static RAMActionRegistry |
getRegistry()
Returns the action state registry. |
boolean |
isActionRegistered(java.lang.String ramId,
java.lang.String actionId)
Checks if a non-default action state is registered for the RAM. |
void |
setRAMActionState(java.lang.String ramId,
java.lang.String actionId,
RAMActionState enabled)
Sets the action state in the registry for the given ram and action ID |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COPYRIGHT
| Method Detail |
|---|
public static RAMActionRegistry getRegistry()
public void setRAMActionState(java.lang.String ramId,
java.lang.String actionId,
RAMActionState enabled)
ramId - the RAM ID to store the action state againstactionId - the action Id to define state forenabled - the display state
public RAMActionState getRAMActionState(java.lang.String ramId,
java.lang.String actionId)
ramId - the RAM ID to retrieve the action state againstactionId - the action ID to retrieve state for
public boolean isActionRegistered(java.lang.String ramId,
java.lang.String actionId)
ramId - the RAM ID to retrieve the action state foractionId - the action ID to check
true if the action state is set for the given RAM
public RAMActionState getRegisteredActionState(java.lang.String actionId,
org.eclipse.ui.actions.ActionContext context)
ActionContext
actionId - The action to inspect for statecontext - the context in which the action should be inspected
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||