Class BaseTransformDialog
- java.lang.Object
-
- org.eclipse.swt.widgets.Dialog
-
- org.apache.hop.ui.pipeline.transform.BaseTransformDialog
-
- Direct Known Subclasses:
DummyDialog,InjectorDialog,MissingPipelineDialog,ModPartitionerDialog
public class BaseTransformDialog extends org.eclipse.swt.widgets.DialogThis class provides functionality common to Transform Dialogs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBaseTransformDialog.IFieldsChoiceDialogProvider
-
Field Summary
Fields Modifier and Type Field Description protected booleanbackupChangedprotected ITransformMetabaseTransformMetaThe base transform meta.protected static intBUTTON_ALIGNMENT_CENTERA constant indicating a center button alignment.protected static intBUTTON_ALIGNMENT_LEFTA constant indicating a left button alignment.static intBUTTON_ALIGNMENT_RIGHTA constant indicating a right button alignment.protected static intbuttonAlignmentThe button alignment (defaults to center).protected booleanchangedWhether the dialog (and its backup) have changed.protected org.eclipse.swt.layout.FormDatafdCancelprotected org.eclipse.swt.layout.FormDatafdCreateprotected org.eclipse.swt.layout.FormDatafdGetprotected org.eclipse.swt.layout.FormDatafdlTransformNameThe FormData for the transform name and its label.protected org.eclipse.swt.layout.FormDatafdOkFormData for the common dialog buttons.protected org.eclipse.swt.layout.FormDatafdPreviewprotected org.eclipse.swt.layout.FormDatafdSqlprotected org.eclipse.swt.layout.FormDatafdTransformNameprotected LogChannellogThe log channel for this dialog.static ILoggingObjectloggingObjectThe logging object interface for this dialog.protected org.eclipse.swt.widgets.ListenerlsResizeA listener for dialog resizing.protected IHopMetadataProvidermetadataProviderThe MetaStore to useprotected PipelineMetapipelineMetaThe metadata for the associated pipeline.protected PropsUipropsThe UI properties.protected org.eclipse.swt.widgets.ShellshellA reference to the parent shell.protected TransformMetatransformMetaThe transform meta for this dialog.protected StringtransformNameThe transform name.protected IVariablesvariablesThe variable bindings for this dialog.protected org.eclipse.swt.widgets.ButtonwCancelprotected org.eclipse.swt.widgets.ButtonwCreateprotected org.eclipse.swt.widgets.ButtonwGetprotected org.eclipse.swt.widgets.LabelwlTransformNameThe Transform name label.protected org.eclipse.swt.widgets.ButtonwOkCommon dialog buttons.protected org.eclipse.swt.widgets.ButtonwPreviewprotected org.eclipse.swt.widgets.ButtonwSqlprotected org.eclipse.swt.widgets.TextwTransformNameThe Transform name UI component.
-
Constructor Summary
Constructors Constructor Description BaseTransformDialog(org.eclipse.swt.widgets.Shell parent, int nr, IVariables variables, BaseTransformMeta<?,?> in, PipelineMeta tr)Instantiates a new base transform dialog.BaseTransformDialog(org.eclipse.swt.widgets.Shell parent, IVariables variables, BaseTransformMeta<?,?> baseTransformMeta, PipelineMeta pipelineMeta, String transformName)Instantiates a new base transform dialog.BaseTransformDialog(org.eclipse.swt.widgets.Shell parent, IVariables variables, ITransformMeta baseTransformMeta, PipelineMeta pipelineMeta, String transformName)Instantiates a new base transform dialog.
-
Method Summary
All Methods Static 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 controlMetaSelectionLine<DatabaseMeta>addConnectionLine(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control previous, DatabaseMeta selected, org.eclipse.swt.events.ModifyListener lsMod, String connectionLabel)MetaSelectionLine<DatabaseMeta>addConnectionLine(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control previous, DatabaseMeta selected, org.eclipse.swt.events.ModifyListener lsMod, String connectionLabel, String connectionTooltip)protected static voidcenterButtons(org.eclipse.swt.widgets.Button[] buttons, int width, int margin, org.eclipse.swt.widgets.Control lastControl)Aligns the buttons as centered on the dialog.voiddispose()Dispose this dialog.protected static intgetButtonAlignment()Returns the default alignment for the buttons.static voidgetFieldsFromPrevious(IRowMeta row, TableView tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, boolean optimizeWidth, ITableItemInsertListener listener)Gets unused fields from previous transforms and inserts them as rows into a table view.static voidgetFieldsFromPrevious(IRowMeta row, TableView tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, boolean optimizeWidth, ITableItemInsertListener listener, BaseTransformDialog.IFieldsChoiceDialogProvider getFieldsChoiceDialogProvider)Gets unused fields from previous transforms and inserts them as rows into a table view.static voidgetFieldsFromPrevious(IRowMeta row, TableView tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, ITableItemInsertListener listener)Gets unused fields from previous transforms and inserts them as rows into a table view.static voidgetFieldsFromPrevious(IVariables variables, PipelineMeta pipelineMeta, TransformMeta transformMeta, TableView tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, ITableItemInsertListener listener)Gets unused fields from previous transforms and inserts them as rows into a table view.static voidgetFieldsFromPrevious(IVariables variables, ComboVar comboVar, PipelineMeta pipelineMeta, TransformMeta transformMeta)Gets fields from previous transforms and populate a ComboVar.IHopMetadataProvidergetMetadataProvider()static org.eclipse.swt.events.ModifyListenergetModifyListenerTooltipText(IVariables variables, TextVar textField)Gets the modify listener tooltip text.IVariablesgetVariables()Gets variablesbooleanisBasic()Checks if the log level is basic.booleanisDebug()Checks if the log level is debug.booleanisDetailed()Checks if the log level is detailed.booleanisDisposed()booleanisRowLevel()Checks if the log level is row level.protected static voidleftAlignButtons(org.eclipse.swt.widgets.Button[] buttons, int width, int margin, org.eclipse.swt.widgets.Control lastControl)Aligns the buttons as left-aligned on the dialog.voidlogBasic(String message)Log the message at a basic logging level.voidlogBasic(String message, Object... arguments)Log the message with arguments at a basic logging level.voidlogDebug(String message)Log the message at a debug logging level.voidlogDebug(String message, Object... arguments)Log the message with arguments at a debug logging level.voidlogDetailed(String message)Log the message at a detailed logging level.voidlogDetailed(String message, Object... arguments)Log the message with arguments at a detailed logging level.voidlogError(String message)Log the message at a error logging level.voidlogError(String message, Object... arguments)Log the message with arguments at a error logging level.voidlogError(String message, Throwable e)Log the message with the associated Throwable object at a error logging level.voidlogMinimal(String message)Log the message at a minimal logging level.voidlogMinimal(String message, Object... arguments)Log the message with arguments at a minimal logging level.voidlogRowlevel(String message)Log the message at a rowlevel logging level.voidlogRowlevel(String message, Object... arguments)Log the message with arguments at a rowlevel logging level.static voidpositionBottomButtons(org.eclipse.swt.widgets.Composite composite, org.eclipse.swt.widgets.Button[] buttons, int margin, int alignment, org.eclipse.swt.widgets.Control lastControl)static voidpositionBottomButtons(org.eclipse.swt.widgets.Composite composite, org.eclipse.swt.widgets.Button[] buttons, int margin, org.eclipse.swt.widgets.Control lastControl)Position the specified buttons at the bottom of the parent composite.protected voidreplaceNameWithBaseFilename(String filename)protected static voidrightAlignButtons(org.eclipse.swt.widgets.Button[] buttons, int width, int margin, org.eclipse.swt.widgets.Control lastControl)Aligns the buttons as right-aligned on the dialog.voidsetActive()protected voidsetButtonPositions(org.eclipse.swt.widgets.Button[] buttons, int margin, org.eclipse.swt.widgets.Control lastControl)Sets the button positions.voidsetMetadataProvider(IHopMetadataProvider metadataProvider)static voidsetMinimalShellHeight(org.eclipse.swt.widgets.Shell shell, org.eclipse.swt.widgets.Control[] controls, int margin, int extra)Sets the minimal shell height.voidsetShellImage(org.eclipse.swt.widgets.Shell shell, ITransformMeta transformMetaInterface)Sets the shell image.voidsetSize()Set the shell size, based upon the previous time the geometry was saved in the Properties file.static voidsetSize(org.eclipse.swt.widgets.Shell shell)Sets the size of this dialog with respect to the given shell.static voidsetSize(org.eclipse.swt.widgets.Shell shell, int minWidth, int minHeight)static voidsetSize(org.eclipse.swt.widgets.Shell shell, int minWidth, int minHeight, boolean packIt)Sets the size of this dialog with respect to the given parameters.static voidsetTraverseOrder(org.eclipse.swt.widgets.Control[] controls)Sets the traverse order for the given controls.StringtoString()
-
-
-
Field Detail
-
loggingObject
public static final ILoggingObject loggingObject
The logging object interface for this dialog.
-
variables
protected IVariables variables
The variable bindings for this dialog.
-
transformName
protected String transformName
The transform name.
-
wlTransformName
protected org.eclipse.swt.widgets.Label wlTransformName
The Transform name label.
-
wTransformName
protected org.eclipse.swt.widgets.Text wTransformName
The Transform name UI component.
-
fdlTransformName
protected org.eclipse.swt.layout.FormData fdlTransformName
The FormData for the transform name and its label.
-
fdTransformName
protected org.eclipse.swt.layout.FormData fdTransformName
-
wOk
protected org.eclipse.swt.widgets.Button wOk
Common dialog buttons.
-
wGet
protected org.eclipse.swt.widgets.Button wGet
-
wPreview
protected org.eclipse.swt.widgets.Button wPreview
-
wSql
protected org.eclipse.swt.widgets.Button wSql
-
wCreate
protected org.eclipse.swt.widgets.Button wCreate
-
wCancel
protected org.eclipse.swt.widgets.Button wCancel
-
fdOk
protected org.eclipse.swt.layout.FormData fdOk
FormData for the common dialog buttons.
-
fdGet
protected org.eclipse.swt.layout.FormData fdGet
-
fdPreview
protected org.eclipse.swt.layout.FormData fdPreview
-
fdSql
protected org.eclipse.swt.layout.FormData fdSql
-
fdCreate
protected org.eclipse.swt.layout.FormData fdCreate
-
fdCancel
protected org.eclipse.swt.layout.FormData fdCancel
-
pipelineMeta
protected PipelineMeta pipelineMeta
The metadata for the associated pipeline.
-
shell
protected org.eclipse.swt.widgets.Shell shell
A reference to the parent shell.
-
lsResize
protected org.eclipse.swt.widgets.Listener lsResize
A listener for dialog resizing.
-
changed
protected boolean changed
Whether the dialog (and its backup) have changed.
-
backupChanged
protected boolean backupChanged
-
baseTransformMeta
protected ITransformMeta baseTransformMeta
The base transform meta.
-
props
protected PropsUi props
The UI properties.
-
metadataProvider
protected IHopMetadataProvider metadataProvider
The MetaStore to use
-
transformMeta
protected TransformMeta transformMeta
The transform meta for this dialog.
-
log
protected LogChannel log
The log channel for this dialog.
-
BUTTON_ALIGNMENT_CENTER
protected static final int BUTTON_ALIGNMENT_CENTER
A constant indicating a center button alignment.- See Also:
- Constant Field Values
-
BUTTON_ALIGNMENT_LEFT
protected static final int BUTTON_ALIGNMENT_LEFT
A constant indicating a left button alignment.- See Also:
- Constant Field Values
-
BUTTON_ALIGNMENT_RIGHT
public static final int BUTTON_ALIGNMENT_RIGHT
A constant indicating a right button alignment.- See Also:
- Constant Field Values
-
buttonAlignment
protected static int buttonAlignment
The button alignment (defaults to center).
-
-
Constructor Detail
-
BaseTransformDialog
public BaseTransformDialog(org.eclipse.swt.widgets.Shell parent, IVariables variables, BaseTransformMeta<?,?> baseTransformMeta, PipelineMeta pipelineMeta, String transformName)Instantiates a new base transform dialog.- Parameters:
parent- the parent shellbaseTransformMeta- the associated base transform metadatapipelineMeta- the associated pipeline metadatatransformName- the transform name
-
BaseTransformDialog
public BaseTransformDialog(org.eclipse.swt.widgets.Shell parent, IVariables variables, ITransformMeta baseTransformMeta, PipelineMeta pipelineMeta, String transformName)Instantiates a new base transform dialog.- Parameters:
parent- the parent shellbaseTransformMeta- the associated base transform metadatapipelineMeta- the associated pipeline metadatatransformName- the transform name
-
BaseTransformDialog
public BaseTransformDialog(org.eclipse.swt.widgets.Shell parent, int nr, IVariables variables, BaseTransformMeta<?,?> in, PipelineMeta tr)Instantiates a new base transform dialog.- Parameters:
parent- the parent shellnr- the number of rowsvariables-in- the base transform metadatatr- the pipeline metadata
-
-
Method Detail
-
setShellImage
public void setShellImage(org.eclipse.swt.widgets.Shell shell, ITransformMeta transformMetaInterface)Sets the shell image.- Parameters:
shell- the shelltransformMetaInterface- the transform meta interface (because of the legacy code)
-
setActive
public void setActive()
-
dispose
public void dispose()
Dispose this dialog.
-
isDisposed
public boolean isDisposed()
-
setSize
public void setSize()
Set the shell size, based upon the previous time the geometry was saved in the Properties file.
-
setButtonPositions
protected void setButtonPositions(org.eclipse.swt.widgets.Button[] buttons, int margin, org.eclipse.swt.widgets.Control lastControl)Sets the button positions.- Parameters:
buttons- the buttonsmargin- the margin between buttonslastControl- the last control
-
positionBottomButtons
public static final void positionBottomButtons(org.eclipse.swt.widgets.Composite composite, org.eclipse.swt.widgets.Button[] buttons, int margin, org.eclipse.swt.widgets.Control lastControl)Position the specified buttons at the bottom of the parent composite. Also, make the buttons all the same width: the width of the largest button.The default alignment for buttons in the system will be used. This is set as an LAF property with the key
Button_Positionand has the valid values ofleft, center, rightwithcenterbeing the default.- Parameters:
composite- the compositebuttons- The buttons to position.margin- The margin between the buttons in pixelslastControl- the last control
-
positionBottomButtons
public static final void positionBottomButtons(org.eclipse.swt.widgets.Composite composite, org.eclipse.swt.widgets.Button[] buttons, int margin, int alignment, org.eclipse.swt.widgets.Control lastControl)
-
getButtonAlignment
protected static int getButtonAlignment()
Returns the default alignment for the buttons. This is set in the LAF properties with the keyButton_Position. The valid values are:leftcenterright
centerwill be used as a default- Returns:
- a constant which indicates the button alignment
-
leftAlignButtons
protected static void leftAlignButtons(org.eclipse.swt.widgets.Button[] buttons, int width, int margin, org.eclipse.swt.widgets.Control lastControl)Aligns the buttons as left-aligned on the dialog.- Parameters:
buttons- the array of buttons to alignwidth- the standardized width of all the buttonsmargin- the margin between buttonslastControl- (optional) the bottom most control used for aligning the buttons relative to the bottom of the controls on the dialog
-
rightAlignButtons
protected static void rightAlignButtons(org.eclipse.swt.widgets.Button[] buttons, int width, int margin, org.eclipse.swt.widgets.Control lastControl)Aligns the buttons as right-aligned on the dialog.- Parameters:
buttons- the array of buttons to alignwidth- the standardized width of all the buttonsmargin- the margin between buttonslastControl- (optional) the bottom most control used for aligning the buttons relative to the bottom of the controls on the dialog
-
centerButtons
protected static void centerButtons(org.eclipse.swt.widgets.Button[] buttons, int width, int margin, org.eclipse.swt.widgets.Control lastControl)Aligns the buttons as centered on the dialog.- Parameters:
buttons- the array of buttons to alignwidth- the standardized width of all the buttonsmargin- the margin between buttonslastControl- (optional) the bottom most control used for aligning the buttons relative to the bottom of the controls on the dialog
-
getModifyListenerTooltipText
public static final org.eclipse.swt.events.ModifyListener getModifyListenerTooltipText(IVariables variables, TextVar textField)
Gets the modify listener tooltip text.- Parameters:
variables-textField- the text field- Returns:
- the modify listener tooltip text
-
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, DatabaseMeta selected, org.eclipse.swt.events.ModifyListener lsMod, String connectionLabel)
-
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, String connectionLabel, String connectionTooltip)
-
setMinimalShellHeight
public static void setMinimalShellHeight(org.eclipse.swt.widgets.Shell shell, org.eclipse.swt.widgets.Control[] controls, int margin, int extra)Sets the minimal shell height.- Parameters:
shell- the shellcontrols- the controls to measuremargin- the margin between the componentsextra- the extra padding
-
setSize
public static void setSize(org.eclipse.swt.widgets.Shell shell)
Sets the size of this dialog with respect to the given shell.- Parameters:
shell- the new size
-
setSize
public static void setSize(org.eclipse.swt.widgets.Shell shell, int minWidth, int minHeight)
-
setSize
public static void setSize(org.eclipse.swt.widgets.Shell shell, int minWidth, int minHeight, boolean packIt)Sets the size of this dialog with respect to the given parameters.- Parameters:
shell- the shellminWidth- the minimum widthminHeight- the minimum heightpackIt- true to pack the dialog components, false otherwise
-
setTraverseOrder
public static final void setTraverseOrder(org.eclipse.swt.widgets.Control[] controls)
Sets the traverse order for the given controls.- Parameters:
controls- the new traverse order
-
getFieldsFromPrevious
public static final void getFieldsFromPrevious(IVariables variables, PipelineMeta pipelineMeta, TransformMeta transformMeta, TableView tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, ITableItemInsertListener listener)
Gets unused fields from previous transforms and inserts them as rows into a table view.- Parameters:
variables-pipelineMeta- the pipeline metadatatransformMeta- the transform metadatatableView- the table viewkeyColumn- the key columnnameColumn- the name columndataTypeColumn- the data type columnlengthColumn- the length columnprecisionColumn- the precision columnlistener- a listener for tables insert events
-
getFieldsFromPrevious
public static final void getFieldsFromPrevious(IRowMeta row, TableView tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, ITableItemInsertListener listener)
Gets unused fields from previous transforms and inserts them as rows into a table view.- Parameters:
row- the input fieldstableView- the table view to modifykeyColumn- the column in the table view to match with the names of the fields, checks for existance if >0nameColumn- the column numbers in which the name should end up indataTypeColumn- the target column numbers in which the data type should end up inlengthColumn- the length column where the length should end up in (if >0)precisionColumn- the length column where the precision should end up in (if >0)listener- A listener that you can use to do custom modifications to the inserted table item, based on a value from the provided row
-
getFieldsFromPrevious
public static final void getFieldsFromPrevious(IRowMeta row, TableView tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, boolean optimizeWidth, ITableItemInsertListener listener)
Gets unused fields from previous transforms and inserts them as rows into a table view.- Parameters:
row- the input fieldstableView- the table view to modifykeyColumn- the column in the table view to match with the names of the fields, checks for existance if >0nameColumn- the column numbers in which the name should end up indataTypeColumn- the target column numbers in which the data type should end up inlengthColumn- the length column where the length should end up in (if >0)precisionColumn- the length column where the precision should end up in (if >0)optimizeWidth-listener- A listener that you can use to do custom modifications to the inserted table item, based on a value from the provided row
-
getFieldsFromPrevious
public static final void getFieldsFromPrevious(IRowMeta row, TableView tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, boolean optimizeWidth, ITableItemInsertListener listener, BaseTransformDialog.IFieldsChoiceDialogProvider getFieldsChoiceDialogProvider)
Gets unused fields from previous transforms and inserts them as rows into a table view.- Parameters:
row- the input fieldstableView- the table view to modifykeyColumn- the column in the table view to match with the names of the fields, checks for existance if >0nameColumn- the column numbers in which the name should end up indataTypeColumn- the target column numbers in which the data type should end up inlengthColumn- the length column where the length should end up in (if >0)precisionColumn- the length column where the precision should end up in (if >0)optimizeWidth-listener- A listener that you can use to do custom modifications to the inserted table item, based on a value from the provided rowgetFieldsChoiceDialogProvider- the GetFieldsChoice dialog provider
-
getFieldsFromPrevious
public static final void getFieldsFromPrevious(IVariables variables, ComboVar comboVar, PipelineMeta pipelineMeta, TransformMeta transformMeta)
Gets fields from previous transforms and populate a ComboVar.- Parameters:
variables-comboVar- the Combo Box (with Variables) to populatepipelineMeta- the pipeline metadatatransformMeta- the transform metadata
-
isBasic
public boolean isBasic()
Checks if the log level is basic.- Returns:
- true, if the log level is basic, false otherwise
-
isDetailed
public boolean isDetailed()
Checks if the log level is detailed.- Returns:
- true, if the log level is detailed, false otherwise
-
isDebug
public boolean isDebug()
Checks if the log level is debug.- Returns:
- true, if the log level is debug, false otherwise
-
isRowLevel
public boolean isRowLevel()
Checks if the log level is row level.- Returns:
- true, if the log level is row level, false otherwise
-
logMinimal
public void logMinimal(String message)
Log the message at a minimal logging level.- Parameters:
message- the message to log
-
logMinimal
public void logMinimal(String message, Object... arguments)
Log the message with arguments at a minimal logging level.- Parameters:
message- the messagearguments- the arguments
-
logBasic
public void logBasic(String message)
Log the message at a basic logging level.- Parameters:
message- the message
-
logBasic
public void logBasic(String message, Object... arguments)
Log the message with arguments at a basic logging level.- Parameters:
message- the messagearguments- the arguments
-
logDetailed
public void logDetailed(String message)
Log the message at a detailed logging level.- Parameters:
message- the message
-
logDetailed
public void logDetailed(String message, Object... arguments)
Log the message with arguments at a detailed logging level.- Parameters:
message- the messagearguments- the arguments
-
logDebug
public void logDebug(String message)
Log the message at a debug logging level.- Parameters:
message- the message
-
logDebug
public void logDebug(String message, Object... arguments)
Log the message with arguments at a debug logging level.- Parameters:
message- the messagearguments- the arguments
-
logRowlevel
public void logRowlevel(String message)
Log the message at a rowlevel logging level.- Parameters:
message- the message
-
logRowlevel
public void logRowlevel(String message, Object... arguments)
Log the message with arguments at a rowlevel logging level.- Parameters:
message- the messagearguments- the arguments
-
logError
public void logError(String message)
Log the message at a error logging level.- Parameters:
message- the message
-
logError
public void logError(String message, Throwable e)
Log the message with the associated Throwable object at a error logging level.- Parameters:
message- the messagee- the e
-
logError
public void logError(String message, Object... arguments)
Log the message with arguments at a error logging level.- Parameters:
message- the messagearguments- the arguments
-
getMetadataProvider
public IHopMetadataProvider getMetadataProvider()
-
setMetadataProvider
public void setMetadataProvider(IHopMetadataProvider metadataProvider)
-
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
-
getVariables
public IVariables getVariables()
Gets variables- Returns:
- value of variables
-
replaceNameWithBaseFilename
protected void replaceNameWithBaseFilename(String filename)
-
-