Class LaunchBarLaunchConfigDialog
- java.lang.Object
-
- org.eclipse.jface.window.Window
-
- org.eclipse.jface.dialogs.Dialog
-
- org.eclipse.jface.dialogs.TrayDialog
-
- org.eclipse.jface.dialogs.TitleAreaDialog
-
- org.eclipse.launchbar.ui.internal.LaunchBarLaunchConfigDialog
-
- All Implemented Interfaces:
org.eclipse.debug.ui.ILaunchConfigurationDialog,org.eclipse.jface.operation.IRunnableContext,org.eclipse.jface.window.IShellProvider,ILaunchBarLaunchConfigDialog
public class LaunchBarLaunchConfigDialog extends org.eclipse.jface.dialogs.TitleAreaDialog implements ILaunchBarLaunchConfigDialog
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.debug.ui.ILaunchConfigurationTabGroupbuildTabGroupprivate ILaunchDescriptordescriptorprivate org.eclipse.debug.ui.ILaunchConfigurationTabGroupgroupprivate booleaninitingprivate org.eclipse.swt.custom.CTabItemlastSelectionprivate org.eclipse.debug.core.ILaunchModemodeprivate org.eclipse.swt.widgets.TextnameTextprivate java.lang.StringoriginalNameprivate org.eclipse.jface.wizard.ProgressMonitorPartpmPartprivate org.eclipse.swt.custom.CTabFoldertabFolderprivate ILaunchTargettargetprivate org.eclipse.debug.core.ILaunchConfigurationWorkingCopyworkingCopy-
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
-
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
-
-
Constructor Summary
Constructors Constructor Description LaunchBarLaunchConfigDialog(org.eclipse.swt.widgets.Shell shell, org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy, ILaunchDescriptor descriptor, org.eclipse.debug.core.ILaunchMode mode, ILaunchTarget target, org.eclipse.debug.ui.ILaunchConfigurationTabGroup buildTabGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.swt.widgets.ControlcreateDialogArea(org.eclipse.swt.widgets.Composite parent)java.lang.StringgenerateName(java.lang.String name)org.eclipse.debug.ui.ILaunchConfigurationTabgetActiveTab()protected intgetDialogBoundsStrategy()ILaunchTargetgetLaunchTarget()The target associated with the edit session, usually the active target when the session was started.java.lang.StringgetMode()org.eclipse.debug.ui.ILaunchConfigurationTab[]getTabs()private java.lang.StringgetTabsErrorMessage()private java.lang.StringgetTabsMessage()private org.eclipse.swt.custom.CTabIteminstallTab(org.eclipse.debug.ui.ILaunchConfigurationTab tab, org.eclipse.swt.custom.CTabFolder tabFolder)protected voidokPressed()voidrun(boolean fork, boolean cancelable, org.eclipse.jface.operation.IRunnableWithProgress runnable)voidsetActiveTab(int index)voidsetActiveTab(org.eclipse.debug.ui.ILaunchConfigurationTab tab)voidsetName(java.lang.String name)voidupdateButtons()voidupdateMessage()-
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
createContents, getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
-
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
-
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
-
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
-
-
-
Field Detail
-
workingCopy
private final org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy
-
descriptor
private final ILaunchDescriptor descriptor
-
mode
private final org.eclipse.debug.core.ILaunchMode mode
-
target
private final ILaunchTarget target
-
buildTabGroup
private final org.eclipse.debug.ui.ILaunchConfigurationTabGroup buildTabGroup
-
originalName
private final java.lang.String originalName
-
group
private org.eclipse.debug.ui.ILaunchConfigurationTabGroup group
-
nameText
private org.eclipse.swt.widgets.Text nameText
-
tabFolder
private org.eclipse.swt.custom.CTabFolder tabFolder
-
lastSelection
private org.eclipse.swt.custom.CTabItem lastSelection
-
pmPart
private org.eclipse.jface.wizard.ProgressMonitorPart pmPart
-
initing
private boolean initing
-
-
Constructor Detail
-
LaunchBarLaunchConfigDialog
public LaunchBarLaunchConfigDialog(org.eclipse.swt.widgets.Shell shell, org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy, ILaunchDescriptor descriptor, org.eclipse.debug.core.ILaunchMode mode, ILaunchTarget target, org.eclipse.debug.ui.ILaunchConfigurationTabGroup buildTabGroup)
-
-
Method Detail
-
getDialogBoundsStrategy
protected int getDialogBoundsStrategy()
- Overrides:
getDialogBoundsStrategyin classorg.eclipse.jface.dialogs.Dialog
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createDialogAreain classorg.eclipse.jface.dialogs.TitleAreaDialog
-
installTab
private org.eclipse.swt.custom.CTabItem installTab(org.eclipse.debug.ui.ILaunchConfigurationTab tab, org.eclipse.swt.custom.CTabFolder tabFolder)
-
okPressed
protected void okPressed()
- Overrides:
okPressedin classorg.eclipse.jface.dialogs.Dialog
-
run
public void run(boolean fork, boolean cancelable, org.eclipse.jface.operation.IRunnableWithProgress runnable) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException- Specified by:
runin interfaceorg.eclipse.jface.operation.IRunnableContext- Throws:
java.lang.reflect.InvocationTargetExceptionjava.lang.InterruptedException
-
updateButtons
public void updateButtons()
- Specified by:
updateButtonsin interfaceorg.eclipse.debug.ui.ILaunchConfigurationDialog
-
getTabsErrorMessage
private java.lang.String getTabsErrorMessage()
-
getTabsMessage
private java.lang.String getTabsMessage()
-
updateMessage
public void updateMessage()
- Specified by:
updateMessagein interfaceorg.eclipse.debug.ui.ILaunchConfigurationDialog
-
setName
public void setName(java.lang.String name)
- Specified by:
setNamein interfaceorg.eclipse.debug.ui.ILaunchConfigurationDialog
-
generateName
public java.lang.String generateName(java.lang.String name)
- Specified by:
generateNamein interfaceorg.eclipse.debug.ui.ILaunchConfigurationDialog
-
getTabs
public org.eclipse.debug.ui.ILaunchConfigurationTab[] getTabs()
- Specified by:
getTabsin interfaceorg.eclipse.debug.ui.ILaunchConfigurationDialog
-
getActiveTab
public org.eclipse.debug.ui.ILaunchConfigurationTab getActiveTab()
- Specified by:
getActiveTabin interfaceorg.eclipse.debug.ui.ILaunchConfigurationDialog
-
getMode
public java.lang.String getMode()
- Specified by:
getModein interfaceorg.eclipse.debug.ui.ILaunchConfigurationDialog
-
getLaunchTarget
public ILaunchTarget getLaunchTarget()
Description copied from interface:ILaunchBarLaunchConfigDialogThe target associated with the edit session, usually the active target when the session was started.- Specified by:
getLaunchTargetin interfaceILaunchBarLaunchConfigDialog- Returns:
- launch target
-
setActiveTab
public void setActiveTab(org.eclipse.debug.ui.ILaunchConfigurationTab tab)
- Specified by:
setActiveTabin interfaceorg.eclipse.debug.ui.ILaunchConfigurationDialog
-
setActiveTab
public void setActiveTab(int index)
- Specified by:
setActiveTabin interfaceorg.eclipse.debug.ui.ILaunchConfigurationDialog
-
-