public class PropsUI
extends org.pentaho.di.core.Props
STRING_ANTI_ALIASING, STRING_ARGUMENT_NAME_PREFIX, STRING_ASK_ABOUT_REPLACING_DATABASES, STRING_AUTO_COLLAPSE_CORE_TREE, STRING_AUTO_SAVE, STRING_AUTO_SPLIT, STRING_BACKGROUND_COLOR_B, STRING_BACKGROUND_COLOR_G, STRING_BACKGROUND_COLOR_R, STRING_CUSTOM_PARAMETER, STRING_DEFAULT_PREVIEW_SIZE, STRING_DISABLE_INITIAL_EXECUTION_HISTORY, STRING_FONT_DEFAULT_NAME, STRING_FONT_DEFAULT_SIZE, STRING_FONT_DEFAULT_STYLE, STRING_FONT_FIXED_NAME, STRING_FONT_FIXED_SIZE, STRING_FONT_FIXED_STYLE, STRING_FONT_GRAPH_NAME, STRING_FONT_GRAPH_SIZE, STRING_FONT_GRAPH_STYLE, STRING_FONT_GRID_NAME, STRING_FONT_GRID_SIZE, STRING_FONT_GRID_STYLE, STRING_FONT_NOTE_NAME, STRING_FONT_NOTE_SIZE, STRING_FONT_NOTE_STYLE, STRING_GRAPH_COLOR_B, STRING_GRAPH_COLOR_G, STRING_GRAPH_COLOR_R, STRING_ICON_SIZE, STRING_INDICATE_SLOW_TRANS_STEPS, STRING_LAST_ARGUMENT, STRING_LAST_PREVIEW_SIZE, STRING_LAST_PREVIEW_STEP, STRING_LAST_PREVIEW_TRANS, STRING_LAST_REPOSITORY, STRING_LAST_REPOSITORY_LOGIN, STRING_LINE_WIDTH, STRING_LOG_FILTER, STRING_LOG_LEVEL, STRING_MAX_UNDO, STRING_MIDDLE_PCT, STRING_ONLY_ACTIVE_STEPS, STRING_ONLY_USED_DB_TO_XML, STRING_OPEN_LAST_FILE, STRING_PLUGIN_HISTORY, STRING_REPLACE_DATABASES, STRING_SASH_W1, STRING_SASH_W2, STRING_SAVE_CONF, STRING_SHADOW_SIZE, STRING_SHOW_EXIT_WARNING, STRING_SHOW_OS_LOOK, STRING_SHOW_TIPS, STRING_SIZE_H, STRING_SIZE_MAX, STRING_SIZE_W, STRING_SIZE_X, STRING_SIZE_Y, STRING_START_SHOW_REPOSITORIES, STRING_TAB_COLOR_B, STRING_TAB_COLOR_G, STRING_TAB_COLOR_R, STRING_TIP_NR, STRING_USE_DB_CACHE, TYPE_PROPERTIES_CHEF, TYPE_PROPERTIES_EMPTY, TYPE_PROPERTIES_KITCHEN, TYPE_PROPERTIES_MENU, TYPE_PROPERTIES_PAN, TYPE_PROPERTIES_PLATE, TYPE_PROPERTIES_SPOON, WIDGET_STYLE_DEFAULT, WIDGET_STYLE_FIXED, WIDGET_STYLE_GRAPH, WIDGET_STYLE_NOTEPAD, WIDGET_STYLE_TAB, WIDGET_STYLE_TABLE
Modifier and Type | Method and Description |
---|---|
void |
addLastFile(String fileType,
String filename,
String directory,
boolean sourceRepository,
String repositoryName)
Add a last opened file to the top of the recently used list.
|
void |
addOpenTabFile(String fileType,
String filename,
String directory,
boolean sourceRepository,
String repositoryName,
int openTypes)
Add a last opened file to the top of the recently used list.
|
static org.pentaho.di.core.gui.Point |
calculateGridPosition(org.pentaho.di.core.gui.Point p) |
boolean |
getAutoCollapseCoreObjectsTree() |
boolean |
getAutoSave() |
boolean |
getAutoSplit() |
org.eclipse.swt.graphics.RGB |
getBackgroundRGB() |
int |
getCanvasGridSize() |
org.eclipse.swt.graphics.FontData |
getDefaultFont() |
org.eclipse.swt.graphics.FontData |
getDefaultFontData() |
int |
getDefaultPreviewSize() |
int |
getDialogStyle(String styleProperty) |
static org.eclipse.swt.widgets.Display |
getDisplay() |
String |
getFilename() |
org.eclipse.swt.graphics.FontData |
getFixedFont() |
org.eclipse.swt.graphics.RGB |
getGraphColorRGB() |
org.eclipse.swt.graphics.FontData |
getGraphFont() |
org.eclipse.swt.graphics.FontData |
getGridFont() |
int |
getIconSize() |
static PropsUI |
getInstance() |
int |
getJobsDialogStyle() |
String[] |
getLastDirs() |
String[] |
getLastFiles() |
String[] |
getLastFileTypes() |
String[] |
getLastPreview() |
int[] |
getLastPreviewSize() |
String[] |
getLastRepositories() |
String |
getLastTrans() |
boolean[] |
getLastTypes() |
List<org.pentaho.di.core.LastUsedFile> |
getLastUsedFiles() |
int |
getLineWidth() |
int |
getMaxUndo() |
int |
getMiddlePct() |
org.eclipse.swt.graphics.FontData |
getNoteFont() |
List<org.pentaho.di.core.LastUsedFile> |
getOpenTabFiles() |
List<org.pentaho.di.core.gui.GUIOption<Object>> |
getRegisteredEditableComponents() |
int[] |
getSashWeights() |
boolean |
getSaveConfirmation() |
WindowProperty |
getScreen(String windowname) |
int |
getShadowSize() |
org.eclipse.swt.graphics.RGB |
getTabColorRGB() |
int |
getTipNr() |
static void |
init(org.eclipse.swt.widgets.Display d,
int t)
Initialize the properties: load from disk.
|
static void |
init(org.eclipse.swt.widgets.Display d,
String filename)
Initialize the properties: load from disk.
|
boolean |
isAntiAliasingEnabled() |
boolean |
isBrandingActive() |
boolean |
isIndicateSlowTransStepsEnabled() |
static boolean |
isInitialized()
Check to see whether the Kettle properties where loaded.
|
boolean |
isOnlyActiveFileShownInTree() |
boolean |
isOSLookShown() |
boolean |
isShowingHelpToolTips() |
void |
loadLastUsedFiles() |
void |
loadOpenTabFiles() |
void |
loadScreens() |
boolean |
openLastFile() |
void |
saveProps() |
void |
setAntiAliasingEnabled(boolean anti) |
void |
setAutoCollapseCoreObjectsTree(boolean autoCollapse) |
void |
setAutoSave(boolean autosave) |
void |
setAutoSplit(boolean autosplit) |
void |
setBackgroundRGB(org.eclipse.swt.graphics.RGB c) |
void |
setBrandingActive(boolean active) |
void |
setCanvasGridSize(int gridSize) |
void |
setDefault() |
void |
setDefaultFont(org.eclipse.swt.graphics.FontData fd) |
void |
setDefaultPreviewSize(int size) |
void |
setDialogSize(org.eclipse.swt.widgets.Shell shell,
String styleProperty) |
static void |
setDisplay(org.eclipse.swt.widgets.Display d) |
void |
setExitWarningShown(boolean show) |
void |
setFixedFont(org.eclipse.swt.graphics.FontData fd) |
static void |
setGCFont(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.FontData fontData) |
void |
setGraphColorRGB(org.eclipse.swt.graphics.RGB c) |
void |
setGraphFont(org.eclipse.swt.graphics.FontData fd) |
void |
setGridFont(org.eclipse.swt.graphics.FontData fd) |
void |
setIconSize(int size) |
void |
setIndicateSlowTransStepsEnabled(boolean indicate) |
void |
setLastFiles() |
void |
setLastPreview(String[] lastpreview,
int[] stepsize) |
void |
setLastTrans(String trans) |
void |
setLastUsedFiles(List<org.pentaho.di.core.LastUsedFile> lastUsedFiles) |
void |
setLineWidth(int width) |
static void |
setLocation(org.pentaho.di.core.gui.GUIPositionInterface guiElement,
int x,
int y) |
void |
setLook(org.eclipse.swt.widgets.Control widget) |
void |
setLook(org.eclipse.swt.widgets.Control control,
int style) |
void |
setMaxUndo(int max) |
void |
setMiddlePct(int pct) |
void |
setNoteFont(org.eclipse.swt.graphics.FontData fd) |
void |
setOnlyActiveFileShownInTree(boolean show) |
void |
setOpenLastFile(boolean open) |
void |
setOpenTabFiles() |
void |
setOpenTabFiles(List<org.pentaho.di.core.LastUsedFile> openTabFiles) |
void |
setOSLookShown(boolean show) |
void |
setRepositoriesDialogAtStartupShown(boolean show) |
void |
setSashWeights(int[] w) |
void |
setSaveConfirmation(boolean saveconf) |
void |
setScreen(WindowProperty winprop) |
void |
setShadowSize(int size) |
void |
setShowCopyOrDistributeWarning(boolean show) |
void |
setShowingHelpToolTips(boolean show) |
void |
setShowTips(boolean show) |
void |
setShowToolTips(boolean show) |
void |
setShowWelcomePageOnStartup(boolean show) |
void |
setTabColorRGB(org.eclipse.swt.graphics.RGB c) |
static void |
setTableItemLook(org.eclipse.swt.widgets.TableItem item,
org.eclipse.swt.widgets.Display disp) |
void |
setTipNr(int nr) |
boolean |
showCopyOrDistributeWarning() |
boolean |
showExitWarning() |
boolean |
showRepositoriesDialogAtStartup() |
boolean |
showTips() |
boolean |
showToolTips() |
boolean |
showWelcomePageOnStartup() |
void |
storeScreens() |
addPluginHistory, areOnlyUsedConnectionsSavedToXML, askAboutReplacingDatabaseConnections, clearCustomParameters, convertArguments, disableInitialExecutionHistory, fileExists, getArgumentNumber, getCustomParameter, getLastArguments, getLastRepository, getLastRepositoryLogin, getLicenseFilename, getLinesInHistoryFetchSize, getLogFilter, getLogLevel, getMaxLogLineTimeoutMinutes, getMaxNrLinesInHistory, getMaxNrLinesInLog, getOnlyActiveSteps, getPluginHistory, getProperty, getType, increasePluginHistory, init, init, loadProps, replaceExistingDatabaseConnections, setAskAboutReplacingDatabaseConnections, setCustomParameter, setDisableInitialExecutionHistory, setLastArguments, setLastRepository, setLastRepositoryLogin, setLinesInHistoryFetchSize, setLogFilter, setLogLevel, setMaxLogLineTimeoutMinutes, setMaxNrLinesInHistory, setMaxNrLinesInLog, setOnlyActiveSteps, setOnlyUsedConnectionsSavedToXML, setProperty, setReplaceDatabaseConnections, setType, setUseDBCache, toString, useDBCache
public static void init(org.eclipse.swt.widgets.Display d, int t)
d
- The Displayt
- The type of properties file.public static void init(org.eclipse.swt.widgets.Display d, String filename)
d
- The Displayfilename
- the filename to usepublic static boolean isInitialized()
public static PropsUI getInstance()
public void setDefault()
public void storeScreens()
public void loadScreens()
public void saveProps()
saveProps
in class org.pentaho.di.core.Props
public void setLastFiles()
public void setOpenTabFiles()
public void addLastFile(String fileType, String filename, String directory, boolean sourceRepository, String repositoryName)
fileType
- the type of file to use @see LastUsedFilefilename
- The name of the file or transformationdirectory
- The repository directory path, null in case lf is an XML filesourceRepository
- True if the file was loaded from repository, false if ld is an XML file.repositoryName
- The name of the repository the file was loaded from or save to.public void addOpenTabFile(String fileType, String filename, String directory, boolean sourceRepository, String repositoryName, int openTypes)
fileType
- the type of file to use @see LastUsedFilefilename
- The name of the file or transformationdirectory
- The repository directory path, null in case lf is an XML filesourceRepository
- True if the file was loaded from repository, false if ld is an XML file.repositoryName
- The name of the repository the file was loaded from or save to.public void loadLastUsedFiles()
public void loadOpenTabFiles()
public List<org.pentaho.di.core.LastUsedFile> getLastUsedFiles()
public void setLastUsedFiles(List<org.pentaho.di.core.LastUsedFile> lastUsedFiles)
public String[] getLastFileTypes()
public String[] getLastFiles()
public String getFilename()
getFilename
in class org.pentaho.di.core.Props
public String[] getLastDirs()
public boolean[] getLastTypes()
public String[] getLastRepositories()
public void setFixedFont(org.eclipse.swt.graphics.FontData fd)
public org.eclipse.swt.graphics.FontData getFixedFont()
public void setDefaultFont(org.eclipse.swt.graphics.FontData fd)
public org.eclipse.swt.graphics.FontData getDefaultFont()
public void setGraphFont(org.eclipse.swt.graphics.FontData fd)
public org.eclipse.swt.graphics.FontData getGraphFont()
public void setGridFont(org.eclipse.swt.graphics.FontData fd)
public org.eclipse.swt.graphics.FontData getGridFont()
public void setNoteFont(org.eclipse.swt.graphics.FontData fd)
public org.eclipse.swt.graphics.FontData getNoteFont()
public void setBackgroundRGB(org.eclipse.swt.graphics.RGB c)
public org.eclipse.swt.graphics.RGB getBackgroundRGB()
public void setGraphColorRGB(org.eclipse.swt.graphics.RGB c)
public org.eclipse.swt.graphics.RGB getGraphColorRGB()
public void setTabColorRGB(org.eclipse.swt.graphics.RGB c)
public org.eclipse.swt.graphics.RGB getTabColorRGB()
public void setIconSize(int size)
public int getIconSize()
public void setLineWidth(int width)
public int getLineWidth()
public void setShadowSize(int size)
public int getShadowSize()
public void setLastTrans(String trans)
public String getLastTrans()
public void setLastPreview(String[] lastpreview, int[] stepsize)
public String[] getLastPreview()
public int[] getLastPreviewSize()
public org.eclipse.swt.graphics.FontData getDefaultFontData()
public void setMaxUndo(int max)
public int getMaxUndo()
public void setMiddlePct(int pct)
public int getMiddlePct()
public void setScreen(WindowProperty winprop)
public WindowProperty getScreen(String windowname)
public void setSashWeights(int[] w)
public int[] getSashWeights()
public void setTipNr(int nr)
public int getTipNr()
public void setShowTips(boolean show)
public boolean showTips()
public void setOpenLastFile(boolean open)
public boolean openLastFile()
public void setAutoSave(boolean autosave)
public boolean getAutoSave()
public void setSaveConfirmation(boolean saveconf)
public boolean getSaveConfirmation()
public void setAutoSplit(boolean autosplit)
public boolean getAutoSplit()
public void setAutoCollapseCoreObjectsTree(boolean autoCollapse)
public boolean getAutoCollapseCoreObjectsTree()
public boolean showRepositoriesDialogAtStartup()
public void setExitWarningShown(boolean show)
public boolean isAntiAliasingEnabled()
public void setAntiAliasingEnabled(boolean anti)
public boolean showExitWarning()
public void setRepositoriesDialogAtStartupShown(boolean show)
public boolean isOSLookShown()
public void setOSLookShown(boolean show)
public static void setGCFont(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.FontData fontData)
public void setLook(org.eclipse.swt.widgets.Control widget)
public void setLook(org.eclipse.swt.widgets.Control control, int style)
public static void setTableItemLook(org.eclipse.swt.widgets.TableItem item, org.eclipse.swt.widgets.Display disp)
public static org.eclipse.swt.widgets.Display getDisplay()
public static void setDisplay(org.eclipse.swt.widgets.Display d)
d
- The display to set.public void setDefaultPreviewSize(int size)
public int getDefaultPreviewSize()
public boolean showCopyOrDistributeWarning()
public void setShowCopyOrDistributeWarning(boolean show)
public boolean showWelcomePageOnStartup()
public void setShowWelcomePageOnStartup(boolean show)
public int getJobsDialogStyle()
public int getDialogStyle(String styleProperty)
public void setDialogSize(org.eclipse.swt.widgets.Shell shell, String styleProperty)
public boolean isBrandingActive()
public void setBrandingActive(boolean active)
public boolean isOnlyActiveFileShownInTree()
public void setOnlyActiveFileShownInTree(boolean show)
public boolean showToolTips()
public void setShowToolTips(boolean show)
public List<org.pentaho.di.core.gui.GUIOption<Object>> getRegisteredEditableComponents()
public boolean isShowingHelpToolTips()
public void setShowingHelpToolTips(boolean show)
public List<org.pentaho.di.core.LastUsedFile> getOpenTabFiles()
public void setOpenTabFiles(List<org.pentaho.di.core.LastUsedFile> openTabFiles)
openTabFiles
- the openTabFiles to setpublic int getCanvasGridSize()
public void setCanvasGridSize(int gridSize)
public static void setLocation(org.pentaho.di.core.gui.GUIPositionInterface guiElement, int x, int y)
public static org.pentaho.di.core.gui.Point calculateGridPosition(org.pentaho.di.core.gui.Point p)
public boolean isIndicateSlowTransStepsEnabled()
public void setIndicateSlowTransStepsEnabled(boolean indicate)