Modifier and Type | Method and Description |
---|---|
void |
addPluginHistory(String pluginID,
int uses) |
boolean |
areOnlyUsedConnectionsSavedToXML() |
boolean |
askAboutReplacingDatabaseConnections() |
void |
clearCustomParameters() |
static String[] |
convertArguments(RowMetaAndData row) |
boolean |
disableInitialExecutionHistory() |
boolean |
fileExists() |
static int |
getArgumentNumber(ValueMetaInterface value)
Convert "argument 1" to 1
|
String |
getCustomParameter(String parameterName,
String defaultValue) |
String |
getFilename() |
static Props |
getInstance() |
String[] |
getLastArguments()
Get the last entered arguments...
|
String |
getLastRepository() |
String |
getLastRepositoryLogin() |
String |
getLicenseFilename() |
int |
getLinesInHistoryFetchSize() |
String |
getLogFilter() |
String |
getLogLevel() |
int |
getMaxLogLineTimeoutMinutes() |
int |
getMaxNrLinesInHistory() |
int |
getMaxNrLinesInLog() |
boolean |
getOnlyActiveSteps() |
List<ObjectUsageCount> |
getPluginHistory()
Get the list of recently used step
|
String |
getProperty(String propertyName) |
int |
getType() |
int |
increasePluginHistory(String pluginID) |
static void |
init(int t)
Initialize the properties: load from disk.
|
static void |
init(String filename)
Initialize the properties: load from disk.
|
static boolean |
isInitialized()
Check to see whether the Kettle properties where loaded.
|
boolean |
loadProps() |
boolean |
replaceExistingDatabaseConnections() |
void |
saveProps() |
void |
setAskAboutReplacingDatabaseConnections(boolean ask) |
void |
setCustomParameter(String parameterName,
String value)
Set the custom parameter
|
void |
setDisableInitialExecutionHistory(boolean disable) |
void |
setLastArguments(String[] args)
Set the last arguments so that we can recall it the next time...
|
void |
setLastRepository(String repname) |
void |
setLastRepositoryLogin(String login) |
void |
setLinesInHistoryFetchSize(int linesInHistoryFetchSize) |
void |
setLogFilter(String filter) |
void |
setLogLevel(String level) |
void |
setMaxLogLineTimeoutMinutes(int maxLogLineTimeoutMinutes) |
void |
setMaxNrLinesInHistory(int maxNrLinesInHistory) |
void |
setMaxNrLinesInLog(int maxNrLinesInLog) |
void |
setOnlyActiveSteps(boolean only) |
void |
setOnlyUsedConnectionsSavedToXML(boolean onlyUsedConnections) |
void |
setProperty(String propertyName,
String value) |
void |
setReplaceDatabaseConnections(boolean replace) |
void |
setType(int t) |
void |
setUseDBCache(boolean use) |
String |
toString() |
boolean |
useDBCache() |
public static final String STRING_FONT_FIXED_NAME
public static final String STRING_FONT_FIXED_SIZE
public static final String STRING_FONT_FIXED_STYLE
public static final String STRING_FONT_DEFAULT_NAME
public static final String STRING_FONT_DEFAULT_SIZE
public static final String STRING_FONT_DEFAULT_STYLE
public static final String STRING_FONT_GRAPH_NAME
public static final String STRING_FONT_GRAPH_SIZE
public static final String STRING_FONT_GRAPH_STYLE
public static final String STRING_FONT_GRID_NAME
public static final String STRING_FONT_GRID_SIZE
public static final String STRING_FONT_GRID_STYLE
public static final String STRING_FONT_NOTE_NAME
public static final String STRING_FONT_NOTE_SIZE
public static final String STRING_FONT_NOTE_STYLE
public static final String STRING_BACKGROUND_COLOR_R
public static final String STRING_BACKGROUND_COLOR_G
public static final String STRING_BACKGROUND_COLOR_B
public static final String STRING_GRAPH_COLOR_R
public static final String STRING_GRAPH_COLOR_G
public static final String STRING_GRAPH_COLOR_B
public static final String STRING_TAB_COLOR_R
public static final String STRING_TAB_COLOR_G
public static final String STRING_TAB_COLOR_B
public static final String STRING_ICON_SIZE
public static final String STRING_LINE_WIDTH
public static final String STRING_SHADOW_SIZE
public static final String STRING_LOG_LEVEL
public static final String STRING_LOG_FILTER
public static final String STRING_MIDDLE_PCT
public static final String STRING_INDICATE_SLOW_TRANS_STEPS
public static final String STRING_LAST_PREVIEW_TRANS
public static final String STRING_LAST_PREVIEW_STEP
public static final String STRING_LAST_PREVIEW_SIZE
public static final String STRING_MAX_UNDO
public static final String STRING_SIZE_MAX
public static final String STRING_SIZE_X
public static final String STRING_SIZE_Y
public static final String STRING_SIZE_W
public static final String STRING_SIZE_H
public static final String STRING_SASH_W1
public static final String STRING_SASH_W2
public static final String STRING_SHOW_TIPS
public static final String STRING_TIP_NR
public static final String STRING_AUTO_SAVE
public static final String STRING_SAVE_CONF
public static final String STRING_AUTO_SPLIT
public static final String STRING_AUTO_COLLAPSE_CORE_TREE
public static final String STRING_USE_DB_CACHE
public static final String STRING_OPEN_LAST_FILE
public static final String STRING_LAST_REPOSITORY_LOGIN
public static final String STRING_LAST_REPOSITORY
public static final String STRING_ONLY_ACTIVE_STEPS
public static final String STRING_START_SHOW_REPOSITORIES
public static final String STRING_ANTI_ALIASING
public static final String STRING_SHOW_EXIT_WARNING
public static final String STRING_SHOW_OS_LOOK
public static final String STRING_LAST_ARGUMENT
public static final String STRING_ARGUMENT_NAME_PREFIX
public static final String STRING_CUSTOM_PARAMETER
public static final String STRING_PLUGIN_HISTORY
public static final String STRING_DEFAULT_PREVIEW_SIZE
public static final String STRING_ONLY_USED_DB_TO_XML
public static final String STRING_ASK_ABOUT_REPLACING_DATABASES
public static final String STRING_REPLACE_DATABASES
public static final String STRING_DISABLE_INITIAL_EXECUTION_HISTORY
public static final int TYPE_PROPERTIES_EMPTY
public static final int TYPE_PROPERTIES_SPOON
public static final int TYPE_PROPERTIES_PAN
public static final int TYPE_PROPERTIES_CHEF
public static final int TYPE_PROPERTIES_KITCHEN
public static final int TYPE_PROPERTIES_MENU
public static final int TYPE_PROPERTIES_PLATE
public static final int WIDGET_STYLE_DEFAULT
public static final int WIDGET_STYLE_FIXED
public static final int WIDGET_STYLE_TABLE
public static final int WIDGET_STYLE_NOTEPAD
public static final int WIDGET_STYLE_GRAPH
public static final int WIDGET_STYLE_TAB
public static final void init(int t)
display
- The Displayt
- The type of properties file.public static final void init(String filename)
display
- The Displayfilename
- the filename to usepublic static boolean isInitialized()
public static Props getInstance()
public String getFilename()
public String getLicenseFilename()
public boolean fileExists()
public void setType(int t)
public int getType()
public boolean loadProps()
public void saveProps()
public void setLogLevel(String level)
public String getLogLevel()
public void setLogFilter(String filter)
public String getLogFilter()
public void setUseDBCache(boolean use)
public boolean useDBCache()
public void setLastRepository(String repname)
public String getLastRepository()
public void setLastRepositoryLogin(String login)
public String getLastRepositoryLogin()
public void setOnlyActiveSteps(boolean only)
public boolean getOnlyActiveSteps()
public boolean askAboutReplacingDatabaseConnections()
public void setAskAboutReplacingDatabaseConnections(boolean ask)
public String getCustomParameter(String parameterName, String defaultValue)
parameterName
- The parameter namedefaultValue
- The default value in case the parameter doesn't exist yet.public void setCustomParameter(String parameterName, String value)
parameterName
- The name of the parametervalue
- The value to be stored in the properties file.public void clearCustomParameters()
public static final int getArgumentNumber(ValueMetaInterface value)
value
- The value to determine the argument number forpublic static final String[] convertArguments(RowMetaAndData row)
public void setLastArguments(String[] args)
args
- the arguments to savepublic String[] getLastArguments()
public List<ObjectUsageCount> getPluginHistory()
public int increasePluginHistory(String pluginID)
public void addPluginHistory(String pluginID, int uses)
public boolean areOnlyUsedConnectionsSavedToXML()
public void setOnlyUsedConnectionsSavedToXML(boolean onlyUsedConnections)
public boolean replaceExistingDatabaseConnections()
public void setReplaceDatabaseConnections(boolean replace)
public int getMaxNrLinesInLog()
public void setMaxNrLinesInLog(int maxNrLinesInLog)
public int getMaxNrLinesInHistory()
public int getLinesInHistoryFetchSize()
public boolean disableInitialExecutionHistory()
public void setMaxNrLinesInHistory(int maxNrLinesInHistory)
public void setLinesInHistoryFetchSize(int linesInHistoryFetchSize)
public void setDisableInitialExecutionHistory(boolean disable)
public int getMaxLogLineTimeoutMinutes()
public void setMaxLogLineTimeoutMinutes(int maxLogLineTimeoutMinutes)