Class UIPluginContext
- java.lang.Object
-
- org.processmining.framework.plugin.impl.AbstractPluginContext
-
- org.processmining.contexts.uitopia.UIPluginContext
-
- All Implemented Interfaces:
org.processmining.framework.plugin.GlobalContext
,org.processmining.framework.plugin.ObjectConstructor
,org.processmining.framework.plugin.PluginContext
public class UIPluginContext extends org.processmining.framework.plugin.impl.AbstractPluginContext
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UIPluginContext(UIPluginContext context, java.lang.String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UIPluginContext
createChildContext(java.lang.String label)
Returns a new plugin context instance, which can be used to invoke other plugins.protected org.processmining.framework.plugin.PluginContext
createTypedChildContext(java.lang.String label)
java.util.concurrent.Executor
getExecutor()
Returns an executor which can be used to execute plugins in child contexts.UIContext
getGlobalContext()
org.processmining.framework.plugin.Progress
getProgress()
Returns the progress object corresponding to this contextUIPluginContext
getRootContext()
Returns the root plugin context.ProMTask
getTask()
Return the task being executed in this PluginContext; useful for registering new resources with this task.java.io.File
openFile(javax.swing.filechooser.FileFilter filter)
java.io.File[]
openFiles(javax.swing.filechooser.FileFilter filter)
java.io.File
saveFile(java.lang.String defaultExtension, java.lang.String... extensions)
void
setTask(ProMTask task)
org.deckfour.uitopia.api.event.TaskListener.InteractionResult
showConfiguration(java.lang.String title, javax.swing.JComponent configuration)
org.deckfour.uitopia.api.event.TaskListener.InteractionResult
showWizard(java.lang.String title, boolean first, boolean last, javax.swing.JComponent configuration)
-
Methods inherited from class org.processmining.framework.plugin.impl.AbstractPluginContext
addConnection, clear, createNewPluginContextID, deleteChild, equals, getChildContexts, getConnectionManager, getFutureResult, getID, getLabel, getLoggingListeners, getParentContext, getPluginContextType, getPluginDescriptor, getPluginLifeCycleEventListeners, getPluginManager, getProgressEventListeners, getProvidedObjectManager, getResult, hasPluginDescriptorInPath, invokeBinding, invokePlugin, isDistantChildOf, log, log, log, setFuture, setPluginDescriptor, toString, tryToFindOrConstructAllObjects, tryToFindOrConstructFirstNamedObject, tryToFindOrConstructFirstObject
-
-
-
-
Constructor Detail
-
UIPluginContext
protected UIPluginContext(UIPluginContext context, java.lang.String label)
-
-
Method Detail
-
createTypedChildContext
protected org.processmining.framework.plugin.PluginContext createTypedChildContext(java.lang.String label)
- Specified by:
createTypedChildContext
in classorg.processmining.framework.plugin.impl.AbstractPluginContext
-
getExecutor
public java.util.concurrent.Executor getExecutor()
Description copied from interface:org.processmining.framework.plugin.PluginContext
Returns an executor which can be used to execute plugins in child contexts.- Returns:
-
openFile
public java.io.File openFile(javax.swing.filechooser.FileFilter filter) throws java.io.IOException
- Throws:
java.io.IOException
-
saveFile
public java.io.File saveFile(java.lang.String defaultExtension, java.lang.String... extensions) throws java.io.IOException
- Throws:
java.io.IOException
-
openFiles
public java.io.File[] openFiles(javax.swing.filechooser.FileFilter filter) throws java.io.IOException
- Throws:
java.io.IOException
-
getProgress
public org.processmining.framework.plugin.Progress getProgress()
Description copied from interface:org.processmining.framework.plugin.PluginContext
Returns the progress object corresponding to this context- Specified by:
getProgress
in interfaceorg.processmining.framework.plugin.PluginContext
- Overrides:
getProgress
in classorg.processmining.framework.plugin.impl.AbstractPluginContext
- Returns:
- the progress object corresponding to this context
-
getGlobalContext
public UIContext getGlobalContext()
- Overrides:
getGlobalContext
in classorg.processmining.framework.plugin.impl.AbstractPluginContext
-
getRootContext
public UIPluginContext getRootContext()
Description copied from interface:org.processmining.framework.plugin.PluginContext
Returns the root plugin context. This is an instance of PluginContext of which all other contexts are distant childs.- Specified by:
getRootContext
in interfaceorg.processmining.framework.plugin.PluginContext
- Overrides:
getRootContext
in classorg.processmining.framework.plugin.impl.AbstractPluginContext
- Returns:
-
setTask
public void setTask(ProMTask task)
-
getTask
public ProMTask getTask()
Return the task being executed in this PluginContext; useful for registering new resources with this task.- Returns:
- the task
-
showConfiguration
public org.deckfour.uitopia.api.event.TaskListener.InteractionResult showConfiguration(java.lang.String title, javax.swing.JComponent configuration)
-
showWizard
public org.deckfour.uitopia.api.event.TaskListener.InteractionResult showWizard(java.lang.String title, boolean first, boolean last, javax.swing.JComponent configuration)
-
createChildContext
public UIPluginContext createChildContext(java.lang.String label)
Description copied from interface:org.processmining.framework.plugin.PluginContext
Returns a new plugin context instance, which can be used to invoke other plugins.- Specified by:
createChildContext
in interfaceorg.processmining.framework.plugin.PluginContext
- Overrides:
createChildContext
in classorg.processmining.framework.plugin.impl.AbstractPluginContext
- Returns:
- the new plugin context instance
-
-