Class RuntimeInstallationWizardPage
- 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.runtimes.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 ofRuntimeInstallationWizard
.
-
-
Constructor Summary
Constructors Constructor Description RuntimeInstallationWizardPage()
Constructor ofRuntimeInstallationWizardPage
.
-
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 URI
convertInstallLocation(URI location)
Converts the given input location to the 1C:Enterprise runtime installation location.protected RuntimeInstallation
createInstallation(URI location)
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(URI location, Version version, int build)
Validates 1C:Enterprise runtime location and version.-
Methods inherited from class com._1c.g5.v8.dt.platform.services.ui.AbstractDataBoundWizardPage
afterCreateControl, browseDirectory, browseFile, browseFile, browseFile, browseFile, createControl, dispose, getDataBindingContext, setValidationMessageProvider
-
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
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RuntimeInstallationWizardPage
public RuntimeInstallationWizardPage()
Constructor ofRuntimeInstallationWizardPage
.
-
-
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
-
getHelpContextId
public String getHelpContextId()
Description copied from class:AbstractDataBoundWizardPage
Returns help context id to bind help to.- Overrides:
getHelpContextId
in classAbstractDataBoundWizardPage
- Returns:
- help context id or
null
if no help is needed
-
init
public void init(RuntimeInstallation runtimeInstallation, Collection<String> existedNames)
Initializes the wizard page.- Parameters:
runtimeInstallation
- the 1C:Enterprise runtime installation, cannot benull
existedNames
- collection of already existed names, wizard cannot create installation with any of it, cannot benull
-
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
-
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 benull
-
createRuntimeComponentViewer
protected void createRuntimeComponentViewer(org.eclipse.swt.widgets.Composite parent)
Creates 1C:Enterprise runtime component table.- Parameters:
parent
- the parent composite, cannot benull
-
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 benull
-
setBrowseText
protected void setBrowseText(String browseText)
Sets text for the browse button.- Parameters:
browseText
- the text to set, cannot benull
-
convertInstallLocation
protected URI convertInstallLocation(URI location)
Converts the given input location to the 1C:Enterprise runtime installation location.- Parameters:
location
- the given input location to convert, can benull
- 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 benull
-
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(URI location)
Create 1C:Enterprise Runtime installation by the given install location.- Parameters:
installLocation
- the install location to create installation with, cannot benull
- Returns:
- 1C:Enterprise Runtime installation by the given install location
-
validateLocationAndVersion
protected org.eclipse.core.runtime.IStatus validateLocationAndVersion(URI location, Version version, int build)
Validates 1C:Enterprise runtime location and version.- Parameters:
location
- the location of 1C:Enterprise Runtime, cannot benull
version
- the version of 1C:Enterprise Runtime, cannot benull
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 benull
- Returns:
- whether the given 1C:Enterprise runtime installation represents training runtime platform
-
-