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
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of AbstractRuntimeClientTab.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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
    Notifies that 1C:Enterprise runtime client type was changed to the given type.
    protected Optional<String>
    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 or null 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

  • Constructor Details

  • Method Details

    • runtimeClientChanged

      public final void runtimeClientChanged(String componentTypeId)
      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 interface IRuntimeClientChangeListener
      Parameters:
      componentTypeId - client type identifier to use, cannot be null
    • runtimeClientAutoSelected

      public void runtimeClientAutoSelected()
      Description copied from interface: IRuntimeClientChangeListener
      Notifies that auto selection for 1C:Enterprise runtime client was selected.
      Specified by:
      runtimeClientAutoSelected in interface IRuntimeClientChangeListener
    • projectChanged

      public void projectChanged(org.eclipse.core.resources.IProject project)
      Description copied from interface: IRuntimeClientChangeListener
      Notifies that project was selected.
      Specified by:
      projectChanged in interface IRuntimeClientChangeListener
      Parameters:
      project - the selected project, cannot be null
    • initializeFrom

      public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
      Specified by:
      initializeFrom in interface org.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 be null
    • getClientTypeId

      protected Optional<String> 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

      protected void doRuntimeClientChanged(String clientTypeId)
      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 be null
    • 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 be null
      Returns:
      whether 1C:Enterprise runtime client component type should be selected automatically
    • getClientTypeId

      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 or null if was not stored.
      Parameters:
      configuration - the launch configuration, cannot be null
      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 controls
      controls - controls to change visibility state for, cannot be empty