public class BaseStepDialog
extends org.eclipse.swt.widgets.Dialog
Modifier and Type | Class and Description |
---|---|
static interface |
BaseStepDialog.FieldsChoiceDialogProvider |
Modifier and Type | Field and Description |
---|---|
protected boolean |
backupChanged
Whether the dialog (and its backup) have changed.
|
protected StepMetaInterface |
baseStepMeta
The base step meta.
|
protected static int |
BUTTON_ALIGNMENT_CENTER
A constant indicating a center button alignment.
|
protected static int |
BUTTON_ALIGNMENT_LEFT
A constant indicating a left button alignment.
|
static int |
BUTTON_ALIGNMENT_RIGHT
A constant indicating a right button alignment.
|
protected static int |
buttonAlignment
The button alignment (defaults to center).
|
protected boolean |
changed
Whether the dialog (and its backup) have changed.
|
protected DatabaseDialog |
databaseDialog
A reference to a database dialog.
|
protected org.eclipse.swt.layout.FormData |
fdCancel
FormData for the common dialog buttons.
|
protected org.eclipse.swt.layout.FormData |
fdCreate
FormData for the common dialog buttons.
|
protected org.eclipse.swt.layout.FormData |
fdGet
FormData for the common dialog buttons.
|
protected org.eclipse.swt.layout.FormData |
fdlStepname
The FormData for the step name and its label.
|
protected org.eclipse.swt.layout.FormData |
fdOK
FormData for the common dialog buttons.
|
protected org.eclipse.swt.layout.FormData |
fdPreview
FormData for the common dialog buttons.
|
protected org.eclipse.swt.layout.FormData |
fdSQL
FormData for the common dialog buttons.
|
protected org.eclipse.swt.layout.FormData |
fdStepname
The FormData for the step name and its label.
|
protected LogChannel |
log
The log channel for this dialog.
|
static LoggingObjectInterface |
loggingObject
The logging object interface for this dialog.
|
protected org.eclipse.swt.widgets.Listener |
lsCancel
Listeners for the common dialog buttons.
|
protected org.eclipse.swt.widgets.Listener |
lsCreate
Listeners for the common dialog buttons.
|
protected org.eclipse.swt.events.SelectionAdapter |
lsDef
A listener adapter for default widget selection.
|
protected org.eclipse.swt.widgets.Listener |
lsGet
Listeners for the common dialog buttons.
|
protected org.eclipse.swt.widgets.Listener |
lsOK
Listeners for the common dialog buttons.
|
protected org.eclipse.swt.widgets.Listener |
lsPreview
Listeners for the common dialog buttons.
|
protected org.eclipse.swt.widgets.Listener |
lsResize
A listener for dialog resizing.
|
protected org.eclipse.swt.widgets.Listener |
lsSQL
Listeners for the common dialog buttons.
|
protected org.pentaho.metastore.api.IMetaStore |
metaStore
The MetaStore to use
|
protected PropsUI |
props
The UI properties.
|
protected Repository |
repository
The associated repository.
|
protected org.eclipse.swt.widgets.Shell |
shell
A reference to the shell.
|
protected StepMeta |
stepMeta
The step meta for this dialog.
|
protected String |
stepname
The step name.
|
protected TransMeta |
transMeta
The metadata for the associated transformation.
|
protected static VariableSpace |
variables
The variable bindings for this dialog.
|
protected org.eclipse.swt.widgets.Button |
wCancel
Common dialog buttons.
|
protected org.eclipse.swt.widgets.Button |
wCreate
Common dialog buttons.
|
protected org.eclipse.swt.widgets.Button |
wGet
Common dialog buttons.
|
protected org.eclipse.swt.widgets.Label |
wlStepname
The Step name label.
|
protected org.eclipse.swt.widgets.Button |
wOK
Common dialog buttons.
|
protected org.eclipse.swt.widgets.Button |
wPreview
Common dialog buttons.
|
protected org.eclipse.swt.widgets.Button |
wSQL
Common dialog buttons.
|
protected org.eclipse.swt.widgets.Text |
wStepname
The Step name UI component.
|
Constructor and Description |
---|
BaseStepDialog(org.eclipse.swt.widgets.Shell parent,
BaseStepMeta baseStepMeta,
TransMeta transMeta,
String stepname)
Instantiates a new base step dialog.
|
BaseStepDialog(org.eclipse.swt.widgets.Shell parent,
int nr,
BaseStepMeta in,
TransMeta tr)
Instantiates a new base step dialog.
|
BaseStepDialog(org.eclipse.swt.widgets.Shell parent,
StepMetaInterface baseStepMeta,
TransMeta transMeta,
String stepname)
Instantiates a new base step dialog.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.custom.CCombo |
addConnectionLine(org.eclipse.swt.widgets.Composite parent,
org.eclipse.swt.widgets.Control previous,
int middle,
int margin)
Adds the connection line.
|
org.eclipse.swt.custom.CCombo |
addConnectionLine(org.eclipse.swt.widgets.Composite parent,
org.eclipse.swt.widgets.Control previous,
int middle,
int margin,
Class<? extends DatabaseInterface> databaseType)
Adds the connection line.
|
org.eclipse.swt.custom.CCombo |
addConnectionLine(org.eclipse.swt.widgets.Composite parent,
org.eclipse.swt.widgets.Control previous,
int middle,
int margin,
org.eclipse.swt.widgets.Label wlConnection,
org.eclipse.swt.widgets.Button wbwConnection,
org.eclipse.swt.widgets.Button wbnConnection,
org.eclipse.swt.widgets.Button wbeConnection)
Adds the connection line.
|
org.eclipse.swt.custom.CCombo |
addConnectionLine(org.eclipse.swt.widgets.Composite parent,
org.eclipse.swt.widgets.Control previous,
int middle,
int margin,
org.eclipse.swt.widgets.Label wlConnection,
org.eclipse.swt.widgets.Button wbwConnection,
org.eclipse.swt.widgets.Button wbnConnection,
org.eclipse.swt.widgets.Button wbeConnection,
Class<? extends DatabaseInterface> databaseType)
Adds the connection line.
|
void |
addDatabases(org.eclipse.swt.custom.CCombo wConnection)
Adds the databases to the Combo Box component.
|
void |
addDatabases(org.eclipse.swt.custom.CCombo wConnection,
Class<? extends DatabaseInterface> databaseType)
Adds the databases with the specified type to the Combo Box component.
|
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.
|
protected org.eclipse.swt.widgets.Button |
createHelpButton(org.eclipse.swt.widgets.Shell shell,
StepMeta stepMeta,
PluginInterface plugin) |
void |
dispose()
Dispose this dialog.
|
static void |
generateFieldMapping(org.eclipse.swt.widgets.Shell shell,
RowMetaInterface sourceFields,
RowMetaInterface targetFields,
List<SourceToTargetMapping> fieldMapping)
Create a new field mapping between source and target steps.
|
protected static int |
getButtonAlignment()
Returns the default alignment for the buttons.
|
protected DatabaseDialog |
getDatabaseDialog(org.eclipse.swt.widgets.Shell shell)
Gets the database dialog.
|
static void |
getFieldsFromPrevious(ComboVar comboVar,
TransMeta transMeta,
StepMeta stepMeta)
Gets fields from previous steps and populate a ComboVar.
|
static void |
getFieldsFromPrevious(RowMetaInterface row,
TableView tableView,
int keyColumn,
int[] nameColumn,
int[] dataTypeColumn,
int lengthColumn,
int precisionColumn,
boolean optimizeWidth,
TableItemInsertListener listener)
Gets unused fields from previous steps and inserts them as rows into a table view.
|
static void |
getFieldsFromPrevious(RowMetaInterface row,
TableView tableView,
int keyColumn,
int[] nameColumn,
int[] dataTypeColumn,
int lengthColumn,
int precisionColumn,
boolean optimizeWidth,
TableItemInsertListener listener,
BaseStepDialog.FieldsChoiceDialogProvider getFieldsChoiceDialogProvider)
Gets unused fields from previous steps and inserts them as rows into a table view.
|
static void |
getFieldsFromPrevious(RowMetaInterface row,
TableView tableView,
int keyColumn,
int[] nameColumn,
int[] dataTypeColumn,
int lengthColumn,
int precisionColumn,
TableItemInsertListener listener)
Gets unused fields from previous steps and inserts them as rows into a table view.
|
static void |
getFieldsFromPrevious(TransMeta transMeta,
StepMeta stepMeta,
TableView tableView,
int keyColumn,
int[] nameColumn,
int[] dataTypeColumn,
int lengthColumn,
int precisionColumn,
TableItemInsertListener listener)
Gets unused fields from previous steps and inserts them as rows into a table view.
|
org.pentaho.metastore.api.IMetaStore |
getMetaStore() |
static org.eclipse.swt.events.ModifyListener |
getModifyListenerTooltipText(org.eclipse.swt.widgets.Text textField)
Gets the modify listener tooltip text.
|
protected String |
getPathOf(RepositoryElementMetaInterface object) |
Repository |
getRepository()
Gets the repository associated with this dialog.
|
boolean |
isBasic()
Checks if the log level is basic.
|
boolean |
isDebug()
Checks if the log level is debug.
|
boolean |
isDetailed()
Checks if the log level is detailed.
|
boolean |
isRowLevel()
Checks if the log level is row level.
|
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.
|
void |
logBasic(String message)
Log the message at a basic logging level.
|
void |
logBasic(String message,
Object... arguments)
Log the message with arguments at a basic logging level.
|
void |
logDebug(String message)
Log the message at a debug logging level.
|
void |
logDebug(String message,
Object... arguments)
Log the message with arguments at a debug logging level.
|
void |
logDetailed(String message)
Log the message at a detailed logging level.
|
void |
logDetailed(String message,
Object... arguments)
Log the message with arguments at a detailed logging level.
|
void |
logError(String message)
Log the message at a error logging level.
|
void |
logError(String message,
Object... arguments)
Log the message with arguments at a error logging level.
|
void |
logError(String message,
Throwable e)
Log the message with the associated Throwable object at a error logging level.
|
void |
logMinimal(String message)
Log the message at a minimal logging level.
|
void |
logMinimal(String message,
Object... arguments)
Log the message with arguments at a minimal logging level.
|
void |
logRowlevel(String message)
Log the message at a rowlevel logging level.
|
void |
logRowlevel(String message,
Object... arguments)
Log the message with arguments at a rowlevel logging level.
|
static 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.
|
static void |
positionBottomButtons(org.eclipse.swt.widgets.Composite composite,
org.eclipse.swt.widgets.Button[] buttons,
int margin,
int alignment,
org.eclipse.swt.widgets.Control lastControl) |
static void |
positionBottomRightButtons(org.eclipse.swt.widgets.Composite composite,
org.eclipse.swt.widgets.Button[] buttons,
int margin,
org.eclipse.swt.widgets.Control lastControl) |
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.
|
void |
selectDatabase(org.eclipse.swt.custom.CCombo wConnection,
String name)
Selects the database with the specified name in the Combo Box component.
|
protected void |
setButtonPositions(org.eclipse.swt.widgets.Button[] buttons,
int margin,
org.eclipse.swt.widgets.Control lastControl)
Sets the button positions.
|
void |
setMetaStore(org.pentaho.metastore.api.IMetaStore metaStore) |
static void |
setMinimalShellHeight(org.eclipse.swt.widgets.Shell shell,
org.eclipse.swt.widgets.Control[] controls,
int margin,
int extra)
Sets the minimal shell height.
|
void |
setRepository(Repository repository)
Sets the repository associated with this dialog.
|
void |
setShellImage(org.eclipse.swt.widgets.Shell shell,
StepMetaInterface stepMetaInterface)
Sets the shell image.
|
void |
setSize()
Set the shell size, based upon the previous time the geometry was saved in the Properties file.
|
static void |
setSize(org.eclipse.swt.widgets.Shell shell)
Sets the size of this dialog with respect to the given shell.
|
static void |
setSize(org.eclipse.swt.widgets.Shell shell,
int prefWidth,
int prefHeight) |
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.
|
static void |
setTraverseOrder(org.eclipse.swt.widgets.Control[] controls)
Sets the traverse order for the given controls.
|
void |
storeScreenSize()
Store screen size.
|
String |
toString() |
public static final LoggingObjectInterface loggingObject
protected static VariableSpace variables
protected String stepname
protected org.eclipse.swt.widgets.Label wlStepname
protected org.eclipse.swt.widgets.Text wStepname
protected org.eclipse.swt.layout.FormData fdlStepname
protected org.eclipse.swt.layout.FormData fdStepname
protected org.eclipse.swt.widgets.Button wOK
protected org.eclipse.swt.widgets.Button wGet
protected org.eclipse.swt.widgets.Button wPreview
protected org.eclipse.swt.widgets.Button wSQL
protected org.eclipse.swt.widgets.Button wCreate
protected org.eclipse.swt.widgets.Button wCancel
protected org.eclipse.swt.layout.FormData fdOK
protected org.eclipse.swt.layout.FormData fdGet
protected org.eclipse.swt.layout.FormData fdPreview
protected org.eclipse.swt.layout.FormData fdSQL
protected org.eclipse.swt.layout.FormData fdCreate
protected org.eclipse.swt.layout.FormData fdCancel
protected org.eclipse.swt.widgets.Listener lsOK
protected org.eclipse.swt.widgets.Listener lsGet
protected org.eclipse.swt.widgets.Listener lsPreview
protected org.eclipse.swt.widgets.Listener lsSQL
protected org.eclipse.swt.widgets.Listener lsCreate
protected org.eclipse.swt.widgets.Listener lsCancel
protected TransMeta transMeta
protected org.eclipse.swt.widgets.Shell shell
protected org.eclipse.swt.events.SelectionAdapter lsDef
protected org.eclipse.swt.widgets.Listener lsResize
protected boolean changed
protected boolean backupChanged
protected StepMetaInterface baseStepMeta
protected PropsUI props
protected Repository repository
protected org.pentaho.metastore.api.IMetaStore metaStore
protected StepMeta stepMeta
protected LogChannel log
protected static final int BUTTON_ALIGNMENT_CENTER
protected static final int BUTTON_ALIGNMENT_LEFT
public static final int BUTTON_ALIGNMENT_RIGHT
protected static int buttonAlignment
protected DatabaseDialog databaseDialog
public BaseStepDialog(org.eclipse.swt.widgets.Shell parent, BaseStepMeta baseStepMeta, TransMeta transMeta, String stepname)
parent
- the parent shellbaseStepMeta
- the associated base step metadatatransMeta
- the associated transformation metadatastepname
- the step namepublic BaseStepDialog(org.eclipse.swt.widgets.Shell parent, StepMetaInterface baseStepMeta, TransMeta transMeta, String stepname)
parent
- the parent shellbaseStepMeta
- the associated base step metadatatransMeta
- the associated transformation metadatastepname
- the step namepublic BaseStepDialog(org.eclipse.swt.widgets.Shell parent, int nr, BaseStepMeta in, TransMeta tr)
parent
- the parent shellnr
- the number of rowsin
- the base step metadatatr
- the transformation metadatapublic void setShellImage(org.eclipse.swt.widgets.Shell shell, StepMetaInterface stepMetaInterface)
shell
- the shellstepMetaInterface
- the step meta interface (because of the legacy code)public void dispose()
public void setSize()
protected void setButtonPositions(org.eclipse.swt.widgets.Button[] buttons, int margin, org.eclipse.swt.widgets.Control lastControl)
buttons
- the buttonsmargin
- the margin between buttonslastControl
- the last controlpublic static final void positionBottomButtons(org.eclipse.swt.widgets.Composite composite, org.eclipse.swt.widgets.Button[] buttons, int margin, org.eclipse.swt.widgets.Control lastControl)
Button_Position
and has the valid values of left, center, right
with center
being the default.composite
- the compositebuttons
- The buttons to position.margin
- The margin between the buttons in pixelslastControl
- the last controlpublic static final void positionBottomRightButtons(org.eclipse.swt.widgets.Composite composite, org.eclipse.swt.widgets.Button[] buttons, int margin, org.eclipse.swt.widgets.Control lastControl)
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)
protected static int getButtonAlignment()
Button_Position
. The valid values are: left
center
right
center
will be used as a defaultprotected static void leftAlignButtons(org.eclipse.swt.widgets.Button[] buttons, int width, int margin, org.eclipse.swt.widgets.Control lastControl)
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 dialogprotected static void rightAlignButtons(org.eclipse.swt.widgets.Button[] buttons, int width, int margin, org.eclipse.swt.widgets.Control lastControl)
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 dialogprotected static void centerButtons(org.eclipse.swt.widgets.Button[] buttons, int width, int margin, org.eclipse.swt.widgets.Control lastControl)
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 dialogpublic static final org.eclipse.swt.events.ModifyListener getModifyListenerTooltipText(org.eclipse.swt.widgets.Text textField)
textField
- the text fieldpublic void addDatabases(org.eclipse.swt.custom.CCombo wConnection)
wConnection
- the Combo Box componentpublic void addDatabases(org.eclipse.swt.custom.CCombo wConnection, Class<? extends DatabaseInterface> databaseType)
wConnection
- the Combo Box componentdatabaseType
- the database typepublic void selectDatabase(org.eclipse.swt.custom.CCombo wConnection, String name)
wConnection
- the Combo Box componentname
- the name of the database to selectpublic org.eclipse.swt.custom.CCombo addConnectionLine(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control previous, int middle, int margin)
parent
- the parent UI componentprevious
- the previous UI componentmiddle
- the middlemargin
- the marginpublic org.eclipse.swt.custom.CCombo addConnectionLine(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control previous, int middle, int margin, Class<? extends DatabaseInterface> databaseType)
parent
- the parent UI componentprevious
- the previous UI componentmiddle
- the middlemargin
- the margindatabaseType
- the database typepublic org.eclipse.swt.custom.CCombo addConnectionLine(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control previous, int middle, int margin, org.eclipse.swt.widgets.Label wlConnection, org.eclipse.swt.widgets.Button wbwConnection, org.eclipse.swt.widgets.Button wbnConnection, org.eclipse.swt.widgets.Button wbeConnection)
parent
- the parent UI componentprevious
- the previous UI componentmiddle
- the middlemargin
- the marginwlConnection
- the connection labelwbnConnection
- the "new connection" buttonwbeConnection
- the "edit connection" buttonpublic org.eclipse.swt.custom.CCombo addConnectionLine(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.widgets.Control previous, int middle, int margin, org.eclipse.swt.widgets.Label wlConnection, org.eclipse.swt.widgets.Button wbwConnection, org.eclipse.swt.widgets.Button wbnConnection, org.eclipse.swt.widgets.Button wbeConnection, Class<? extends DatabaseInterface> databaseType)
parent
- the parent UI componentprevious
- the previous UI componentmiddle
- the middlemargin
- the marginwlConnection
- the connection labelwbnConnection
- the "new connection" buttonwbeConnection
- the "edit connection" buttondatabaseType
- the database typeprotected DatabaseDialog getDatabaseDialog(org.eclipse.swt.widgets.Shell shell)
shell
- the shellpublic void storeScreenSize()
public Repository getRepository()
public void setRepository(Repository repository)
repository
- The repository to set.public static void setMinimalShellHeight(org.eclipse.swt.widgets.Shell shell, org.eclipse.swt.widgets.Control[] controls, int margin, int extra)
shell
- the shellcontrols
- the controls to measuremargin
- the margin between the componentsextra
- the extra paddingpublic static void setSize(org.eclipse.swt.widgets.Shell shell)
shell
- the new sizepublic static void setSize(org.eclipse.swt.widgets.Shell shell, int prefWidth, int prefHeight)
public static void setSize(org.eclipse.swt.widgets.Shell shell, int minWidth, int minHeight, boolean packIt)
shell
- the shellminWidth
- the minimum widthminHeight
- the minimum heightpackIt
- true to pack the dialog components, false otherwisepublic static final void setTraverseOrder(org.eclipse.swt.widgets.Control[] controls)
controls
- the new traverse orderpublic static final void getFieldsFromPrevious(TransMeta transMeta, StepMeta stepMeta, TableView tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, TableItemInsertListener listener)
transMeta
- the transformation metadatastepMeta
- the step 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 eventspublic static final void getFieldsFromPrevious(RowMetaInterface row, TableView tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, TableItemInsertListener listener)
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 rowpublic static final void getFieldsFromPrevious(RowMetaInterface row, TableView tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, boolean optimizeWidth, TableItemInsertListener listener)
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 rowpublic static final void getFieldsFromPrevious(RowMetaInterface row, TableView tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, boolean optimizeWidth, TableItemInsertListener listener, BaseStepDialog.FieldsChoiceDialogProvider getFieldsChoiceDialogProvider)
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 providerpublic static final void getFieldsFromPrevious(ComboVar comboVar, TransMeta transMeta, StepMeta stepMeta)
comboVar
- the Combo Box (with Variables) to populatetransMeta
- the transformation metadatastepMeta
- the step metadatapublic static final void generateFieldMapping(org.eclipse.swt.widgets.Shell shell, RowMetaInterface sourceFields, RowMetaInterface targetFields, List<SourceToTargetMapping> fieldMapping) throws KettleException
shell
- the shell of the parent windowsourceFields
- the source fieldstargetFields
- the target fieldsfieldMapping
- the list of source to target mappings to default to (can be empty but not null)KettleException
- in case something goes wrong during the field mappingpublic boolean isBasic()
public boolean isDetailed()
public boolean isDebug()
public boolean isRowLevel()
public void logMinimal(String message)
message
- the message to logpublic void logMinimal(String message, Object... arguments)
message
- the messagearguments
- the argumentspublic void logBasic(String message)
message
- the messagepublic void logBasic(String message, Object... arguments)
message
- the messagearguments
- the argumentspublic void logDetailed(String message)
message
- the messagepublic void logDetailed(String message, Object... arguments)
message
- the messagearguments
- the argumentspublic void logDebug(String message)
message
- the messagepublic void logDebug(String message, Object... arguments)
message
- the messagearguments
- the argumentspublic void logRowlevel(String message)
message
- the messagepublic void logRowlevel(String message, Object... arguments)
message
- the messagearguments
- the argumentspublic void logError(String message)
message
- the messagepublic void logError(String message, Throwable e)
message
- the messagee
- the epublic void logError(String message, Object... arguments)
message
- the messagearguments
- the argumentsprotected org.eclipse.swt.widgets.Button createHelpButton(org.eclipse.swt.widgets.Shell shell, StepMeta stepMeta, PluginInterface plugin)
public org.pentaho.metastore.api.IMetaStore getMetaStore()
public void setMetaStore(org.pentaho.metastore.api.IMetaStore metaStore)
protected String getPathOf(RepositoryElementMetaInterface object)
Copyright © 2019 Hitachi Vantara. All rights reserved.