|
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.junit.launcher.JUnitLaunchShortcut
public class JUnitLaunchShortcut
The launch shortcut to launch JUnit tests.
This class may be instantiated and subclassed.
Constructor Summary | |
---|---|
JUnitLaunchShortcut()
Default constructor. |
Method Summary | |
---|---|
protected org.eclipse.debug.core.ILaunchConfigurationWorkingCopy |
createLaunchConfiguration(IJavaElement element)
Creates a launch configuration working copy for the given element. |
protected String[] |
getAttributeNamesToCompare()
Returns the attribute names of the attributes that are compared when looking for an existing similar launch configuration. |
org.eclipse.core.resources.IResource |
getLaunchableResource(org.eclipse.ui.IEditorPart editor)
|
org.eclipse.core.resources.IResource |
getLaunchableResource(org.eclipse.jface.viewers.ISelection selection)
|
org.eclipse.debug.core.ILaunchConfiguration[] |
getLaunchConfigurations(org.eclipse.ui.IEditorPart editor)
|
org.eclipse.debug.core.ILaunchConfiguration[] |
getLaunchConfigurations(org.eclipse.jface.viewers.ISelection selection)
|
protected String |
getLaunchConfigurationTypeId()
Returns the launch configuration type id of the launch configuration this shortcut will create. |
void |
launch(org.eclipse.ui.IEditorPart editor,
String mode)
|
void |
launch(org.eclipse.jface.viewers.ISelection selection,
String mode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JUnitLaunchShortcut()
Method Detail |
---|
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.ILaunchShortcut
protected String getLaunchConfigurationTypeId()
protected org.eclipse.debug.core.ILaunchConfigurationWorkingCopy createLaunchConfiguration(IJavaElement element) throws org.eclipse.core.runtime.CoreException
getLaunchConfigurationTypeId()
.
The element type can only be of type IJavaProject
, IPackageFragmentRoot
, IPackageFragment
, IType
or IMethod
.
Clients can extend this method (should call super) to configure additional attributes on the launch configuration working copy.
element
- element to launch
org.eclipse.core.runtime.CoreException
- if creation failedprotected String[] getAttributeNamesToCompare()
public org.eclipse.debug.core.ILaunchConfiguration[] getLaunchConfigurations(org.eclipse.jface.viewers.ISelection selection)
getLaunchConfigurations
in interface org.eclipse.debug.ui.ILaunchShortcut2
public org.eclipse.debug.core.ILaunchConfiguration[] getLaunchConfigurations(org.eclipse.ui.IEditorPart editor)
getLaunchConfigurations
in interface org.eclipse.debug.ui.ILaunchShortcut2
public org.eclipse.core.resources.IResource getLaunchableResource(org.eclipse.jface.viewers.ISelection selection)
getLaunchableResource
in interface org.eclipse.debug.ui.ILaunchShortcut2
public org.eclipse.core.resources.IResource getLaunchableResource(org.eclipse.ui.IEditorPart editor)
getLaunchableResource
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 |