|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
net.bpelunit.framework.client.eclipse.launch.BPELLaunchMainTab
public class BPELLaunchMainTab
The main tab for the BPELUnit test Suite Runner. Most of this code has been blatantly ripped out of JavaMainTab (JDT).
| Constructor Summary | |
|---|---|
BPELLaunchMainTab()
|
|
| Method Summary | |
|---|---|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
|
protected static org.eclipse.swt.graphics.Image |
createImage(String path)
|
protected void |
createProjectSection(org.eclipse.swt.widgets.Composite parent)
|
protected void |
createSuiteSection(org.eclipse.swt.widgets.Composite parent,
String text,
org.eclipse.swt.widgets.Button[] buttons)
Creates the widgets for specifying a main type. |
static org.eclipse.ui.IWorkbenchPage |
getActivePage()
|
static org.eclipse.ui.IWorkbenchWindow |
getActiveWorkbenchWindow()
Returns the active workbench window |
protected org.eclipse.core.resources.IFile |
getContext()
Returns the current file context in the active workbench page or null if none. |
org.eclipse.swt.graphics.Image |
getImage()
|
String |
getName()
|
protected org.eclipse.core.resources.IProject |
getProject()
Return the IProject corresponding to the project name in the project name text field, or null if the text does not match a project name. |
protected org.eclipse.core.resources.IWorkspaceRoot |
getWorkspaceRoot()
Convenience method to get the workspace root. |
protected void |
handleProjectButtonSelected()
|
protected void |
handleSearchButtonSelected()
Show a dialog that lists all main types |
void |
initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
|
protected void |
initializeProject(org.eclipse.core.resources.IFile file,
org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
Sets the project attribute on the given working copy to the project associated with the given file. |
protected void |
initializeSuiteAndName(org.eclipse.core.resources.IFile file,
org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
|
boolean |
isValid(org.eclipse.debug.core.ILaunchConfiguration config)
|
protected void |
mapResources(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
Maps the config to associated IProject |
void |
performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
|
void |
setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
|
protected void |
updateSuiteFromConfig(org.eclipse.debug.core.ILaunchConfiguration config)
Loads the main type from the launch configuration's preference store |
| Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab |
|---|
activated, canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createUpdateJob, createVerticalSpacer, deactivated, dispose, getControl, getErrorMessage, getHelpContextId, getId, getLaunchConfigurationDialog, getLaunchManager, getMessage, getShell, getUpdateJobDelay, isDirty, launched, scheduleUpdateJob, setAttribute, setControl, setDirty, setErrorMessage, setHelpContextId, setLaunchConfigurationDialog, setMessage, updateLaunchConfigurationDialog |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BPELLaunchMainTab()
| Method Detail |
|---|
public void createControl(org.eclipse.swt.widgets.Composite parent)
public String getName()
public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
public void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
public void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
protected void createProjectSection(org.eclipse.swt.widgets.Composite parent)
protected void handleProjectButtonSelected()
protected org.eclipse.core.resources.IProject getProject()
protected org.eclipse.core.resources.IWorkspaceRoot getWorkspaceRoot()
protected void createSuiteSection(org.eclipse.swt.widgets.Composite parent,
String text,
org.eclipse.swt.widgets.Button[] buttons)
parent - the parent compositeprotected void handleSearchButtonSelected()
protected void updateSuiteFromConfig(org.eclipse.debug.core.ILaunchConfiguration config)
config - the config to load the main type fromprotected void mapResources(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
config - protected org.eclipse.core.resources.IFile getContext()
null if none.
nullpublic static org.eclipse.ui.IWorkbenchPage getActivePage()
public static org.eclipse.ui.IWorkbenchWindow getActiveWorkbenchWindow()
protected void initializeProject(org.eclipse.core.resources.IFile file,
org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
file - File this tab is associated withconfig - configuration on which to set the project attribute
protected void initializeSuiteAndName(org.eclipse.core.resources.IFile file,
org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
public org.eclipse.swt.graphics.Image getImage()
getImage in interface org.eclipse.debug.ui.ILaunchConfigurationTabgetImage in class org.eclipse.debug.ui.AbstractLaunchConfigurationTabprotected static org.eclipse.swt.graphics.Image createImage(String path)
public boolean isValid(org.eclipse.debug.core.ILaunchConfiguration config)
isValid in interface org.eclipse.debug.ui.ILaunchConfigurationTabisValid in class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||