Class AbstractMobileLaunchShortcut
- java.lang.Object
-
- com._1c.g5.v8.dt.debug.ui.launchconfigurations.shortcuts.AbstractLaunchShortcut
-
- com._1c.g5.v8.dt.launching.mobile.ui.launchconfigurations.shortcuts.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.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.debug.ui.launchconfigurations.shortcuts.AbstractLaunchShortcut
applicationManager, processEncodingProvider, resolvableRuntimeInstallationManager, runtimeVersionSupport, v8projectManager
-
-
Constructor Summary
Constructors Constructor Description AbstractMobileLaunchShortcut()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String
getLaunchConfigurationSelectionTitle()
Returns existing launch configuration selection dialog title message.protected IMobileOs
getMobileOs()
Returns the mobile OS.protected abstract String
getMobileOsId()
Returns the mobile OS identifier.protected boolean
isValid(org.eclipse.debug.core.ILaunchConfiguration configuration, String mode)
Validates the given launch configuration.protected boolean
matches(org.eclipse.core.resources.IProject project, IApplication application, org.eclipse.emf.ecore.EObject object, org.eclipse.debug.core.ILaunchConfiguration candidate, boolean forLaunch)
Returns whether the given launch configuration candidate of the shortcut type mathces with the given project for launch purposes.protected void
setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration, org.eclipse.core.resources.IProject project)
Sets default attributes for the provided launch configuration.-
Methods inherited from class com._1c.g5.v8.dt.debug.ui.launchconfigurations.shortcuts.AbstractLaunchShortcut
createLaunchConfiguration, getConfigurationProjects, getLaunchableResource, getLaunchableResource, getLaunchableResource, getLaunchConfiguration, getLaunchConfigurations, getLaunchConfigurations, getLaunchConfigurations, getLaunchConfigurationType, getLaunchConfigurationTypeId, getNameSuffix, isApplicationValid, launch, launch, launch, prepareConfiguration, shouldSave, showNoProjectsInfo
-
-
-
-
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 classAbstractLaunchShortcut
- Parameters:
configuration
- the launch configuration, cannot benull
project
- the launcning project, cannot benull
- Throws:
org.eclipse.core.runtime.CoreException
- if request fails
-
getLaunchConfigurationSelectionTitle
protected String getLaunchConfigurationSelectionTitle()
Description copied from class:AbstractLaunchShortcut
Returns existing launch configuration selection dialog title message.- Specified by:
getLaunchConfigurationSelectionTitle
in classAbstractLaunchShortcut
- Returns:
- existing launch configuration selection dialog title message, never
null
-
matches
protected boolean matches(org.eclipse.core.resources.IProject project, IApplication application, 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 classAbstractLaunchShortcut
- Parameters:
project
- the project to get candidates for, cannot benull
application
- the launching application ornull
if noneobject
- the object to find candidates for ornull
if nonecandidate
- the candidate launch configuration, cannot benull
forLaunch
- iftrue
then launch configuration will be filetered for launch purposes, iffalse
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 classAbstractLaunchShortcut
- Parameters:
configuration
- launch configuration to validate, cannot benull
mode
- one of the launch modes defined by the launch manager, cannot benull
- 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
-
-