Class AbstractPublicationWizardPage

  • All Implemented Interfaces:
    org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage
    Direct Known Subclasses:
    InfobasePublicationWizardMainPage, MobileApplicationPublicationWizardMainPage

    public abstract class AbstractPublicationWizardPage
    extends AbstractDataBoundWizardPage
    Abstract implementation of publication wizard page.

    Page allows to create UI elements for:

    • Infobase selection
    • 1C:Enterprise Runtime selection
    • Web server selection
    • Publication name definition
    • Publication location definition
    • Field Detail

      • ALLOWED_DIRECTORY_PATTERN

        protected static final Pattern ALLOWED_DIRECTORY_PATTERN
      • infobaseSelectButton

        protected org.eclipse.swt.widgets.Button infobaseSelectButton
      • installationViewer

        protected ComboViewer installationViewer
      • webServersViewer

        protected ComboViewer webServersViewer
      • name

        protected org.eclipse.swt.widgets.Text name
      • location

        protected org.eclipse.swt.widgets.Text location
      • locationBrowse

        protected org.eclipse.swt.widgets.Button locationBrowse
      • enableDebug

        protected org.eclipse.swt.widgets.Button enableDebug
      • debugUrl

        protected org.eclipse.swt.widgets.Text debugUrl
      • existingNames

        protected List<String> existingNames
    • Constructor Detail

    • 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
      • setPublication

        public void setPublication​(Publication publication)
        Set publication instance.
        Parameters:
        publication - the publication instance to set, cannot be null
      • setCreateInfobaseSettings

        public void setCreateInfobaseSettings​(boolean createInfobaseSettings)
        Parameters:
        createInfobaseSettings - the createInfobaseSettings to set
      • setCreateRuntimeInstallationSettings

        public void setCreateRuntimeInstallationSettings​(boolean createRuntimeInstallationSettings)
        Parameters:
        createRuntimeInstallationSettings - the createRuntimeInstallationSettings to set
      • setCreateWebServerSettings

        public void setCreateWebServerSettings​(boolean createWebServerSettings)
        Parameters:
        createWebServerSettings - the createWebServerSettings to set
      • setRuntimeSelectionLocked

        public void setRuntimeSelectionLocked​(boolean runtimeSelectionLocked)
        Parameters:
        runtimeSelectionLocked - the runtimeSelectionLocked to set
      • setRefreshExisting

        public void setRefreshExisting​(boolean refreshExisting)
        Parameters:
        refreshExisting - the checkNameUniqueness to set
      • 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
      • createWebServerSettings

        protected void createWebServerSettings​(org.eclipse.swt.widgets.Composite composite)
        Creates web server settings UI elements.
        Parameters:
        composite - the parent composite, cannot be null
      • createRuntimeInstallationSettings

        protected void createRuntimeInstallationSettings​(org.eclipse.swt.widgets.Composite composite)
        Creates 1C:Enterprise Runtime installation settings UI elements.
        Parameters:
        composite - the parent composite, cannot be null
      • createInfobaseSettings

        protected void createInfobaseSettings​(org.eclipse.swt.widgets.Composite composite)
        Creates infobase settings UI elements.
        Parameters:
        composite - the parent composite, cannot be null
      • createInfobaseSelectionSettings

        protected void createInfobaseSelectionSettings​(org.eclipse.swt.widgets.Composite composite)
        Creates infobase selection settings UI elements.
        Parameters:
        composite - the parent composite, cannot be null
      • createDebugSettings

        protected void createDebugSettings​(org.eclipse.swt.widgets.Composite parent)
        Creates debug settings UI elements.
        Parameters:
        composite - the parent composite, cannot be null
      • debugEnabled

        protected void debugEnabled​(boolean enable)
        Handle debug enable or disable event. Default implementation does nothing.
        Parameters:
        enable - new enablement state
      • selectInfobase

        protected void selectInfobase​(InfobaseReference infobase)
        Selection the given infobase in the infobase viewer.
        Parameters:
        infobase - the infobase to select, cannot be null
      • selectWebServer

        protected void selectWebServer​(WebServer webServer)
        Selection the given web server in the web server viewer.
        Parameters:
        infobase - the web server to select, cannot be null
      • selectRuntimeInstallation

        protected void selectRuntimeInstallation​(WebServer webServer)
        Select 1C:Enterprise Runtime installation in the 1C:Enterprise Runtime installation viewer, based on given web server.
        Parameters:
        webServer - web server to get 1C:Enterprise Runtime installation from, cannot be null
      • selectRuntimeInstallation

        protected void selectRuntimeInstallation​(IResolvableRuntimeInstallation resolvable)
        Select 1C:Enterprise Runtime installation in the 1C:Enterprise Runtime installation viewer.
        Parameters:
        resolvable - the resolvable 1C:Enterprise Runtime installation to select, cannot be null
      • validateRuntimeInstallation

        protected org.eclipse.core.runtime.IStatus validateRuntimeInstallation​(IResolvableRuntimeInstallation resolvable)
        Validate the 1C:Enterprise Runtime installation.
        Parameters:
        resolvable - the resolvable 1C:Enterprise Runtime installation to validate, cannot be null
        Returns:
        validation status of the 1C:Enterprise Runtime installation