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:
- com._1c.g5.v8.dt.internal.launching.ui.launchconfigurations.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
 
 public abstract class AbstractLaunchingTab extends com._1c.g5.v8.dt.internal.launching.ui.launchconfigurations.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 SummaryFields Modifier and Type Field Description protected IInfobaseAccessManagerinfobaseAccessManagerprotected ComboViewerinstallationViewerprotected ComboViewerprojectViewerprotected IResolvableRuntimeInstallationManagerresolvableRuntimeInstallationManagerprotected StringruntimeTypeIdprotected IRuntimeVersionSupportruntimeVersionSupportprotected StringruntimewizardIdprotected PlatformServicesUiFactoryuiFactory
 - 
Constructor SummaryConstructors Constructor Description AbstractLaunchingTab(String runtimeTypeId, String runtimewizardId)Creates an instance ofAbstractLaunchingTab.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateAddRuntimeButton(org.eclipse.swt.widgets.Composite parent)Creates "Add new runtime" button.protected voidcreateApplicationSettings(org.eclipse.swt.widgets.Composite parent, int hSpan)Creates application settings UI elements.protected voidcreateProjectSettings(org.eclipse.swt.widgets.Composite parent)Creates project settings UI elements.protected voidcreateRuntimeInstallationSettings(org.eclipse.swt.widgets.Composite parent, String label, int viewerSpan)Creates 1C:Enterprise runtime installations settings UI elements.voiddeactivated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)protected Optional<org.eclipse.core.resources.IProject>getContextProject()Returns the current context project if present.protected Optional<IApplication>getSelectedApplication()Returns the selected application in the launching tab if present.protected Optional<IResolvableRuntimeInstallation>getSelectedInstallation()Returns the selected 1C:Enterprise resolvable installation in the launching tab if present.protected Optional<org.eclipse.core.resources.IProject>getSelectedProject()Returns the selected project in the launching tab if present.protected voidhandleApplicationSelection(IApplication application)Handles an application selection.protected voidhandleProjectSelection(org.eclipse.core.resources.IProject project)Handles a project selection.protected voidhandleUseDefaultInfobaseLaunchSelection()Handles use default infobase launch button selection.protected voidhandleUseInfobaseLaunchSelection()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.voidinitializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)protected voidinitializeInstallationViewer(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.booleanisValid(org.eclipse.debug.core.ILaunchConfiguration launchConfig)voidmodifyText(org.eclipse.swt.events.ModifyEvent e)voidselectionChanged(SelectionChangedEvent event)voidsetDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)protected booleanvalidateProject()Validates project selection.protected booleanvalidateProject(ApplicationUsePurpose usePurpose, String label)Validates project selection and project configuration use purpose.protected booleanvalidateRuntimeInstallation()Validates 1C:Enterprise runtime installation selection.voidwidgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)voidwidgetSelected(org.eclipse.swt.events.SelectionEvent e)- 
Methods inherited from class com._1c.g5.v8.dt.internal.launching.ui.launchconfigurations.AbstractRuntimeClientTabcanClientOpenUri, canRunRuntimeClient, doInitializeFrom, doRuntimeClientAutoSelected, doRuntimeClientChanged, getClientTypeId, getClientTypeId, isAutoSelect, isAutoSelect, projectChanged, runtimeClientAutoSelected, runtimeClientChanged, setVisible
 - 
Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTabactivated, 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
 
- 
 
- 
- 
- 
Field Detail- 
runtimeVersionSupport@Inject protected IRuntimeVersionSupport runtimeVersionSupport 
 - 
resolvableRuntimeInstallationManager@Inject protected IResolvableRuntimeInstallationManager resolvableRuntimeInstallationManager 
 - 
infobaseAccessManager@Inject protected IInfobaseAccessManager infobaseAccessManager 
 - 
uiFactory@Inject protected PlatformServicesUiFactory uiFactory 
 - 
runtimeTypeIdprotected final String runtimeTypeId 
 - 
runtimewizardIdprotected final String runtimewizardId 
 - 
projectViewerprotected ComboViewer projectViewer 
 - 
installationViewerprotected ComboViewer installationViewer 
 
- 
 - 
Constructor Detail- 
AbstractLaunchingTabpublic AbstractLaunchingTab(String runtimeTypeId, String runtimewizardId) Creates an instance ofAbstractLaunchingTab.- Parameters:
- runtimeTypeId- the 1C:Enterprise installation type id, cannot be- null
- runtimewizardId- the 1C:Enterprise installation wizard id, cannot be- null
 
 
- 
 - 
Method Detail- 
setDefaultspublic void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration) - Specified by:
- setDefaultsin interface- org.eclipse.debug.ui.ILaunchConfigurationTab
 
 - 
initializeFrompublic void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration) - Specified by:
- initializeFromin interface- org.eclipse.debug.ui.ILaunchConfigurationTab
- Overrides:
- initializeFromin class- com._1c.g5.v8.dt.internal.launching.ui.launchconfigurations.AbstractRuntimeClientTab
 
 - 
deactivatedpublic void deactivated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy) - Specified by:
- deactivatedin interface- org.eclipse.debug.ui.ILaunchConfigurationTab
- Overrides:
- deactivatedin class- org.eclipse.debug.ui.AbstractLaunchConfigurationTab
 
 - 
isValidpublic boolean isValid(org.eclipse.debug.core.ILaunchConfiguration launchConfig) - Specified by:
- isValidin interface- org.eclipse.debug.ui.ILaunchConfigurationTab
- Overrides:
- isValidin class- org.eclipse.debug.ui.AbstractLaunchConfigurationTab
 
 - 
modifyTextpublic void modifyText(org.eclipse.swt.events.ModifyEvent e) - Specified by:
- modifyTextin interface- org.eclipse.swt.events.ModifyListener
 
 - 
widgetSelectedpublic void widgetSelected(org.eclipse.swt.events.SelectionEvent e) - Specified by:
- widgetSelectedin interface- org.eclipse.swt.events.SelectionListener
 
 - 
widgetDefaultSelectedpublic void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e) - Specified by:
- widgetDefaultSelectedin interface- org.eclipse.swt.events.SelectionListener
 
 - 
selectionChangedpublic void selectionChanged(SelectionChangedEvent event) - Specified by:
- selectionChangedin interface- ISelectionChangedListener
 
 - 
initializeProjectViewerprotected 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 be- null
- Returns:
- the selected project if present
- Throws:
- org.eclipse.core.runtime.CoreException- if configuration read error occurred
 
 - 
initializeApplicationViewerprotected 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 be- null
- project- the context project, cannot be- null
- Returns:
- the selected application if present
- Throws:
- org.eclipse.core.runtime.CoreException- if configuration read error occurred
 
 - 
initializeInstallationViewerprotected void initializeInstallationViewer(org.eclipse.debug.core.ILaunchConfiguration configuration, String attribute, IApplication application) throws org.eclipse.core.runtime.CoreExceptionInitializes launch configuation 1C:Enterprise platform UI settings based on the provided launch configuration.- Parameters:
- configuration- the launch configuration to use, cannot be- null
- attribute- the launch configuration installation attribute, cannot be- null
- application- the context application or- nullif none
- Throws:
- org.eclipse.core.runtime.CoreException- if configuration read error occurred
 
 - 
createProjectSettingsprotected void createProjectSettings(org.eclipse.swt.widgets.Composite parent) Creates project settings UI elements.- Parameters:
- parent- the parent composite to create on, cannot be- null
 
 - 
handleProjectSelectionprotected void handleProjectSelection(org.eclipse.core.resources.IProject project) Handles a project selection.- Parameters:
- project- the selected project, cannot be- null
 
 - 
handleApplicationSelectionprotected void handleApplicationSelection(IApplication application) Handles an application selection.- Parameters:
- application- the selected application, cannot be- null
 
 - 
createApplicationSettingsprotected void createApplicationSettings(org.eclipse.swt.widgets.Composite parent, int hSpan)Creates application settings UI elements.- Parameters:
- parent- the parent composite to create on, cannot be- null
- hSpan- the horizotnal span of the application viewer
 
 - 
handleUseDefaultInfobaseLaunchSelectionprotected void handleUseDefaultInfobaseLaunchSelection() Handles use default infobase launch button selection.
 - 
handleUseInfobaseLaunchSelectionprotected void handleUseInfobaseLaunchSelection() Handles use infobase launch button selection.
 - 
createRuntimeInstallationSettingsprotected 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 be- null
- label- the viewer label text, cannot be- null
- viewerSpan- the viewer horizontal span
 
 - 
createAddRuntimeButtonprotected void createAddRuntimeButton(org.eclipse.swt.widgets.Composite parent) Creates "Add new runtime" button.- Parameters:
- parent- the parent composite to create on, cannot be- null
 
 - 
validateProjectprotected boolean validateProject() Validates project selection.- Returns:
- whether this selection is in a valid state
 
 - 
validateProjectprotected boolean validateProject(ApplicationUsePurpose usePurpose, String label) Validates project selection and project configuration use purpose.- Parameters:
- usePurpose- the use purpose to check, cannot be- null
- label- the label for the use purpose UI usage, cannot be- null
- Returns:
- whether this selection is in a valid state
 
 - 
validateRuntimeInstallationprotected boolean validateRuntimeInstallation() Validates 1C:Enterprise runtime installation selection.- Returns:
- whether this selection is in a valid state
 
 - 
getSelectedInstallationprotected Optional<IResolvableRuntimeInstallation> 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
 
 - 
getSelectedApplicationprotected Optional<IApplication> getSelectedApplication() Returns the selected application in the launching tab if present.- Returns:
- the selected application in the launching tab if present
 
 - 
getSelectedProjectprotected Optional<org.eclipse.core.resources.IProject> getSelectedProject() Returns the selected project in the launching tab if present.- Returns:
- the selected project in the launching tab if present
 
 - 
getContextProjectprotected Optional<org.eclipse.core.resources.IProject> getContextProject() Returns the current context project if present.- Returns:
- the current context project if present
 
 
- 
 
-