Package org.pentaho.di.core
Class Props
java.lang.Object
org.pentaho.di.core.Props
- All Implemented Interfaces:
Cloneable
We use Props to store all kinds of user interactive information such as the selected colors, fonts, positions of
windows, etc.
- Since:
- 15-12-2003
- Author:
- Matt
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected LogChannelInterface
protected ArrayList<ObjectUsageCount>
protected Properties
protected static Props
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
addPluginHistory
(String pluginID, int uses) boolean
boolean
void
static final String[]
protected void
boolean
boolean
static final int
Convert "argument 1" to 1getCustomParameter
(String parameterName, String defaultValue) static Props
String[]
Get the last entered arguments...int
int
int
int
boolean
Get the list of recently used stepgetProperty
(String propertyName) int
getType()
int
increasePluginHistory
(String pluginID) protected void
init()
static final void
init
(int t) Initialize the properties: load from disk.static final void
Initialize the properties: load from disk.static boolean
Check to see whether the Kettle properties where loaded.protected void
Load the plugin history from the properties fileboolean
boolean
void
reset()
void
void
setAskAboutReplacingDatabaseConnections
(boolean ask) void
setCustomParameter
(String parameterName, String value) Set the custom parametervoid
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
setShowNewSubtransPopup
(boolean show) void
setType
(int t) void
setUseDBCache
(boolean use) boolean
toString()
boolean
-
Field Details
-
props
-
STRING_FONT_FIXED_NAME
- See Also:
-
STRING_FONT_FIXED_SIZE
- See Also:
-
STRING_FONT_FIXED_STYLE
- See Also:
-
STRING_FONT_DEFAULT_NAME
- See Also:
-
STRING_FONT_DEFAULT_SIZE
- See Also:
-
STRING_FONT_DEFAULT_STYLE
- See Also:
-
STRING_FONT_GRAPH_NAME
- See Also:
-
STRING_FONT_GRAPH_SIZE
- See Also:
-
STRING_FONT_GRAPH_STYLE
- See Also:
-
STRING_FONT_GRID_NAME
- See Also:
-
STRING_FONT_GRID_SIZE
- See Also:
-
STRING_FONT_GRID_STYLE
- See Also:
-
STRING_FONT_NOTE_NAME
- See Also:
-
STRING_FONT_NOTE_SIZE
- See Also:
-
STRING_FONT_NOTE_STYLE
- See Also:
-
STRING_BACKGROUND_COLOR_R
- See Also:
-
STRING_BACKGROUND_COLOR_G
- See Also:
-
STRING_BACKGROUND_COLOR_B
- See Also:
-
STRING_GRAPH_COLOR_R
- See Also:
-
STRING_GRAPH_COLOR_G
- See Also:
-
STRING_GRAPH_COLOR_B
- See Also:
-
STRING_TAB_COLOR_R
- See Also:
-
STRING_TAB_COLOR_G
- See Also:
-
STRING_TAB_COLOR_B
- See Also:
-
STRING_SVG_ENABLED
- See Also:
-
STRING_ICON_SIZE
- See Also:
-
STRING_LINE_WIDTH
- See Also:
-
STRING_SHADOW_SIZE
- See Also:
-
STRING_LOG_LEVEL
- See Also:
-
STRING_LOG_FILTER
- See Also:
-
STRING_MIDDLE_PCT
- See Also:
-
STRING_INDICATE_SLOW_TRANS_STEPS
- See Also:
-
STRING_LAST_PREVIEW_TRANS
- See Also:
-
STRING_LAST_PREVIEW_STEP
- See Also:
-
STRING_LAST_PREVIEW_SIZE
- See Also:
-
STRING_MAX_UNDO
- See Also:
-
STRING_SIZE_MAX
- See Also:
-
STRING_SIZE_X
- See Also:
-
STRING_SIZE_Y
- See Also:
-
STRING_SIZE_W
- See Also:
-
STRING_SIZE_H
- See Also:
-
STRING_SASH_W1
- See Also:
-
STRING_SASH_W2
- See Also:
-
STRING_AUTO_SAVE
- See Also:
-
STRING_SAVE_CONF
- See Also:
-
STRING_AUTO_SPLIT
- See Also:
-
STRING_AUTO_COLLAPSE_CORE_TREE
- See Also:
-
STRING_USE_DB_CACHE
- See Also:
-
STRING_OPEN_LAST_FILE
- See Also:
-
STRING_LAST_REPOSITORY_LOGIN
- See Also:
-
STRING_LAST_REPOSITORY
- See Also:
-
STRING_ONLY_ACTIVE_STEPS
- See Also:
-
STRING_START_SHOW_REPOSITORIES
- See Also:
-
STRING_ANTI_ALIASING
- See Also:
-
STRING_SHOW_CANVAS_GRID
- See Also:
-
STRING_SHOW_EXIT_WARNING
- See Also:
-
STRING_SHOW_OS_LOOK
- See Also:
-
STRING_LAST_ARGUMENT
- See Also:
-
STRING_ARGUMENT_NAME_PREFIX
- See Also:
-
STRING_CUSTOM_PARAMETER
- See Also:
-
STRING_PLUGIN_HISTORY
- See Also:
-
STRING_DEFAULT_PREVIEW_SIZE
- See Also:
-
STRING_ONLY_USED_DB_TO_XML
- See Also:
-
STRING_ASK_ABOUT_REPLACING_DATABASES
- See Also:
-
STRING_REPLACE_DATABASES
- See Also:
-
STRING_DISABLE_INITIAL_EXECUTION_HISTORY
- See Also:
-
STRING_RECENT_SEARCHES
- See Also:
-
STRING_SHOW_NEW_SUBTRANS_POPUP
- See Also:
-
log
-
properties
-
pluginHistory
-
type
protected int type -
filename
-
TYPE_PROPERTIES_EMPTY
public static final int TYPE_PROPERTIES_EMPTY- See Also:
-
TYPE_PROPERTIES_SPOON
public static final int TYPE_PROPERTIES_SPOON- See Also:
-
TYPE_PROPERTIES_PAN
public static final int TYPE_PROPERTIES_PAN- See Also:
-
TYPE_PROPERTIES_CHEF
public static final int TYPE_PROPERTIES_CHEF- See Also:
-
TYPE_PROPERTIES_KITCHEN
public static final int TYPE_PROPERTIES_KITCHEN- See Also:
-
TYPE_PROPERTIES_MENU
public static final int TYPE_PROPERTIES_MENU- See Also:
-
TYPE_PROPERTIES_PLATE
public static final int TYPE_PROPERTIES_PLATE- See Also:
-
WIDGET_STYLE_DEFAULT
public static final int WIDGET_STYLE_DEFAULT- See Also:
-
WIDGET_STYLE_FIXED
public static final int WIDGET_STYLE_FIXED- See Also:
-
WIDGET_STYLE_TABLE
public static final int WIDGET_STYLE_TABLE- See Also:
-
WIDGET_STYLE_NOTEPAD
public static final int WIDGET_STYLE_NOTEPAD- See Also:
-
WIDGET_STYLE_GRAPH
public static final int WIDGET_STYLE_GRAPH- See Also:
-
WIDGET_STYLE_TAB
public static final int WIDGET_STYLE_TAB- See Also:
-
WIDGET_STYLE_TOOLBAR
public static final int WIDGET_STYLE_TOOLBAR- See Also:
-
-
Constructor Details
-
Props
protected Props() -
Props
protected Props(int t) -
Props
-
-
Method Details
-
init
public static final void init(int t) Initialize the properties: load from disk.- Parameters:
display
- The Displayt
- The type of properties file.
-
init
Initialize the properties: load from disk.- Parameters:
display
- The Displayfilename
- the filename to use
-
isInitialized
public static boolean isInitialized()Check to see whether the Kettle properties where loaded.- Returns:
- true if the Kettle properties where loaded.
-
getInstance
-
init
protected void init() -
toString
-
createLogChannel
protected void createLogChannel() -
getFilename
-
getLicenseFilename
-
fileExists
public boolean fileExists() -
setType
public void setType(int t) -
getType
public int getType() -
loadProps
public boolean loadProps() -
addDefaultEntries
protected void addDefaultEntries() -
saveProps
public void saveProps() -
setLogLevel
-
getLogLevel
-
setLogFilter
-
getLogFilter
-
setUseDBCache
public void setUseDBCache(boolean use) -
useDBCache
public boolean useDBCache() -
setLastRepository
-
getLastRepository
-
setLastRepositoryLogin
-
getLastRepositoryLogin
-
setOnlyActiveSteps
public void setOnlyActiveSteps(boolean only) -
getOnlyActiveSteps
public boolean getOnlyActiveSteps() -
askAboutReplacingDatabaseConnections
public boolean askAboutReplacingDatabaseConnections() -
setProperty
-
getProperty
-
setAskAboutReplacingDatabaseConnections
public void setAskAboutReplacingDatabaseConnections(boolean ask) -
getCustomParameter
- Parameters:
parameterName
- The parameter namedefaultValue
- The default value in case the parameter doesn't exist yet.- Returns:
- The custom parameter
-
setCustomParameter
Set the custom parameter- Parameters:
parameterName
- The name of the parametervalue
- The value to be stored in the properties file.
-
clearCustomParameters
public void clearCustomParameters() -
getArgumentNumber
Convert "argument 1" to 1- Parameters:
value
- The value to determine the argument number for- Returns:
- The argument number
-
convertArguments
-
setLastArguments
Set the last arguments so that we can recall it the next time...- Parameters:
args
- the arguments to save
-
getLastArguments
Get the last entered arguments...- Returns:
- the last entered arguments...
-
getPluginHistory
Get the list of recently used step- Returns:
- a list of strings: the plug-in IDs
-
increasePluginHistory
-
addPluginHistory
-
loadPluginHistory
protected void loadPluginHistory()Load the plugin history from the properties file -
areOnlyUsedConnectionsSavedToXML
public boolean areOnlyUsedConnectionsSavedToXML() -
setOnlyUsedConnectionsSavedToXML
public void setOnlyUsedConnectionsSavedToXML(boolean onlyUsedConnections) -
replaceExistingDatabaseConnections
public boolean replaceExistingDatabaseConnections() -
setReplaceDatabaseConnections
public void setReplaceDatabaseConnections(boolean replace) -
showNewSubtransPopup
public boolean showNewSubtransPopup() -
setShowNewSubtransPopup
public void setShowNewSubtransPopup(boolean show) -
getMaxNrLinesInLog
public int getMaxNrLinesInLog() -
setMaxNrLinesInLog
public void setMaxNrLinesInLog(int maxNrLinesInLog) -
getMaxNrLinesInHistory
public int getMaxNrLinesInHistory() -
getLinesInHistoryFetchSize
public int getLinesInHistoryFetchSize() -
disableInitialExecutionHistory
public boolean disableInitialExecutionHistory() -
setMaxNrLinesInHistory
public void setMaxNrLinesInHistory(int maxNrLinesInHistory) -
setLinesInHistoryFetchSize
public void setLinesInHistoryFetchSize(int linesInHistoryFetchSize) -
setDisableInitialExecutionHistory
public void setDisableInitialExecutionHistory(boolean disable) -
getMaxLogLineTimeoutMinutes
public int getMaxLogLineTimeoutMinutes() -
setMaxLogLineTimeoutMinutes
public void setMaxLogLineTimeoutMinutes(int maxLogLineTimeoutMinutes) -
reset
public void reset()
-