Class AbstractPublicationWizardPage
- java.lang.Object
-
- org.eclipse.jface.dialogs.DialogPage
-
- org.eclipse.jface.wizard.WizardPage
-
- com._1c.g5.v8.dt.platform.services.ui.AbstractDataBoundWizardPage
-
- com._1c.g5.v8.dt.platform.services.ui.publication.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
AbstractPublicationWizardPage.PublicationLocationValidator
Publication location folder validator.class
AbstractPublicationWizardPage.PublicationUniqueNameValidator
Validates publication name.class
AbstractPublicationWizardPage.RuntimeInstallationValidator
Validates 1C:Enterprise Runime installations selection.static class
AbstractPublicationWizardPage.UrlValidator
Validates URL field.class
AbstractPublicationWizardPage.WebServerValidator
Validates web server.
-
Field Summary
Fields Modifier and Type Field Description protected static Pattern
ALLOWED_DIRECTORY_PATTERN
protected org.eclipse.swt.widgets.Text
debugUrl
protected org.eclipse.swt.widgets.Button
enableDebug
protected List<String>
existingNames
protected IInfobaseAccessManager
infobaseAccessManager
protected IInfobaseManager
infobaseManager
protected org.eclipse.swt.widgets.Button
infobaseSelectButton
protected ComboViewer
infobaseViewer
protected ComboViewer
installationViewer
protected org.eclipse.swt.widgets.Text
location
protected org.eclipse.swt.widgets.Button
locationBrowse
protected org.eclipse.swt.widgets.Text
name
protected Publication
publication
protected IPublicationManager
publicationManager
protected IRuntimeComponentManager
runtimeComponentManager
protected IRuntimeInstallationManager
runtimeInstallationManager
protected PlatformServicesUiFactory
uiFactory
protected IWebServerManager
webServerManager
protected ComboViewer
webServersViewer
-
Constructor Summary
Constructors Constructor Description AbstractPublicationWizardPage(String id)
Constructor ofInfobasePublicationWizardMainPage
.
-
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
createDebugSettings(org.eclipse.swt.widgets.Composite parent)
Creates debug settings UI elements.protected void
createInfobaseSelectionSettings(org.eclipse.swt.widgets.Composite composite)
Creates infobase selection settings UI elements.protected void
createInfobaseSettings(org.eclipse.swt.widgets.Composite composite)
Creates infobase settings UI elements.protected void
createRuntimeInstallationSettings(org.eclipse.swt.widgets.Composite composite)
Creates 1C:Enterprise Runtime installation settings UI elements.protected void
createWebServerSettings(org.eclipse.swt.widgets.Composite composite)
Creates web server settings UI elements.protected void
debugEnabled(boolean enable)
Handle debug enable or disable event.org.eclipse.swt.widgets.Composite
doCreateControl(org.eclipse.swt.widgets.Composite parent)
Create page control and return it's composite.protected void
selectInfobase(InfobaseReference infobase)
Selection the given infobase in the infobase viewer.protected void
selectRuntimeInstallation(IResolvableRuntimeInstallation resolvable)
Select 1C:Enterprise Runtime installation in the 1C:Enterprise Runtime installation viewer.protected void
selectRuntimeInstallation(WebServer webServer)
Select 1C:Enterprise Runtime installation in the 1C:Enterprise Runtime installation viewer, based on given web server.protected void
selectWebServer(WebServer webServer)
Selection the given web server in the web server viewer.void
setCreateInfobaseSettings(boolean createInfobaseSettings)
void
setCreateRuntimeInstallationSettings(boolean createRuntimeInstallationSettings)
void
setCreateWebServerSettings(boolean createWebServerSettings)
void
setPublication(Publication publication)
Set publication instance.void
setRefreshExisting(boolean refreshExisting)
void
setRuntimeSelectionLocked(boolean runtimeSelectionLocked)
protected org.eclipse.core.runtime.IStatus
validateRuntimeInstallation(IResolvableRuntimeInstallation resolvable)
Validate the 1C:Enterprise Runtime installation.-
Methods inherited from class com._1c.g5.v8.dt.platform.services.ui.AbstractDataBoundWizardPage
afterCreateControl, browseDirectory, browseFile, browseFile, browseFile, browseFile, createControl, dispose, getDataBindingContext, getHelpContextId
-
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
-
-
-
-
Field Detail
-
ALLOWED_DIRECTORY_PATTERN
protected static final Pattern ALLOWED_DIRECTORY_PATTERN
-
runtimeInstallationManager
@Inject protected IRuntimeInstallationManager runtimeInstallationManager
-
runtimeComponentManager
@Inject protected IRuntimeComponentManager runtimeComponentManager
-
infobaseAccessManager
@Inject protected IInfobaseAccessManager infobaseAccessManager
-
webServerManager
@Inject protected IWebServerManager webServerManager
-
infobaseManager
@Inject protected IInfobaseManager infobaseManager
-
publicationManager
@Inject protected IPublicationManager publicationManager
-
uiFactory
@Inject protected PlatformServicesUiFactory uiFactory
-
infobaseViewer
protected ComboViewer infobaseViewer
-
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
-
publication
protected Publication publication
-
-
Constructor Detail
-
AbstractPublicationWizardPage
public AbstractPublicationWizardPage(String id)
Constructor ofInfobasePublicationWizardMainPage
.- Parameters:
id
- the wizard page identifier, cannot benull
-
-
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 classAbstractDataBoundWizardPage
- Parameters:
parent
- parent composite, cannot benull
- 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 benull
-
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 classAbstractDataBoundWizardPage
- Parameters:
databindingContext
- databinding context to bind to, cannot benull
-
createWebServerSettings
protected void createWebServerSettings(org.eclipse.swt.widgets.Composite composite)
Creates web server settings UI elements.- Parameters:
composite
- the parent composite, cannot benull
-
createRuntimeInstallationSettings
protected void createRuntimeInstallationSettings(org.eclipse.swt.widgets.Composite composite)
Creates 1C:Enterprise Runtime installation settings UI elements.- Parameters:
composite
- the parent composite, cannot benull
-
createInfobaseSettings
protected void createInfobaseSettings(org.eclipse.swt.widgets.Composite composite)
Creates infobase settings UI elements.- Parameters:
composite
- the parent composite, cannot benull
-
createInfobaseSelectionSettings
protected void createInfobaseSelectionSettings(org.eclipse.swt.widgets.Composite composite)
Creates infobase selection settings UI elements.- Parameters:
composite
- the parent composite, cannot benull
-
createDebugSettings
protected void createDebugSettings(org.eclipse.swt.widgets.Composite parent)
Creates debug settings UI elements.- Parameters:
composite
- the parent composite, cannot benull
-
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 benull
-
selectWebServer
protected void selectWebServer(WebServer webServer)
Selection the given web server in the web server viewer.- Parameters:
infobase
- the web server to select, cannot benull
-
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 benull
-
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 benull
-
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 benull
- Returns:
- validation status of the 1C:Enterprise Runtime installation
-
-