Class AbstractLaunchingTab
java.lang.Object
org.eclipse.debug.ui.AbstractLaunchConfigurationTab
com._1c.g5.v8.dt.internal.launching.ui.launchconfigurations.AbstractRuntimeClientTab
com._1c.g5.v8.dt.launching.ui.launchconfigurations.AbstractLaunchingTab
- All Implemented Interfaces:
IRuntimeClientChangeListener
,EventListener
,org.eclipse.debug.core.IPrototypeAttributesLabelProvider
,org.eclipse.debug.ui.ILaunchConfigurationTab
,org.eclipse.debug.ui.ILaunchConfigurationTab2
,ISelectionChangedListener
,org.eclipse.swt.events.ModifyListener
,org.eclipse.swt.events.SelectionListener
,org.eclipse.swt.internal.SWTEventListener
- Direct Known Subclasses:
MobileLaunchingMainTab
,RemoteMobileApplicationTab
,RuntimeClientMainTab
public abstract class AbstractLaunchingTab
extends AbstractRuntimeClientTab
implements org.eclipse.swt.events.ModifyListener, org.eclipse.swt.events.SelectionListener, ISelectionChangedListener
Abstract launch configuration tab with target project selection, infobase selection and 1C:Enterprise runtime
installation selection.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IApplicationManager
protected IInfobaseAccessManager
protected ComboViewer
protected ComboViewer
protected IResolvableRuntimeInstallationManager
protected final String
protected IRuntimeVersionSupport
protected final String
protected PlatformServicesUiFactory
Fields inherited from class com._1c.g5.v8.dt.internal.launching.ui.launchconfigurations.AbstractRuntimeClientTab
runtimeComponentManager
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractLaunchingTab
(String runtimeTypeId, String runtimewizardId) Creates an instance ofAbstractLaunchingTab
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createAddRuntimeButton
(org.eclipse.swt.widgets.Composite parent) Creates "Add new runtime" button.protected void
createApplicationSettings
(org.eclipse.swt.widgets.Composite parent, int hSpan) Creates application settings UI elements.protected void
createProjectSettings
(org.eclipse.swt.widgets.Composite parent) Creates project settings UI elements.protected void
createRuntimeInstallationSettings
(org.eclipse.swt.widgets.Composite parent, String label, int viewerSpan) Creates 1C:Enterprise runtime installations settings UI elements.void
deactivated
(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy) getApplications
(org.eclipse.core.resources.IProject project) Gets list of applications supported by this launch type for the specified projectprotected Optional<org.eclipse.core.resources.IProject>
Returns the current context project if present.protected Optional<IApplication>
Returns the selected application in the launching tab if present.protected Optional<IResolvableRuntimeInstallation>
Returns the selected 1C:Enterprise resolvable installation in the launching tab if present.protected Optional<org.eclipse.core.resources.IProject>
Returns the selected project in the launching tab if present.protected void
handleApplicationSelection
(IApplication application) Handles an application selection.protected void
handleProjectSelection
(org.eclipse.core.resources.IProject project) Handles a project selection.protected void
Handles use default infobase launch button selection.protected void
Handles use infobase launch button selection.protected Optional<IApplication>
initializeApplicationViewer
(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.core.resources.IProject project) Initializes launch configuation application UI settings based on the provided launch configuration.void
initializeFrom
(org.eclipse.debug.core.ILaunchConfiguration configuration) protected void
initializeInstallationViewer
(org.eclipse.debug.core.ILaunchConfiguration configuration, String attribute, IApplication application) Initializes launch configuation 1C:Enterprise platform UI settings based on the provided launch configuration.protected Optional<org.eclipse.core.resources.IProject>
initializeProjectViewer
(org.eclipse.debug.core.ILaunchConfiguration configuration) Initializes launch configuation project UI settings based on the provided launch configuration.boolean
isValid
(org.eclipse.debug.core.ILaunchConfiguration launchConfig) void
modifyText
(org.eclipse.swt.events.ModifyEvent e) void
void
setDefaults
(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration) protected boolean
Validates project selection.protected boolean
validateProject
(ApplicationUsePurpose usePurpose, String label) Validates project selection and project configuration use purpose.protected boolean
Validates 1C:Enterprise runtime installation selection.void
widgetDefaultSelected
(org.eclipse.swt.events.SelectionEvent e) void
widgetSelected
(org.eclipse.swt.events.SelectionEvent e) Methods inherited from class com._1c.g5.v8.dt.internal.launching.ui.launchconfigurations.AbstractRuntimeClientTab
canClientOpenUri, canRunRuntimeClient, doInitializeFrom, doRuntimeClientAutoSelected, doRuntimeClientChanged, getClientTypeId, getClientTypeId, isAutoSelect, isAutoSelect, projectChanged, runtimeClientAutoSelected, runtimeClientChanged, setVisible
Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
activated, canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createUpdateJob, createVerticalSpacer, dispose, getAttributeLabel, getAttributesLabelsForPrototype, getControl, getErrorMessage, getHelpContextId, getId, getImage, getLaunchConfigurationDialog, getLaunchManager, getMessage, getShell, getUpdateJobDelay, getWarningMessage, initializeAttributes, isDirty, launched, scheduleUpdateJob, setAttribute, setControl, setDirty, setErrorMessage, setHelpContextId, setLaunchConfigurationDialog, setMessage, setWarningMessage, updateLaunchConfigurationDialog
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.debug.ui.ILaunchConfigurationTab
createControl, getName, OkToLeaveTab, performApply, postApply
-
Field Details
-
runtimeVersionSupport
-
resolvableRuntimeInstallationManager
-
infobaseAccessManager
-
uiFactory
-
applicationManager
-
runtimeTypeId
-
runtimewizardId
-
projectViewer
-
installationViewer
-
-
Constructor Details
-
AbstractLaunchingTab
Creates an instance ofAbstractLaunchingTab
.- Parameters:
runtimeTypeId
- the 1C:Enterprise installation type id, cannot benull
runtimewizardId
- the 1C:Enterprise installation wizard id, cannot benull
-
-
Method Details
-
setDefaults
public void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration) - Specified by:
setDefaults
in interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab
-
initializeFrom
public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration) - Specified by:
initializeFrom
in interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab
- Overrides:
initializeFrom
in classAbstractRuntimeClientTab
-
deactivated
public void deactivated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy) - Specified by:
deactivated
in interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab
- Overrides:
deactivated
in classorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
-
isValid
public boolean isValid(org.eclipse.debug.core.ILaunchConfiguration launchConfig) - Specified by:
isValid
in interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab
- Overrides:
isValid
in classorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
-
modifyText
public void modifyText(org.eclipse.swt.events.ModifyEvent e) - Specified by:
modifyText
in interfaceorg.eclipse.swt.events.ModifyListener
-
widgetSelected
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) - Specified by:
widgetSelected
in interfaceorg.eclipse.swt.events.SelectionListener
-
widgetDefaultSelected
public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e) - Specified by:
widgetDefaultSelected
in interfaceorg.eclipse.swt.events.SelectionListener
-
selectionChanged
- Specified by:
selectionChanged
in interfaceISelectionChangedListener
-
initializeProjectViewer
protected Optional<org.eclipse.core.resources.IProject> initializeProjectViewer(org.eclipse.debug.core.ILaunchConfiguration configuration) throws org.eclipse.core.runtime.CoreException Initializes launch configuation project UI settings based on the provided launch configuration.- Parameters:
configuration
- the launch configuration to use, cannot benull
- Returns:
- the selected project if present
- Throws:
org.eclipse.core.runtime.CoreException
- if configuration read error occurred
-
initializeApplicationViewer
protected Optional<IApplication> initializeApplicationViewer(org.eclipse.debug.core.ILaunchConfiguration configuration, org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException Initializes launch configuation application UI settings based on the provided launch configuration.- Parameters:
configuration
- the launch configuration to use, cannot benull
project
- the context project, cannot benull
- Returns:
- the selected application if present
- Throws:
org.eclipse.core.runtime.CoreException
- if configuration read error occurred
-
initializeInstallationViewer
protected void initializeInstallationViewer(org.eclipse.debug.core.ILaunchConfiguration configuration, String attribute, IApplication application) throws org.eclipse.core.runtime.CoreException Initializes launch configuation 1C:Enterprise platform UI settings based on the provided launch configuration.- Parameters:
configuration
- the launch configuration to use, cannot benull
attribute
- the launch configuration installation attribute, cannot benull
application
- the context application ornull
if none- Throws:
org.eclipse.core.runtime.CoreException
- if configuration read error occurred
-
createProjectSettings
protected void createProjectSettings(org.eclipse.swt.widgets.Composite parent) Creates project settings UI elements.- Parameters:
parent
- the parent composite to create on, cannot benull
-
handleProjectSelection
protected void handleProjectSelection(org.eclipse.core.resources.IProject project) Handles a project selection.- Parameters:
project
- the selected project, cannot benull
-
handleApplicationSelection
Handles an application selection.- Parameters:
application
- the selected application, cannot benull
-
createApplicationSettings
protected void createApplicationSettings(org.eclipse.swt.widgets.Composite parent, int hSpan) Creates application settings UI elements.- Parameters:
parent
- the parent composite to create on, cannot benull
hSpan
- the horizotnal span of the application viewer
-
handleUseDefaultInfobaseLaunchSelection
protected void handleUseDefaultInfobaseLaunchSelection()Handles use default infobase launch button selection. -
handleUseInfobaseLaunchSelection
protected void handleUseInfobaseLaunchSelection()Handles use infobase launch button selection. -
createRuntimeInstallationSettings
protected void createRuntimeInstallationSettings(org.eclipse.swt.widgets.Composite parent, String label, int viewerSpan) Creates 1C:Enterprise runtime installations settings UI elements.- Parameters:
parent
- the parent composite to create on, cannot benull
label
- the viewer label text, cannot benull
viewerSpan
- the viewer horizontal span
-
createAddRuntimeButton
protected void createAddRuntimeButton(org.eclipse.swt.widgets.Composite parent) Creates "Add new runtime" button.- Parameters:
parent
- the parent composite to create on, cannot benull
-
validateProject
protected boolean validateProject()Validates project selection.- Returns:
- whether this selection is in a valid state
-
validateProject
Validates project selection and project configuration use purpose.- Parameters:
usePurpose
- the use purpose to check, cannot benull
label
- the label for the use purpose UI usage, cannot benull
- Returns:
- whether this selection is in a valid state
-
validateRuntimeInstallation
protected boolean validateRuntimeInstallation()Validates 1C:Enterprise runtime installation selection.- Returns:
- whether this selection is in a valid state
-
getSelectedInstallation
Returns the selected 1C:Enterprise resolvable installation in the launching tab if present.- Returns:
- the selected 1C:Enterprise resolvable installation in the launching tab if present
-
getSelectedApplication
Returns the selected application in the launching tab if present.- Returns:
- the selected application in the launching tab if present
-
getSelectedProject
Returns the selected project in the launching tab if present.- Returns:
- the selected project in the launching tab if present
-
getContextProject
Returns the current context project if present.- Returns:
- the current context project if present
-
getApplications
Gets list of applications supported by this launch type for the specified project- Parameters:
project
-IProject
for getting itsIApplication
, cannot benull
- Returns:
- list of supported by this launch type
IApplication
s for specifiedIProject
, nevernull
-