Class AbstractMobileLaunchShortcut

  • All Implemented Interfaces:
    org.eclipse.debug.ui.ILaunchShortcut, org.eclipse.debug.ui.ILaunchShortcut2

    public abstract class AbstractMobileLaunchShortcut
    extends AbstractLaunchShortcut
    Abstract 1C:Enterprise runtime mobile launch shortcut.
    • Constructor Detail

      • AbstractMobileLaunchShortcut

        public AbstractMobileLaunchShortcut()
    • Method Detail

      • setDefaults

        protected void setDefaults​(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration,
                                   org.eclipse.core.resources.IProject project)
                            throws org.eclipse.core.runtime.CoreException
        Description copied from class: AbstractLaunchShortcut
        Sets default attributes for the provided launch configuration.
        Overrides:
        setDefaults in class AbstractLaunchShortcut
        Parameters:
        configuration - the launch configuration, cannot be null
        project - the launcning project, cannot be null
        Throws:
        org.eclipse.core.runtime.CoreException - if request fails
      • matches

        protected boolean matches​(org.eclipse.core.resources.IProject project,
                                  org.eclipse.emf.ecore.EObject object,
                                  org.eclipse.debug.core.ILaunchConfiguration candidate,
                                  boolean forLaunch)
        Description copied from class: AbstractLaunchShortcut
        Returns whether the given launch configuration candidate of the shortcut type mathces with the given project for launch purposes.

        Default implementation returns true if project default attribute matches with the given project.

        Overrides:
        matches in class AbstractLaunchShortcut
        Parameters:
        project - the project to get candidates for, cannot be null
        object - the object to find candidates for, cannot be null
        candidate - the candidate launch configuration, cannot be null
        forLaunch - if true then launch configuration will be filetered for launch purposes, if false then launch configuration will be filetered for selection launch configuration listing
        Returns:
        whether the given launch configuration candidate of the shortcut type mathces with the given project for launch purposes
      • isValid

        protected boolean isValid​(org.eclipse.debug.core.ILaunchConfiguration configuration,
                                  String mode)
                           throws org.eclipse.core.runtime.CoreException
        Description copied from class: AbstractLaunchShortcut
        Validates the given launch configuration. Returns whether launch configuration has valid and ready-to-launch attributes.
        Overrides:
        isValid in class AbstractLaunchShortcut
        Parameters:
        configuration - launch configuration to validate, cannot be null
        mode - one of the launch modes defined by the launch manager, cannot be null
        Returns:
        whether launch configuration has valid and ready-to-launch values
        Throws:
        org.eclipse.core.runtime.CoreException - if validation fails
      • getMobileOs

        protected IMobileOs getMobileOs()
        Returns the mobile OS.
        Returns:
        the mobile OS, never null
      • getMobileOsId

        protected abstract String getMobileOsId()
        Returns the mobile OS identifier.
        Returns:
        the mobile OS identifier, never null