Package com.e1c.g5.dt.applications
Class ExecutionContext
java.lang.Object
com.e1c.g5.dt.applications.ExecutionContext
The execution context of the application operations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The execution context key to hold an active Eclipse launch instance.static final String
The execution context key to hold an UI shell.static final String
The execution context key to hold the debug processIDebugTarget
instance.static final String
The execution context key to hold the IDE debugger connection URL.static final String
The execution context key to hold the launch (open) URL. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty instance ofExecutionContext
.ExecutionContext
(Map<String, Object> properties) Creates an instance ofExecutionContext
with the provided properties. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copies context with all keys and values.boolean
<T> Optional<T>
getProperty
(String key) Returns a context value stored for the provided key.int
hashCode()
void
setProperties
(Map<String, Object> properties) Sets the context key-value map.void
setProperty
(String key, Object value) Sets the context value for the provided key.toString()
-
Field Details
-
ACTIVE_SHELL_NAME
The execution context key to hold an UI shell.- See Also:
-
ACTIVE_LAUNCH
The execution context key to hold an active Eclipse launch instance.- See Also:
-
DEBUG_URL
The execution context key to hold the IDE debugger connection URL.- See Also:
-
DEBUG_TARGET
The execution context key to hold the debug processIDebugTarget
instance.- See Also:
-
LAUNCH_URL
The execution context key to hold the launch (open) URL.- See Also:
-
-
Constructor Details
-
ExecutionContext
public ExecutionContext()Creates an empty instance ofExecutionContext
. -
ExecutionContext
Creates an instance ofExecutionContext
with the provided properties.- Parameters:
properties
- the context key-value map, cannot benull
-
-
Method Details
-
getProperty
Returns a context value stored for the provided key.- Parameters:
key
- the context key, cannot benull
- Returns:
- the optional context value stored for the provided key
-
setProperty
Sets the context value for the provided key.- Parameters:
key
- the context key, cannot benull
value
- the context value, cannot benull
-
setProperties
Sets the context key-value map.- Parameters:
properties
- the context key-value map, cannot benull
-
copy
Copies context with all keys and values.- Returns:
- the context copy, never
null
-
hashCode
public int hashCode() -
equals
-
toString
-