public class TransformationUsageIdentifier
extends java.lang.Object
String
. Using a
String
avoids defining a new interface that the client
would have to implement. The client will be responsible for managing new
identifiers.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANT
The usage identifier for running from an ANT script.
|
static java.lang.String |
EXECUTE_PROGRAMMATICALLY
The usage identifier for running programmatically.
|
static java.lang.String |
PROGRAMMATICALLY
Deprecated.
Use EXECUTE_PROGRAMMATICALLY.
|
static java.lang.String |
PROPERTY_ID
The property id used to store the usage identifier in a transformation
context.
|
static java.lang.String |
TRANSFORMATION_RUNNER
The usage identifier for running from the transformation runner
application (command line).
|
static java.lang.String |
UI_RUN_ACTION
The usage identifier for running from an action, such as from a context
menu or button.
|
static java.lang.String |
UI_RUN_LAST
The usage identifier for running via the run last transformation action.
|
static java.lang.String |
UI_SOURCE_OVERRIDE
The usage identifier for running from an action, but with the source
overridden.
|
static java.lang.String |
UI_VALIDATE_ACTION
The usage identifier for validating from an action, such as from a
context menu or button.
|
static java.lang.String |
VALIDATE_PROGRAMMATICALLY
The usage identifier for validating programmatically.
|
static java.lang.String |
WORKBENCH_TRANSFORMATION_RUNNER
The usage identifier for running from the workbench transformation
runner application (command line).
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getIdentifier(ITransformContext context)
Retrieves the usage identifier from the given transformation context.
|
static boolean |
isUI(ITransformContext context)
Determines if the transformation was used through a UI gesture.
|
public static final java.lang.String ANT
public static final java.lang.String EXECUTE_PROGRAMMATICALLY
public static final java.lang.String PROGRAMMATICALLY
public static final java.lang.String TRANSFORMATION_RUNNER
public static final java.lang.String UI_RUN_ACTION
public static final java.lang.String UI_RUN_LAST
public static final java.lang.String UI_SOURCE_OVERRIDE
public static final java.lang.String UI_VALIDATE_ACTION
public static final java.lang.String VALIDATE_PROGRAMMATICALLY
public static final java.lang.String WORKBENCH_TRANSFORMATION_RUNNER
public static final java.lang.String PROPERTY_ID
public static java.lang.String getIdentifier(ITransformContext context)
context
- The transformation context from which to extract the
usage identifier.public static boolean isUI(ITransformContext context)
context
- The transformation context that contains the usage
identifier.