Class AbstractRuntimeClientTab
java.lang.Object
org.eclipse.debug.ui.AbstractLaunchConfigurationTab
com._1c.g5.v8.dt.internal.launching.ui.launchconfigurations.AbstractRuntimeClientTab
- All Implemented Interfaces:
IRuntimeClientChangeListener
,org.eclipse.debug.core.IPrototypeAttributesLabelProvider
,org.eclipse.debug.ui.ILaunchConfigurationTab
,org.eclipse.debug.ui.ILaunchConfigurationTab2
- Direct Known Subclasses:
AbstractLaunchingTab
,ArgumentsTab
,ExternalObjectsTab
public abstract class AbstractRuntimeClientTab
extends org.eclipse.debug.ui.AbstractLaunchConfigurationTab
implements IRuntimeClientChangeListener
Abstract implementation of launch configuration tab for 1C:Enterprise runtime client.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Returns whether the current selected 1C:Enterprise runtime client can open URL as 1C:Enterprise runtime client.protected boolean
Returns whether the current selected 1C:Enterprise runtime client can launch 1C:Enterprise runtime client.protected abstract void
doInitializeFrom
(org.eclipse.debug.core.ILaunchConfiguration configuration) Initializes this tab's controls with values from the given launch configuration.protected void
Notifies that auto selection for 1C:Enterprise runtime client was selected.protected void
doRuntimeClientChanged
(String clientTypeId) Notifies that 1C:Enterprise runtime client type was changed to the given type.Returns 1C:Enterprise runtime client component type identifier to use for launching if present.protected String
getClientTypeId
(org.eclipse.debug.core.ILaunchConfiguration configuration) Returns 1C:Enterprise runtime client component type identifier to use for launching that is stored in the given launch configuration ornull
if was not stored.void
initializeFrom
(org.eclipse.debug.core.ILaunchConfiguration configuration) protected boolean
Returns whether need to automatically select 1C:Enterprise runtime client for launching.protected boolean
isAutoSelect
(org.eclipse.debug.core.ILaunchConfiguration configuration) Returns whether 1C:Enterprise runtime client component type should be selected automatically based by th given launch configuration.void
projectChanged
(org.eclipse.core.resources.IProject project) Notifies that project was selected.void
Notifies that auto selection for 1C:Enterprise runtime client was selected.final void
runtimeClientChanged
(String componentTypeId) Notifies that 1C:Enterprise runtime client type was changed to the given type.protected void
setVisible
(boolean visible, org.eclipse.swt.widgets.Control... controls) Sets visible state of the given controls, that are contained in this tab.Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
activated, canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createUpdateJob, createVerticalSpacer, deactivated, dispose, getAttributeLabel, getAttributesLabelsForPrototype, getControl, getErrorMessage, getHelpContextId, getId, getImage, getLaunchConfigurationDialog, getLaunchManager, getMessage, getShell, getUpdateJobDelay, getWarningMessage, initializeAttributes, isDirty, isValid, 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, setDefaults
-
Field Details
-
runtimeComponentManager
-
-
Constructor Details
-
AbstractRuntimeClientTab
public AbstractRuntimeClientTab()Creates an instance ofAbstractRuntimeClientTab
.
-
-
Method Details
-
runtimeClientChanged
Description copied from interface:IRuntimeClientChangeListener
Notifies that 1C:Enterprise runtime client type was changed to the given type.Clients may use
IRuntimeComponentManager
to get component type by this id.- Specified by:
runtimeClientChanged
in interfaceIRuntimeClientChangeListener
- Parameters:
componentTypeId
- client type identifier to use, cannot benull
-
runtimeClientAutoSelected
public void runtimeClientAutoSelected()Description copied from interface:IRuntimeClientChangeListener
Notifies that auto selection for 1C:Enterprise runtime client was selected.- Specified by:
runtimeClientAutoSelected
in interfaceIRuntimeClientChangeListener
-
projectChanged
public void projectChanged(org.eclipse.core.resources.IProject project) Description copied from interface:IRuntimeClientChangeListener
Notifies that project was selected.- Specified by:
projectChanged
in interfaceIRuntimeClientChangeListener
- Parameters:
project
- the selected project, cannot benull
-
initializeFrom
public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration) - Specified by:
initializeFrom
in interfaceorg.eclipse.debug.ui.ILaunchConfigurationTab
-
doInitializeFrom
protected abstract void doInitializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration) Initializes this tab's controls with values from the given launch configuration.- Parameters:
configuration
- the launch configuration, cannot benull
-
getClientTypeId
Returns 1C:Enterprise runtime client component type identifier to use for launching if present. If absent then auto client selection was selected.- Returns:
- 1C:Enterprise runtime client component type identifier to use for launching if present; if absent then auto client selection was selected
-
isAutoSelect
protected boolean isAutoSelect()Returns whether need to automatically select 1C:Enterprise runtime client for launching.- Returns:
- whether need to automatically select 1C:Enterprise runtime client for launching
-
doRuntimeClientChanged
Notifies that 1C:Enterprise runtime client type was changed to the given type. Default implementation does nothing, clients may override.- Parameters:
clientTypeId
- client type identifier to use, cannot benull
-
doRuntimeClientAutoSelected
protected void doRuntimeClientAutoSelected()Notifies that auto selection for 1C:Enterprise runtime client was selected. Default implementation does nothing, clients may override. -
canRunRuntimeClient
protected boolean canRunRuntimeClient()Returns whether the current selected 1C:Enterprise runtime client can launch 1C:Enterprise runtime client.- Returns:
- whether the current selected 1C:Enterprise runtime client can launch 1C:Enterprise runtime client
-
canClientOpenUri
protected boolean canClientOpenUri()Returns whether the current selected 1C:Enterprise runtime client can open URL as 1C:Enterprise runtime client.- Returns:
- whether the current selected 1C:Enterprise runtime client can open URL as 1C:Enterprise Runtime client
-
isAutoSelect
protected boolean isAutoSelect(org.eclipse.debug.core.ILaunchConfiguration configuration) Returns whether 1C:Enterprise runtime client component type should be selected automatically based by th given launch configuration.- Parameters:
configuration
- the launch configuration, cannot benull
- Returns:
- whether 1C:Enterprise runtime client component type should be selected automatically
-
getClientTypeId
Returns 1C:Enterprise runtime client component type identifier to use for launching that is stored in the given launch configuration ornull
if was not stored.- Parameters:
configuration
- the launch configuration, cannot benull
- Returns:
- 1C:Enterprise runtime client component type identifier or
null
if was not stored
-
setVisible
protected void setVisible(boolean visible, org.eclipse.swt.widgets.Control... controls) Sets visible state of the given controls, that are contained in this tab. After visibility state changes, container tab will be relayouted.If all of the given controls already have the same visibility state, method will do nothing.
- Parameters:
visible
- new visible state of controlscontrols
- controls to change visibility state for, cannot be empty
-