Package com.e1c.g5.dt.applications
Class ExecutionContext
- java.lang.Object
-
- com.e1c.g5.dt.applications.ExecutionContext
-
public final class ExecutionContext extends Object
The execution context of the application operations.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTIVE_LAUNCH
The execution context key to hold an active Eclipse launch instance.static String
ACTIVE_SHELL_NAME
The execution context key to hold an UI shell.static String
DEBUG_TARGET
The execution context key to hold the debug processIDebugTarget
instance.static String
DEBUG_URL
The execution context key to hold the IDE debugger connection URL.static String
LAUNCH_URL
The execution context key to hold the launch (open) URL.
-
Constructor Summary
Constructors Constructor Description ExecutionContext()
Creates an empty instance ofExecutionContext
.ExecutionContext(Map<String,Object> properties)
Creates an instance ofExecutionContext
with the provided properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionContext
copy()
Copies context with all keys and values.boolean
equals(Object obj)
<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.
-
-
-
Field Detail
-
ACTIVE_SHELL_NAME
public static final String ACTIVE_SHELL_NAME
The execution context key to hold an UI shell.- See Also:
- Constant Field Values
-
ACTIVE_LAUNCH
public static final String ACTIVE_LAUNCH
The execution context key to hold an active Eclipse launch instance.- See Also:
- Constant Field Values
-
DEBUG_URL
public static final String DEBUG_URL
The execution context key to hold the IDE debugger connection URL.- See Also:
- Constant Field Values
-
DEBUG_TARGET
public static final String DEBUG_TARGET
The execution context key to hold the debug processIDebugTarget
instance.- See Also:
- Constant Field Values
-
LAUNCH_URL
public static final String LAUNCH_URL
The execution context key to hold the launch (open) URL.- See Also:
- Constant Field Values
-
-
Method Detail
-
getProperty
public <T> Optional<T> getProperty(String key)
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
public void setProperty(String key, Object value)
Sets the context value for the provided key.- Parameters:
key
- the context key, cannot benull
value
- the context value, cannot benull
-
setProperties
public void setProperties(Map<String,Object> properties)
Sets the context key-value map.- Parameters:
properties
- the context key-value map, cannot benull
-
copy
public ExecutionContext copy()
Copies context with all keys and values.- Returns:
- the context copy, never
null
-
-