Class ActionDialog
- java.lang.Object
-
- org.eclipse.swt.widgets.Dialog
-
- org.apache.hop.ui.workflow.action.ActionDialog
-
- Direct Known Subclasses:
ActionBaseDialog,ActionDummyDialog,ActionStartDialog,MissingActionDialog
public abstract class ActionDialog extends org.eclipse.swt.widgets.DialogThe ActionDialog class is responsible for constructing and opening the settings dialog for the action. Whenever the user opens the action settings in HopGui, it will instantiate the dialog class passing in the IAction object and call theopen()
method on the dialog. SWT is the native windowing environment of HopGui, and it is typically the framework used for implementing action dialogs.
-
-
Field Summary
Fields Modifier and Type Field Description static ILoggingObjectloggingObjectThe loggingObject for the dialogprotected IHopMetadataProvidermetadataProviderThe Metadata providerprotected PropsUipropsA reference to the properties user interfaceprotected org.eclipse.swt.widgets.ShellshellA reference to the shellprotected IVariablesvariablesThe variables for the action dialogsprotected WorkflowMetaworkflowMetaThe workflow metadata object.
-
Constructor Summary
Constructors Constructor Description ActionDialog(org.eclipse.swt.widgets.Shell parent, WorkflowMeta workflowMeta, IVariables variables)Instantiates a new action dialog.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaSelectionLine<DatabaseMeta>addConnectionLine(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control previous, String connection, org.eclipse.swt.events.ModifyListener lsMod)Adds the connection line for the given parent and previous control, and returns a meta selection manager controlMetaSelectionLine<DatabaseMeta>addConnectionLine(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control previous, DatabaseMeta selected, org.eclipse.swt.events.ModifyListener lsMod)Adds the connection line for the given parent and previous control, and returns a meta selection manager controlvoiddispose()IHopMetadataProvidergetMetadataProvider()WorkflowMetagetWorkflowMeta()booleanisDisposed()voidsetActive()voidsetMetadataProvider(IHopMetadataProvider metadataProvider)
-
-
-
Field Detail
-
loggingObject
public static final ILoggingObject loggingObject
The loggingObject for the dialog
-
metadataProvider
protected IHopMetadataProvider metadataProvider
The Metadata provider
-
variables
protected IVariables variables
The variables for the action dialogs
-
workflowMeta
protected WorkflowMeta workflowMeta
The workflow metadata object.
-
props
protected PropsUi props
A reference to the properties user interface
-
shell
protected org.eclipse.swt.widgets.Shell shell
A reference to the shell
-
-
Constructor Detail
-
ActionDialog
public ActionDialog(org.eclipse.swt.widgets.Shell parent, WorkflowMeta workflowMeta, IVariables variables)Instantiates a new action dialog.- Parameters:
parent- the parent shellworkflowMeta- the workflow metadata object
-
-
Method Detail
-
setActive
public void setActive()
-
dispose
public void dispose()
-
isDisposed
public boolean isDisposed()
-
addConnectionLine
public MetaSelectionLine<DatabaseMeta> addConnectionLine(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control previous, DatabaseMeta selected, org.eclipse.swt.events.ModifyListener lsMod)
Adds the connection line for the given parent and previous control, and returns a meta selection manager control- Parameters:
parent- the parent composite objectprevious- the previous control- Returns:
- the combo box UI component
-
addConnectionLine
public MetaSelectionLine<DatabaseMeta> addConnectionLine(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control previous, String connection, org.eclipse.swt.events.ModifyListener lsMod)
Adds the connection line for the given parent and previous control, and returns a meta selection manager control- Parameters:
parent- the parent composite objectprevious- the previous controlconnection-lsMod-- Returns:
- the combo box UI component
-
getMetadataProvider
public IHopMetadataProvider getMetadataProvider()
-
setMetadataProvider
public void setMetadataProvider(IHopMetadataProvider metadataProvider)
-
getWorkflowMeta
public WorkflowMeta getWorkflowMeta()
-
-