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 protectedUIPluginContext(UIPluginContext context, java.lang.String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UIPluginContextcreateChildContext(java.lang.String label)Returns a new plugin context instance, which can be used to invoke other plugins.protected org.processmining.framework.plugin.PluginContextcreateTypedChildContext(java.lang.String label)java.util.concurrent.ExecutorgetExecutor()Returns an executor which can be used to execute plugins in child contexts.UIContextgetGlobalContext()org.processmining.framework.plugin.ProgressgetProgress()Returns the progress object corresponding to this contextUIPluginContextgetRootContext()Returns the root plugin context.ProMTaskgetTask()Return the task being executed in this PluginContext; useful for registering new resources with this task.java.io.FileopenFile(javax.swing.filechooser.FileFilter filter)java.io.File[]openFiles(javax.swing.filechooser.FileFilter filter)java.io.FilesaveFile(java.lang.String defaultExtension, java.lang.String... extensions)voidsetTask(ProMTask task)org.deckfour.uitopia.api.event.TaskListener.InteractionResultshowConfiguration(java.lang.String title, javax.swing.JComponent configuration)org.deckfour.uitopia.api.event.TaskListener.InteractionResultshowWizard(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:
createTypedChildContextin classorg.processmining.framework.plugin.impl.AbstractPluginContext
-
getExecutor
public java.util.concurrent.Executor getExecutor()
Description copied from interface:org.processmining.framework.plugin.PluginContextReturns 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.PluginContextReturns the progress object corresponding to this context- Specified by:
getProgressin interfaceorg.processmining.framework.plugin.PluginContext- Overrides:
getProgressin classorg.processmining.framework.plugin.impl.AbstractPluginContext- Returns:
- the progress object corresponding to this context
-
getGlobalContext
public UIContext getGlobalContext()
- Overrides:
getGlobalContextin classorg.processmining.framework.plugin.impl.AbstractPluginContext
-
getRootContext
public UIPluginContext getRootContext()
Description copied from interface:org.processmining.framework.plugin.PluginContextReturns the root plugin context. This is an instance of PluginContext of which all other contexts are distant childs.- Specified by:
getRootContextin interfaceorg.processmining.framework.plugin.PluginContext- Overrides:
getRootContextin 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.PluginContextReturns a new plugin context instance, which can be used to invoke other plugins.- Specified by:
createChildContextin interfaceorg.processmining.framework.plugin.PluginContext- Overrides:
createChildContextin classorg.processmining.framework.plugin.impl.AbstractPluginContext- Returns:
- the new plugin context instance
-
-