Class RuntimeInstallationWizardPage

  • All Implemented Interfaces:
    org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

    public class RuntimeInstallationWizardPage
    extends AbstractDataBoundWizardPage
    1C:Enterprise Runtime definition page of RuntimeInstallationWizard.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ID  
      • Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider

        ERROR, INFORMATION, NONE, WARNING
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void bind​(org.eclipse.core.databinding.DataBindingContext databindingContext)
      Bind UI elements.
      protected void browseInstallPath​(org.eclipse.swt.widgets.Text text)
      Browses the install path of the 1C:Enterprise runtime installations and sets result to the provided widget.
      protected Path convertInstallLocation​(Path locatuon)
      Converts the given input path to the 1C:Enterprise runtime installation path.
      protected RuntimeInstallation createInstallation​(Path installLocation)
      Create 1C:Enterprise Runtime installation by the given install location.
      protected void createRuntimeComponentViewer​(org.eclipse.swt.widgets.Composite parent)
      Creates 1C:Enterprise runtime component table.
      protected void createRuntimeInstallationFields​(org.eclipse.swt.widgets.Composite parent)
      Creates 1C:Enterprise runtime installations fields UI input elements.
      org.eclipse.swt.widgets.Composite doCreateControl​(org.eclipse.swt.widgets.Composite parent)
      Create page control and return it's composite.
      protected void eraseComponents()
      Erases the component viewer content.
      String getHelpContextId()
      Returns help context id to bind help to.
      protected IRuntimeInstallationManager getRuntimeInstallationManager()
      Returns the runtime installation manager to use.
      void init​(RuntimeInstallation runtimeInstallation, Collection<String> existedNames)
      Initializes the wizard page.
      protected boolean isTraining​(RuntimeInstallation installation)
      Returns whether the given 1C:Enterprise runtime installation represents training runtime platform.
      protected void setBrowseText​(String browseText)
      Sets text for the browse button.
      protected void setComponents​(RuntimeInstallation installation)
      Resolves the given 1C:Enterprise runtime installation components and set them to the component viewer.
      protected org.eclipse.core.runtime.IStatus validateLocationAndVersion​(Path location, Version version, int build)
      Validates 1C:Enterprise runtime location and version.
      • Methods inherited from class org.eclipse.jface.wizard.WizardPage

        canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
      • Methods inherited from class org.eclipse.jface.dialogs.DialogPage

        convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
      • Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage

        getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
    • Method Detail

      • doCreateControl

        public org.eclipse.swt.widgets.Composite doCreateControl​(org.eclipse.swt.widgets.Composite parent)
        Description copied from class: AbstractDataBoundWizardPage
        Create page control and return it's composite. Subclass must add UI elements in this method.
        Specified by:
        doCreateControl in class AbstractDataBoundWizardPage
        Parameters:
        parent - parent composite, cannot be null
        Returns:
        return child composite, to set control to, never null
      • init

        public void init​(RuntimeInstallation runtimeInstallation,
                         Collection<String> existedNames)
        Initializes the wizard page.
        Parameters:
        runtimeInstallation - the 1C:Enterprise runtime installation, cannot be null
        existedNames - collection of already existed names, wizard cannot create installation with any of it, cannot be null
      • bind

        protected void bind​(org.eclipse.core.databinding.DataBindingContext databindingContext)
        Description copied from class: AbstractDataBoundWizardPage
        Bind UI elements. Default implementation does nothing.
        Overrides:
        bind in class AbstractDataBoundWizardPage
        Parameters:
        databindingContext - databinding context to bind to, cannot be null
      • createRuntimeInstallationFields

        protected void createRuntimeInstallationFields​(org.eclipse.swt.widgets.Composite parent)
        Creates 1C:Enterprise runtime installations fields UI input elements.
        Parameters:
        parent - the parent composite, cannot be null
      • createRuntimeComponentViewer

        protected void createRuntimeComponentViewer​(org.eclipse.swt.widgets.Composite parent)
        Creates 1C:Enterprise runtime component table.
        Parameters:
        parent - the parent composite, cannot be null
      • browseInstallPath

        protected void browseInstallPath​(org.eclipse.swt.widgets.Text text)
        Browses the install path of the 1C:Enterprise runtime installations and sets result to the provided widget.
        Parameters:
        text - the text to set result to, cannot be null
      • setBrowseText

        protected void setBrowseText​(String browseText)
        Sets text for the browse button.
        Parameters:
        browseText - the text to set, cannot be null
      • convertInstallLocation

        protected Path convertInstallLocation​(Path locatuon)
        Converts the given input path to the 1C:Enterprise runtime installation path.
        Parameters:
        path - the given input path to convert, can be null
        Returns:
        converted path, never null
      • setComponents

        protected void setComponents​(RuntimeInstallation installation)
        Resolves the given 1C:Enterprise runtime installation components and set them to the component viewer.
        Parameters:
        installation - the 1C:Enterprise runtime installation to resolve components for, cannot be null
      • eraseComponents

        protected void eraseComponents()
        Erases the component viewer content.
      • getRuntimeInstallationManager

        protected IRuntimeInstallationManager getRuntimeInstallationManager()
        Returns the runtime installation manager to use.
        Returns:
        the runtime installation manager, never null
      • createInstallation

        protected RuntimeInstallation createInstallation​(Path installLocation)
        Create 1C:Enterprise Runtime installation by the given install location.
        Parameters:
        installLocation - the install location to create installation with, cannot be null
        Returns:
        1C:Enterprise Runtime installation by the given install location
      • validateLocationAndVersion

        protected org.eclipse.core.runtime.IStatus validateLocationAndVersion​(Path location,
                                                                              Version version,
                                                                              int build)
        Validates 1C:Enterprise runtime location and version.
        Parameters:
        location - the location of 1C:Enterprise Runtime, cannot be null
        version - the version of 1C:Enterprise Runtime, cannot be null
        build - the build number of 1C:Enterprise Runtime, must be positive
        Returns:
        status of validation, never null
      • isTraining

        protected boolean isTraining​(RuntimeInstallation installation)
        Returns whether the given 1C:Enterprise runtime installation represents training runtime platform.
        Parameters:
        installation - the 1C:Enterprise runtime installation to check, cannot be null
        Returns:
        whether the given 1C:Enterprise runtime installation represents training runtime platform