public class ApplicationAction
extends java.lang.Object
RApplicationAction and CGlobalActions with an
Action.
All ApplicationActions of a active application are stored in static
lists and can be obtained using the
getApplicationActions(EApplicationActionExecutionType) method.
Global actions are treated as a application action of type
EApplicationActionExecutionType.MANUAL.
Important note: This is considered to be internal API. This class might get changed or moved in the future. Clients should not use it.
| Constructor and Description |
|---|
ApplicationAction(ITaurusApplication pAppl,
GlobalAction pGlobalAction)
Creates a new Application action from a
GlobalAction. |
ApplicationAction(ITaurusApplication pAppl,
RApplicationAction pRApplAct)
Creates a new Application action from a
RApplicationAction. |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<ApplicationAction> |
getApplicationActions(EApplicationActionExecutionType pExecutionType)
Gets a sorted list of all modelled
RApplicationAction of the
given execution type. |
static ApplicationAction |
getApplicationDefaultAction()
Returns the default action for the given Element Type.
|
GlobalAction |
getGlobalAction() |
RApplicationAction |
getRApplicationAction()
Gets the
RApplicationAction relationship of the action if the
application action was created from a RApplicationAction. |
ITaurusApplication |
getTaurusApplication() |
boolean |
isGlobalApplicationAction() |
void |
run()
Runs the application action.
|
static void |
runApplicationActions(EApplicationActionExecutionType pType)
Run application actions from the given type.
|
boolean |
seperatorAfter()
Gets whether a separator should be inserted in (context) menus after this
application action.
|
static void |
unregisterApplicationActions()
Unregisters all actions that have been registered in the active
application.
|
public ApplicationAction(ITaurusApplication pAppl, RApplicationAction pRApplAct)
RApplicationAction.pAppl - the active application in which the action will be executepRApplAct - the modeled relationship.public ApplicationAction(ITaurusApplication pAppl, GlobalAction pGlobalAction)
GlobalAction.pAppl - the active application in which the action will be executepGlobalAction - the modeled global action.public static java.util.List<ApplicationAction> getApplicationActions(EApplicationActionExecutionType pExecutionType)
RApplicationAction of the
given execution type. If the types
EApplicationActionExecutionType.ON_FIRST_LOAD oder
EApplicationActionExecutionType.ON_LOAD are given, all
application actions of both types will be returned.pExecutionType - the application execution typeRApplicationAction, sorted by the sequence
numberpublic static ApplicationAction getApplicationDefaultAction()
RApplicationActionpublic RApplicationAction getRApplicationAction()
RApplicationAction relationship of the action if the
application action was created from a RApplicationAction.null for
global actions.public GlobalAction getGlobalAction()
GlobalAction if the application action was created
from a GlobalAction. null otherwise.public boolean isGlobalApplicationAction()
true if the application action was created from a
GlobalAction. false otherwise.public ITaurusApplication getTaurusApplication()
public static void unregisterApplicationActions()
public boolean seperatorAfter()
and
{@link GlobalAction#isSeparatorAfter()}public static void runApplicationActions(EApplicationActionExecutionType pType) throws TaurusCoreException
EApplicationActionExecutionType.ON_FIRST_LOAD oder
EApplicationActionExecutionType.ON_LOAD are given, all
application actions of both types will be run.pType - execution type of actions to be runTaurusCoreException - if at least one application action was not successfully
executedpublic void run()
throws TaurusException
TaurusException - if any exception occurs during the executionCopyright © 2015 Micro Focus GmbH. All rights reserved.