Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.jface.window.Window

        org.eclipse.jface.window.Window.IExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.debug.ui.ILaunchConfigurationTabGroup buildTabGroup  
      private ILaunchDescriptor descriptor  
      private org.eclipse.debug.ui.ILaunchConfigurationTabGroup group  
      private boolean initing  
      private org.eclipse.swt.custom.CTabItem lastSelection  
      private org.eclipse.debug.core.ILaunchMode mode  
      private org.eclipse.swt.widgets.Text nameText  
      private java.lang.String originalName  
      private org.eclipse.jface.wizard.ProgressMonitorPart pmPart  
      private org.eclipse.swt.custom.CTabFolder tabFolder  
      private ILaunchTarget target  
      private org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy  
      • 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
      • Fields inherited from class org.eclipse.jface.window.Window

        CANCEL, OK, resizeHasOccurred
      • Fields inherited from interface org.eclipse.debug.ui.ILaunchConfigurationDialog

        LAUNCHED_BEFORE_OPENING
    • 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.Control createDialogArea​(org.eclipse.swt.widgets.Composite parent)  
      java.lang.String generateName​(java.lang.String name)  
      org.eclipse.debug.ui.ILaunchConfigurationTab getActiveTab()  
      protected int getDialogBoundsStrategy()  
      ILaunchTarget getLaunchTarget()
      The target associated with the edit session, usually the active target when the session was started.
      java.lang.String getMode()  
      org.eclipse.debug.ui.ILaunchConfigurationTab[] getTabs()  
      private java.lang.String getTabsErrorMessage()  
      private java.lang.String getTabsMessage()  
      private org.eclipse.swt.custom.CTabItem installTab​(org.eclipse.debug.ui.ILaunchConfigurationTab tab, org.eclipse.swt.custom.CTabFolder tabFolder)  
      protected void okPressed()  
      void run​(boolean fork, boolean cancelable, org.eclipse.jface.operation.IRunnableWithProgress runnable)  
      void setActiveTab​(int index)  
      void setActiveTab​(org.eclipse.debug.ui.ILaunchConfigurationTab tab)  
      void setName​(java.lang.String name)  
      void updateButtons()  
      void updateMessage()  
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • workingCopy

        private final org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy
      • mode

        private final org.eclipse.debug.core.ILaunchMode mode
      • 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:
        getDialogBoundsStrategy in class org.eclipse.jface.dialogs.Dialog
      • createDialogArea

        protected org.eclipse.swt.widgets.Control createDialogArea​(org.eclipse.swt.widgets.Composite parent)
        Overrides:
        createDialogArea in class org.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:
        okPressed in class org.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:
        run in interface org.eclipse.jface.operation.IRunnableContext
        Throws:
        java.lang.reflect.InvocationTargetException
        java.lang.InterruptedException
      • updateButtons

        public void updateButtons()
        Specified by:
        updateButtons in interface org.eclipse.debug.ui.ILaunchConfigurationDialog
      • getTabsErrorMessage

        private java.lang.String getTabsErrorMessage()
      • getTabsMessage

        private java.lang.String getTabsMessage()
      • updateMessage

        public void updateMessage()
        Specified by:
        updateMessage in interface org.eclipse.debug.ui.ILaunchConfigurationDialog
      • setName

        public void setName​(java.lang.String name)
        Specified by:
        setName in interface org.eclipse.debug.ui.ILaunchConfigurationDialog
      • generateName

        public java.lang.String generateName​(java.lang.String name)
        Specified by:
        generateName in interface org.eclipse.debug.ui.ILaunchConfigurationDialog
      • getTabs

        public org.eclipse.debug.ui.ILaunchConfigurationTab[] getTabs()
        Specified by:
        getTabs in interface org.eclipse.debug.ui.ILaunchConfigurationDialog
      • getActiveTab

        public org.eclipse.debug.ui.ILaunchConfigurationTab getActiveTab()
        Specified by:
        getActiveTab in interface org.eclipse.debug.ui.ILaunchConfigurationDialog
      • getMode

        public java.lang.String getMode()
        Specified by:
        getMode in interface org.eclipse.debug.ui.ILaunchConfigurationDialog
      • setActiveTab

        public void setActiveTab​(org.eclipse.debug.ui.ILaunchConfigurationTab tab)
        Specified by:
        setActiveTab in interface org.eclipse.debug.ui.ILaunchConfigurationDialog
      • setActiveTab

        public void setActiveTab​(int index)
        Specified by:
        setActiveTab in interface org.eclipse.debug.ui.ILaunchConfigurationDialog