public class BaseStepDialog
extends org.eclipse.swt.widgets.Dialog
| Modifier and Type | Field and Description |
|---|---|
static org.pentaho.di.core.logging.LoggingObjectInterface |
loggingObject
The logging object interface for this dialog.
|
| Constructor and Description |
|---|
BaseStepDialog(org.eclipse.swt.widgets.Shell parent,
org.pentaho.di.trans.step.BaseStepMeta baseStepMeta,
org.pentaho.di.trans.TransMeta transMeta,
String stepname)
Instantiates a new base step dialog.
|
BaseStepDialog(org.eclipse.swt.widgets.Shell parent,
int nr,
org.pentaho.di.trans.step.BaseStepMeta in,
org.pentaho.di.trans.TransMeta tr)
Instantiates a new base step dialog.
|
BaseStepDialog(org.eclipse.swt.widgets.Shell parent,
org.pentaho.di.trans.step.StepMetaInterface baseStepMeta,
org.pentaho.di.trans.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 org.pentaho.di.core.database.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 org.pentaho.di.core.database.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 org.pentaho.di.core.database.DatabaseInterface> databaseType)
Adds the databases with the specified type to the Combo Box component.
|
void |
dispose()
Dispose this dialog.
|
static void |
generateFieldMapping(org.eclipse.swt.widgets.Shell shell,
org.pentaho.di.core.row.RowMetaInterface sourceFields,
org.pentaho.di.core.row.RowMetaInterface targetFields,
List<org.pentaho.di.core.SourceToTargetMapping> fieldMapping)
Create a new field mapping between source and target steps.
|
static void |
getFieldsFromPrevious(ComboVar comboVar,
org.pentaho.di.trans.TransMeta transMeta,
org.pentaho.di.trans.step.StepMeta stepMeta)
Gets fields from previous steps and populate a ComboVar.
|
static void |
getFieldsFromPrevious(org.pentaho.di.core.row.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(org.pentaho.di.trans.TransMeta transMeta,
org.pentaho.di.trans.step.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.
|
org.pentaho.di.repository.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.
|
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.
|
void |
selectDatabase(org.eclipse.swt.custom.CCombo wConnection,
String name)
Selects the database with the specified name in the Combo Box component.
|
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(org.pentaho.di.repository.Repository repository)
Sets the repository associated with this dialog.
|
void |
setShellImage(org.eclipse.swt.widgets.Shell shell,
org.pentaho.di.trans.step.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 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 org.pentaho.di.core.logging.LoggingObjectInterface loggingObject
public BaseStepDialog(org.eclipse.swt.widgets.Shell parent,
org.pentaho.di.trans.step.BaseStepMeta baseStepMeta,
org.pentaho.di.trans.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,
org.pentaho.di.trans.step.StepMetaInterface baseStepMeta,
org.pentaho.di.trans.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,
org.pentaho.di.trans.step.BaseStepMeta in,
org.pentaho.di.trans.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,
org.pentaho.di.trans.step.StepMetaInterface stepMetaInterface)
shell - the shellstepMetaInterface - the step meta interface (because of the legacy code)public void dispose()
public void setSize()
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)
The default alignment for buttons in the system will be used. This is set as an LAF property with the key
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 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 org.pentaho.di.core.database.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 org.pentaho.di.core.database.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 org.pentaho.di.core.database.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 typepublic void storeScreenSize()
public org.pentaho.di.repository.Repository getRepository()
public void setRepository(org.pentaho.di.repository.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 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(org.pentaho.di.trans.TransMeta transMeta,
org.pentaho.di.trans.step.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(org.pentaho.di.core.row.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(ComboVar comboVar, org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.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,
org.pentaho.di.core.row.RowMetaInterface sourceFields,
org.pentaho.di.core.row.RowMetaInterface targetFields,
List<org.pentaho.di.core.SourceToTargetMapping> fieldMapping)
throws org.pentaho.di.core.exception.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)org.pentaho.di.core.exception.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 argumentspublic org.pentaho.metastore.api.IMetaStore getMetaStore()
public void setMetaStore(org.pentaho.metastore.api.IMetaStore metaStore)