Class InfobaseAccessSettingsDialog

  • All Implemented Interfaces:
    org.eclipse.jface.window.IShellProvider

    public class InfobaseAccessSettingsDialog
    extends org.eclipse.jface.dialogs.TitleAreaDialog
    Dialog allows to input and change infobase access settings.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.jface.window.Window

        org.eclipse.jface.window.Window.IExceptionHandler
    • Field Summary

      • Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog

        DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
      • Fields inherited from class org.eclipse.jface.dialogs.Dialog

        blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
      • Fields inherited from class org.eclipse.jface.window.Window

        CANCEL, OK, resizeHasOccurred
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean close()  
      protected void configureShell​(org.eclipse.swt.widgets.Shell shell)  
      protected org.eclipse.swt.widgets.Control createContents​(org.eclipse.swt.widgets.Composite parent)  
      protected org.eclipse.swt.widgets.Control createDialogArea​(org.eclipse.swt.widgets.Composite parent)  
      protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()  
      InfobaseReference getInfobase()
      Returns configured infobase.
      protected org.eclipse.swt.graphics.Point getInitialSize()  
      IResolvableRuntimeInstallation getInstallation()
      Returns configured 1C:Enterprise Runtime resolvable installation.
      IInfobaseAccessSettings getSettings()
      Returns configured infobase access settings.
      protected void initializeBounds()  
      protected void okPressed()  
      void setAccessSettings​(IInfobaseAccessSettings settings)
      Set infobase access settings in the crearing dialog.
      protected void setCredentialsEnablement​(InfobaseAccess access)
      Set infobase user name and password fields enablement.
      void setDialogMessage​(String dialogMessage, int dialogMessageType)
      Sets the message for this dialog with an indication of what type of message it is.
      void setDialogTitle​(String dialogTitle)
      Sets the dialog title.
      void setInfobase​(InfobaseReference infobase)
      Set infobase selection in the creating dialog.
      void setInstallation​(IResolvableRuntimeInstallation installation)
      Set 1C:Enterprise Runtime resolvable installation in the crearing dialog.
      void setProject​(org.eclipse.core.resources.IProject project)
      Set project in the crearing dialog.
      void setShellTitle​(String shellTitle)
      Sets the shell title.
      protected void updateDialogState()
      Update enablement of OK button of this dialog.
      • Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog

        getErrorMessage, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
      • Methods inherited from class org.eclipse.jface.dialogs.TrayDialog

        closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
      • Methods inherited from class org.eclipse.jface.dialogs.Dialog

        applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
      • Methods inherited from class org.eclipse.jface.window.Window

        canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
    • Constructor Detail

      • InfobaseAccessSettingsDialog

        public InfobaseAccessSettingsDialog​(org.eclipse.swt.widgets.Shell shell,
                                            PlatformServicesUiFactory uiFactory)
        Parameters:
        shell - the parent shell, or null to create a top-level shell
        uiFactory - the platform services UI factory, cannot be null
    • Method Detail

      • setProject

        public void setProject​(org.eclipse.core.resources.IProject project)
        Set project in the crearing dialog.
        Parameters:
        project - the project to set, cannot be null
      • setInfobase

        public void setInfobase​(InfobaseReference infobase)
        Set infobase selection in the creating dialog. Infobase selection will be locked on the given infobase.
        Parameters:
        infobase - the infobase to select, cannot be null
      • setAccessSettings

        public void setAccessSettings​(IInfobaseAccessSettings settings)
        Set infobase access settings in the crearing dialog.
        Parameters:
        settings - the infobase access settings to set, cannot be null
      • setInstallation

        public void setInstallation​(IResolvableRuntimeInstallation installation)
        Set 1C:Enterprise Runtime resolvable installation in the crearing dialog.
        Parameters:
        installation - 1C:Enterprise Runtime resolvable installation to set, cannot be null
      • getInfobase

        public InfobaseReference getInfobase()
        Returns configured infobase.
        Returns:
        configured infobase, never null
      • getSettings

        public IInfobaseAccessSettings getSettings()
        Returns configured infobase access settings.
        Returns:
        configured infobase access settings, never null
      • getInstallation

        public IResolvableRuntimeInstallation getInstallation()
        Returns configured 1C:Enterprise Runtime resolvable installation. Can return null
        Returns:
        configured 1C:Enterprise Runtime resolvable installation or null if not configured
      • setDialogTitle

        public void setDialogTitle​(String dialogTitle)
        Sets the dialog title.
        Parameters:
        dialogTitle - the dialog title to set, cannot be null
      • setShellTitle

        public void setShellTitle​(String shellTitle)
        Sets the shell title.
        Parameters:
        shellTitle - the shell title to set, cannot be null
      • setDialogMessage

        public void setDialogMessage​(String dialogMessage,
                                     int dialogMessageType)
        Sets the message for this dialog with an indication of what type of message it is.
        Parameters:
        dialogMessage - the dialog message to set, cannot be null
        dialogMessageType - the dialog message type
      • okPressed

        protected void okPressed()
        Overrides:
        okPressed in class org.eclipse.jface.dialogs.Dialog
      • close

        public boolean close()
        Overrides:
        close in class org.eclipse.jface.dialogs.Dialog
      • configureShell

        protected void configureShell​(org.eclipse.swt.widgets.Shell shell)
        Overrides:
        configureShell in class org.eclipse.jface.window.Window
      • getInitialSize

        protected org.eclipse.swt.graphics.Point getInitialSize()
        Overrides:
        getInitialSize in class org.eclipse.jface.dialogs.TitleAreaDialog
      • getDialogBoundsSettings

        protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()
        Overrides:
        getDialogBoundsSettings in class org.eclipse.jface.dialogs.Dialog
      • createDialogArea

        protected org.eclipse.swt.widgets.Control createDialogArea​(org.eclipse.swt.widgets.Composite parent)
        Overrides:
        createDialogArea in class org.eclipse.jface.dialogs.TitleAreaDialog
      • initializeBounds

        protected void initializeBounds()
        Overrides:
        initializeBounds in class org.eclipse.jface.dialogs.Dialog
      • createContents

        protected org.eclipse.swt.widgets.Control createContents​(org.eclipse.swt.widgets.Composite parent)
        Overrides:
        createContents in class org.eclipse.jface.dialogs.TitleAreaDialog
      • updateDialogState

        protected void updateDialogState()
        Update enablement of OK button of this dialog.
      • setCredentialsEnablement

        protected void setCredentialsEnablement​(InfobaseAccess access)
        Set infobase user name and password fields enablement.
        Parameters:
        access - the infobase access, cannot be null