Class PropsUI

  • All Implemented Interfaces:
    Cloneable

    public class PropsUI
    extends org.pentaho.di.core.Props
    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 Detail

      • lastUsedFiles

        protected List<org.pentaho.di.core.LastUsedFile> lastUsedFiles
      • openTabFiles

        protected List<org.pentaho.di.core.LastUsedFile> openTabFiles
      • lastUsedRepoFiles

        protected Map<String,​List<org.pentaho.di.core.LastUsedFile>> lastUsedRepoFiles
      • overriddenFileName

        protected String overriddenFileName
    • Method Detail

      • init

        public static void init​(org.eclipse.swt.widgets.Display d,
                                int t)
        Initialize the properties: load from disk.
        Parameters:
        d - The Display
        t - The type of properties file.
      • init

        public static void init​(org.eclipse.swt.widgets.Display d,
                                String filename)
        Initialize the properties: load from disk.
        Parameters:
        d - The Display
        filename - 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

        public static PropsUI getInstance()
      • init

        protected void init()
        Overrides:
        init in class org.pentaho.di.core.Props
      • setDefault

        public void setDefault()
      • storeScreens

        public void storeScreens()
      • loadScreens

        public void loadScreens()
      • saveProps

        public void saveProps()
        Overrides:
        saveProps in class org.pentaho.di.core.Props
      • setLastFiles

        public void setLastFiles()
      • setLastUsedRepoFiles

        public void setLastUsedRepoFiles()
      • setOpenTabFiles

        public void setOpenTabFiles()
      • addLastFile

        public 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.
        Parameters:
        fileType - the type of file to use @see LastUsedFile
        filename - The name of the file or transformation
        directory - The repository directory path, null in case lf is an XML file
        sourceRepository - 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.
      • addLastFile

        public void addLastFile​(String fileType,
                                String filename,
                                String directory,
                                boolean sourceRepository,
                                String repositoryName,
                                String username,
                                Date lastOpened,
                                String connection)
        Add a last opened file to the top of the recently used list.
        Parameters:
        fileType - the type of file to use @see LastUsedFile
        filename - The name of the file or transformation
        directory - The repository directory path, null in case lf is an XML file
        sourceRepository - 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.
      • addOpenTabFile

        public void addOpenTabFile​(String fileType,
                                   String filename,
                                   String directory,
                                   boolean sourceRepository,
                                   String repositoryName,
                                   int openTypes,
                                   String connection)
      • addOpenTabFile

        public 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.
        Parameters:
        fileType - the type of file to use @see LastUsedFile
        filename - The name of the file or transformation
        directory - The repository directory path, null in case lf is an XML file
        sourceRepository - 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.
      • loadLastUsedFiles

        public void loadLastUsedFiles()
      • loadLastUsedRepoFiles

        public void loadLastUsedRepoFiles()
      • loadOpenTabFiles

        public void loadOpenTabFiles()
      • getLastUsedRepoFiles

        public Map<String,​List<org.pentaho.di.core.LastUsedFile>> getLastUsedRepoFiles()
      • getLastUsedFiles

        public List<org.pentaho.di.core.LastUsedFile> getLastUsedFiles()
      • setLastUsedFiles

        public void setLastUsedFiles​(List<org.pentaho.di.core.LastUsedFile> lastUsedFiles)
      • getLastFileTypes

        public String[] getLastFileTypes()
      • getLastFiles

        public String[] getLastFiles()
      • getFilename

        public String getFilename()
        Overrides:
        getFilename in class org.pentaho.di.core.Props
      • getLastDirs

        public String[] getLastDirs()
      • getLastTypes

        public boolean[] getLastTypes()
      • getLastRepositories

        public String[] getLastRepositories()
      • setFixedFont

        public void setFixedFont​(org.eclipse.swt.graphics.FontData fd)
      • getFixedFont

        public org.eclipse.swt.graphics.FontData getFixedFont()
      • setDefaultFont

        public void setDefaultFont​(org.eclipse.swt.graphics.FontData fd)
      • getDefaultFont

        public org.eclipse.swt.graphics.FontData getDefaultFont()
      • setGraphFont

        public void setGraphFont​(org.eclipse.swt.graphics.FontData fd)
      • getGraphFont

        public org.eclipse.swt.graphics.FontData getGraphFont()
      • setGridFont

        public void setGridFont​(org.eclipse.swt.graphics.FontData fd)
      • getGridFont

        public org.eclipse.swt.graphics.FontData getGridFont()
      • setNoteFont

        public void setNoteFont​(org.eclipse.swt.graphics.FontData fd)
      • getNoteFont

        public org.eclipse.swt.graphics.FontData getNoteFont()
      • setBackgroundRGB

        public void setBackgroundRGB​(org.eclipse.swt.graphics.RGB c)
      • getBackgroundRGB

        public org.eclipse.swt.graphics.RGB getBackgroundRGB()
      • setGraphColorRGB

        public void setGraphColorRGB​(org.eclipse.swt.graphics.RGB c)
      • getGraphColorRGB

        public org.eclipse.swt.graphics.RGB getGraphColorRGB()
      • setTabColorRGB

        public void setTabColorRGB​(org.eclipse.swt.graphics.RGB c)
      • getTabColorRGB

        public org.eclipse.swt.graphics.RGB getTabColorRGB()
      • isSVGEnabled

        public boolean isSVGEnabled()
      • setSVGEnabled

        public void setSVGEnabled​(boolean svg)
      • setIconSize

        public void setIconSize​(int size)
      • getIconSize

        public int getIconSize()
      • setLineWidth

        public void setLineWidth​(int width)
      • getLineWidth

        public int getLineWidth()
      • setShadowSize

        public void setShadowSize​(int size)
      • getShadowSize

        public int getShadowSize()
      • setLastTrans

        public void setLastTrans​(String trans)
      • getLastTrans

        public String getLastTrans()
      • setLastPreview

        public void setLastPreview​(String[] lastpreview,
                                   int[] stepsize)
      • getLastPreview

        public String[] getLastPreview()
      • getLastPreviewSize

        public int[] getLastPreviewSize()
      • getDefaultFontData

        public org.eclipse.swt.graphics.FontData getDefaultFontData()
      • setMaxUndo

        public void setMaxUndo​(int max)
      • getMaxUndo

        public int getMaxUndo()
      • setMiddlePct

        public void setMiddlePct​(int pct)
      • getMiddlePct

        public int getMiddlePct()
      • setSashWeights

        public void setSashWeights​(int[] w)
      • getSashWeights

        public int[] getSashWeights()
      • setOpenLastFile

        public void setOpenLastFile​(boolean open)
      • openLastFile

        public boolean openLastFile()
      • setAutoSave

        public void setAutoSave​(boolean autosave)
      • getAutoSave

        public boolean getAutoSave()
      • setSaveConfirmation

        public void setSaveConfirmation​(boolean saveconf)
      • getSaveConfirmation

        public boolean getSaveConfirmation()
      • setAutoSplit

        public void setAutoSplit​(boolean autosplit)
      • getAutoSplit

        public boolean getAutoSplit()
      • setAutoCollapseCoreObjectsTree

        public void setAutoCollapseCoreObjectsTree​(boolean autoCollapse)
      • getAutoCollapseCoreObjectsTree

        public boolean getAutoCollapseCoreObjectsTree()
      • showRepositoriesDialogAtStartup

        public boolean showRepositoriesDialogAtStartup()
      • setExitWarningShown

        public void setExitWarningShown​(boolean show)
      • isAntiAliasingEnabled

        public boolean isAntiAliasingEnabled()
      • setAntiAliasingEnabled

        public void setAntiAliasingEnabled​(boolean anti)
      • isShowCanvasGridEnabled

        public boolean isShowCanvasGridEnabled()
      • setShowCanvasGridEnabled

        public void setShowCanvasGridEnabled​(boolean anti)
      • showExitWarning

        public boolean showExitWarning()
      • setRepositoriesDialogAtStartupShown

        public void setRepositoriesDialogAtStartupShown​(boolean show)
      • isOSLookShown

        public boolean isOSLookShown()
      • setOSLookShown

        public void setOSLookShown​(boolean show)
      • setGCFont

        public static void setGCFont​(org.eclipse.swt.graphics.GC gc,
                                     org.eclipse.swt.graphics.Device device,
                                     org.eclipse.swt.graphics.FontData fontData)
      • setLook

        public void setLook​(org.eclipse.swt.widgets.Control widget)
      • setLook

        public void setLook​(org.eclipse.swt.widgets.Control control,
                            int style)
      • setTableItemLook

        public static void setTableItemLook​(org.eclipse.swt.widgets.TableItem item,
                                            org.eclipse.swt.widgets.Display disp)
      • getDisplay

        public static org.eclipse.swt.widgets.Display getDisplay()
        Returns:
        Returns the display.
      • setDisplay

        public static void setDisplay​(org.eclipse.swt.widgets.Display d)
        Parameters:
        d - The display to set.
      • setDefaultPreviewSize

        public void setDefaultPreviewSize​(int size)
      • getDefaultPreviewSize

        public int getDefaultPreviewSize()
      • showCopyOrDistributeWarning

        public boolean showCopyOrDistributeWarning()
      • setShowCopyOrDistributeWarning

        public void setShowCopyOrDistributeWarning​(boolean show)
      • showWelcomePageOnStartup

        public boolean showWelcomePageOnStartup()
      • setShowWelcomePageOnStartup

        public void setShowWelcomePageOnStartup​(boolean show)
      • getJobsDialogStyle

        public int getJobsDialogStyle()
      • getDialogStyle

        public int getDialogStyle​(String styleProperty)
      • setDialogSize

        public void setDialogSize​(org.eclipse.swt.widgets.Shell shell,
                                  String styleProperty)
      • isBrandingActive

        public boolean isBrandingActive()
      • setBrandingActive

        public void setBrandingActive​(boolean active)
      • isOnlyActiveFileShownInTree

        public boolean isOnlyActiveFileShownInTree()
      • setOnlyActiveFileShownInTree

        public void setOnlyActiveFileShownInTree​(boolean show)
      • showToolTips

        public boolean showToolTips()
      • setShowToolTips

        public void setShowToolTips​(boolean show)
      • getRegisteredEditableComponents

        public List<org.pentaho.di.core.gui.GUIOption<Object>> getRegisteredEditableComponents()
      • isShowingHelpToolTips

        public boolean isShowingHelpToolTips()
      • setShowingHelpToolTips

        public void setShowingHelpToolTips​(boolean show)
      • getOpenTabFiles

        public List<org.pentaho.di.core.LastUsedFile> getOpenTabFiles()
        Returns:
        the openTabFiles
      • setOpenTabFiles

        public void setOpenTabFiles​(List<org.pentaho.di.core.LastUsedFile> openTabFiles)
        Parameters:
        openTabFiles - the openTabFiles to set
      • getCanvasGridSize

        public int getCanvasGridSize()
      • setCanvasGridSize

        public void setCanvasGridSize​(int gridSize)
      • getSupportedVersion

        public int getSupportedVersion​(String property)
        Gets the supported version of the requested software.
        Parameters:
        property - the key for the software version
        Returns:
        an integer that represents the supported version for the software.
      • isBrowserEnvironmentCheckDisabled

        public boolean isBrowserEnvironmentCheckDisabled()
        Ask if the browsing environment checks are disabled.
        Returns:
        'true' if disabled 'false' otherwise.
      • isLegacyPerspectiveMode

        public boolean isLegacyPerspectiveMode()
      • setLocation

        public static void setLocation​(org.pentaho.di.core.gui.GUIPositionInterface guiElement,
                                       int x,
                                       int y)
      • calculateGridPosition

        public static org.pentaho.di.core.gui.Point calculateGridPosition​(org.pentaho.di.core.gui.Point p)
      • isIndicateSlowTransStepsEnabled

        public boolean isIndicateSlowTransStepsEnabled()
      • setIndicateSlowTransStepsEnabled

        public void setIndicateSlowTransStepsEnabled​(boolean indicate)
      • setRecentSearches

        public void setRecentSearches​(String recentSearches)
      • getRecentSearches

        public String getRecentSearches()