|
Eclipse JDT Release 3.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jdt.debug.ui.launchConfigurations.JavaLaunchShortcut
public abstract class JavaLaunchShortcut
Common behavior for Java launch shortcuts
This class may be subclassed.
| Constructor Summary | |
|---|---|
JavaLaunchShortcut()
|
|
| Method Summary | |
|---|---|
protected org.eclipse.debug.core.ILaunchConfiguration |
chooseConfiguration(List configList)
Returns a configuration from the given collection of configurations that should be launched, or null to cancel. |
protected IType |
chooseType(IType[] types,
String title)
Prompts the user to select a type from the given types. |
protected abstract org.eclipse.debug.core.ILaunchConfiguration |
createConfiguration(IType type)
Creates and returns a new configuration based on the specified type. |
protected org.eclipse.debug.core.ILaunchConfiguration |
findLaunchConfiguration(IType type,
org.eclipse.debug.core.ILaunchConfigurationType configType)
Finds and returns an existing configuration to re-launch for the given type, or null if there is no existing configuration. |
protected abstract IType[] |
findTypes(Object[] elements,
org.eclipse.jface.operation.IRunnableContext context)
Finds and returns the types in the given collection of elements that can be launched. |
protected abstract org.eclipse.debug.core.ILaunchConfigurationType |
getConfigurationType()
Returns the type of configuration this shortcut is applicable to. |
protected abstract String |
getEditorEmptyMessage()
Returns an error message to use when the editor does not contain a type that can be launched. |
org.eclipse.core.resources.IResource |
getLaunchableResource(org.eclipse.ui.IEditorPart editorpart)
|
org.eclipse.core.resources.IResource |
getLaunchableResource(org.eclipse.jface.viewers.ISelection selection)
|
org.eclipse.debug.core.ILaunchConfiguration[] |
getLaunchConfigurations(org.eclipse.ui.IEditorPart editorpart)
|
org.eclipse.debug.core.ILaunchConfiguration[] |
getLaunchConfigurations(org.eclipse.jface.viewers.ISelection selection)
|
protected abstract String |
getSelectionEmptyMessage()
Returns an error message to use when the selection does not contain a type that can be launched. |
protected org.eclipse.swt.widgets.Shell |
getShell()
Convenience method to return the active workbench window shell. |
protected abstract String |
getTypeSelectionTitle()
Returns a title for a type selection dialog used to prompt the user when there is more than one type that can be launched. |
void |
launch(org.eclipse.ui.IEditorPart editor,
String mode)
|
void |
launch(org.eclipse.jface.viewers.ISelection selection,
String mode)
|
protected void |
launch(IType type,
String mode)
Launches the given type in the specified mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaLaunchShortcut()
| Method Detail |
|---|
protected abstract org.eclipse.debug.core.ILaunchConfigurationType getConfigurationType()
protected abstract org.eclipse.debug.core.ILaunchConfiguration createConfiguration(IType type)
type - type to create a launch configuration for
protected abstract IType[] findTypes(Object[] elements,
org.eclipse.jface.operation.IRunnableContext context)
throws InterruptedException,
org.eclipse.core.runtime.CoreException
elements - scope to search for types that can be launchedcontext - progress reporting context
InterruptedException - if the search is canceled
org.eclipse.core.runtime.CoreException - if the search failsprotected abstract String getTypeSelectionTitle()
protected abstract String getEditorEmptyMessage()
protected abstract String getSelectionEmptyMessage()
protected IType chooseType(IType[] types,
String title)
types - the types to choose fromtitle - the selection dialog title
null if none.
protected void launch(IType type,
String mode)
type - type to launchmode - launch mode
protected org.eclipse.debug.core.ILaunchConfiguration findLaunchConfiguration(IType type,
org.eclipse.debug.core.ILaunchConfigurationType configType)
null if there is no existing configuration.
null if noneprotected org.eclipse.debug.core.ILaunchConfiguration chooseConfiguration(List configList)
null to cancel. Default implementation opens a selection dialog that allows
the user to choose one of the specified launch configurations. Returns the chosen configuration,
or null if the user cancels.
configList - list of configurations to choose from
null to cancelprotected org.eclipse.swt.widgets.Shell getShell()
public void launch(org.eclipse.ui.IEditorPart editor,
String mode)
launch in interface org.eclipse.debug.ui.ILaunchShortcut
public void launch(org.eclipse.jface.viewers.ISelection selection,
String mode)
launch in interface org.eclipse.debug.ui.ILaunchShortcutpublic org.eclipse.core.resources.IResource getLaunchableResource(org.eclipse.ui.IEditorPart editorpart)
getLaunchableResource in interface org.eclipse.debug.ui.ILaunchShortcut2public org.eclipse.core.resources.IResource getLaunchableResource(org.eclipse.jface.viewers.ISelection selection)
getLaunchableResource in interface org.eclipse.debug.ui.ILaunchShortcut2public org.eclipse.debug.core.ILaunchConfiguration[] getLaunchConfigurations(org.eclipse.ui.IEditorPart editorpart)
getLaunchConfigurations in interface org.eclipse.debug.ui.ILaunchShortcut2public org.eclipse.debug.core.ILaunchConfiguration[] getLaunchConfigurations(org.eclipse.jface.viewers.ISelection selection)
getLaunchConfigurations in interface org.eclipse.debug.ui.ILaunchShortcut2
|
Eclipse JDT Release 3.6 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2010 IBM Corporation and others. All rights reserved.