Class JavaAppletLaunchShortcut
java.lang.Object
org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchShortcut
org.eclipse.jdt.debug.ui.launchConfigurations.JavaAppletLaunchShortcut
- All Implemented Interfaces:
org.eclipse.debug.ui.ILaunchShortcut
,org.eclipse.debug.ui.ILaunchShortcut2
Launch shortcut for Java applets.
This class may be instantiated or subclassed.
- Since:
- 3.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.debug.core.ILaunchConfiguration
createConfiguration
(IType type) Creates and returns a new configuration based on the specified type.protected IType[]
Finds and returns the types in the given collection of elements that can be launched.protected org.eclipse.debug.core.ILaunchConfigurationType
Returns the type of configuration this shortcut is applicable to.protected String
Returns an error message to use when the editor does not contain a type that can be launched.protected String
Returns an error message to use when the selection does not contain a type that can be launched.protected String
Returns a title for a type selection dialog used to prompt the user when there is more than one type that can be launched.Methods inherited from class org.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchShortcut
chooseConfiguration, chooseType, findLaunchConfiguration, getLaunchableResource, getLaunchableResource, getLaunchConfigurations, getLaunchConfigurations, getShell, launch, launch, launch
-
Constructor Details
-
JavaAppletLaunchShortcut
public JavaAppletLaunchShortcut()
-
-
Method Details
-
createConfiguration
Description copied from class:JavaLaunchShortcut
Creates and returns a new configuration based on the specified type.- Specified by:
createConfiguration
in classJavaLaunchShortcut
- Parameters:
type
- type to create a launch configuration for- Returns:
- launch configuration configured to launch the specified type
-
getConfigurationType
protected org.eclipse.debug.core.ILaunchConfigurationType getConfigurationType()Description copied from class:JavaLaunchShortcut
Returns the type of configuration this shortcut is applicable to.- Specified by:
getConfigurationType
in classJavaLaunchShortcut
- Returns:
- the type of configuration this shortcut is applicable to
-
findTypes
protected IType[] findTypes(Object[] elements, org.eclipse.jface.operation.IRunnableContext context) throws InterruptedException, org.eclipse.core.runtime.CoreException Description copied from class:JavaLaunchShortcut
Finds and returns the types in the given collection of elements that can be launched.- Specified by:
findTypes
in classJavaLaunchShortcut
- Parameters:
elements
- scope to search for types that can be launchedcontext
- progress reporting context- Returns:
- collection of types that can be launched, possibly empty
- Throws:
InterruptedException
- if the search is canceledorg.eclipse.core.runtime.CoreException
- if the search fails
-
getTypeSelectionTitle
Description copied from class:JavaLaunchShortcut
Returns a title for a type selection dialog used to prompt the user when there is more than one type that can be launched.- Specified by:
getTypeSelectionTitle
in classJavaLaunchShortcut
- Returns:
- type selection dialog title
-
getEditorEmptyMessage
Description copied from class:JavaLaunchShortcut
Returns an error message to use when the editor does not contain a type that can be launched.- Specified by:
getEditorEmptyMessage
in classJavaLaunchShortcut
- Returns:
- error message when editor cannot be launched
-
getSelectionEmptyMessage
Description copied from class:JavaLaunchShortcut
Returns an error message to use when the selection does not contain a type that can be launched.- Specified by:
getSelectionEmptyMessage
in classJavaLaunchShortcut
- Returns:
- error message when selection cannot be launched
-