public class DummyUIPluginContext
extends org.processmining.contexts.uitopia.UIPluginContext
Constructor and Description |
---|
DummyUIPluginContext(org.processmining.framework.plugin.GlobalContext context,
java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
<T extends org.processmining.framework.connections.Connection> |
addConnection(T c)
Registers the given connection in the global context.
|
org.processmining.framework.connections.ConnectionManager |
getConnectionManager()
Returns the connection manager.
|
<T,C extends org.processmining.framework.connections.Connection> |
tryToFindOrConstructAllObjects(java.lang.Class<T> type,
java.lang.Class<C> connectionType,
java.lang.String role,
java.lang.Object... input)
Finds as many objects of the given type as can be found through the
connections of the other given type.
|
createChildContext, createTypedChildContext, getExecutor, getGlobalContext, getProgress, getRootContext, getTask, openFile, openFiles, saveFile, setTask, showConfiguration, showWizard
clear, createNewPluginContextID, deleteChild, equals, getChildContexts, getFutureResult, getID, getLabel, getLoggingListeners, getParentContext, getPluginContextType, getPluginDescriptor, getPluginLifeCycleEventListeners, getPluginManager, getProgressEventListeners, getProvidedObjectManager, getResult, hasPluginDescriptorInPath, invokeBinding, invokePlugin, isDistantChildOf, log, log, log, setFuture, setPluginDescriptor, toString, tryToFindOrConstructFirstNamedObject, tryToFindOrConstructFirstObject
public DummyUIPluginContext(org.processmining.framework.plugin.GlobalContext context, java.lang.String label)
public <T extends org.processmining.framework.connections.Connection> T addConnection(T c)
org.processmining.framework.plugin.PluginContext
addConnection
in interface org.processmining.framework.plugin.PluginContext
addConnection
in class org.processmining.framework.plugin.impl.AbstractPluginContext
public <T,C extends org.processmining.framework.connections.Connection> java.util.Collection<T> tryToFindOrConstructAllObjects(java.lang.Class<T> type, java.lang.Class<C> connectionType, java.lang.String role, java.lang.Object... input) throws org.processmining.framework.connections.ConnectionCannotBeObtained
org.processmining.framework.plugin.ObjectConstructor
tryToFindOrConstructAllObjects
in interface org.processmining.framework.plugin.ObjectConstructor
tryToFindOrConstructAllObjects
in class org.processmining.framework.plugin.impl.AbstractPluginContext
T
- The type of the return object required.type
- the type of the return object required.connectionType
- the type of the connections to use when trying to find the
objects.role
- the assumed role of the object in the connection. Given a
connection, the object can be retrieved through the role.input
- the input on which the plugin should workorg.processmining.framework.connections.ConnectionCannotBeObtained
public org.processmining.framework.connections.ConnectionManager getConnectionManager()
org.processmining.framework.plugin.GlobalContext
getConnectionManager
in interface org.processmining.framework.plugin.GlobalContext
getConnectionManager
in class org.processmining.framework.plugin.impl.AbstractPluginContext