Class JavaMainTab

  • All Implemented Interfaces:
    IPrototypeAttributesLabelProvider, ILaunchConfigurationTab, ILaunchConfigurationTab2

    public class JavaMainTab
    extends org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
    A launch configuration tab that displays and edits project and main type name launch configuration attributes.

    This class may be instantiated.

    Since:
    3.2
    Restriction:
    This class is not intended to be subclassed by clients.
    • Field Detail

      • ATTR_INCLUDE_EXTERNAL_JARS

        public static final String ATTR_INCLUDE_EXTERNAL_JARS
        Boolean launch configuration attribute indicating that external jars (on the runtime classpath) should be searched when looking for a main type. Default value is false.
        Since:
        2.1
      • ATTR_CONSIDER_INHERITED_MAIN

        public static final String ATTR_CONSIDER_INHERITED_MAIN
        Boolean launch configuration attribute indicating whether types inheriting a main method should be considered when searching for a main type. Default value is false.
        Since:
        3.0
    • Constructor Detail

      • JavaMainTab

        public JavaMainTab()
    • Method Detail

      • createControl

        public void createControl​(Composite parent)
      • createMainTypeExtensions

        protected void createMainTypeExtensions​(Composite parent)
        Description copied from class: org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
        This method allows the group for main type to be extended with custom controls. All control added via this method come after the main type text editor and search button in the order they are added to the parent composite
        Overrides:
        createMainTypeExtensions in class org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
        Parameters:
        parent - the parent to add to
        See Also:
        SharedJavaMainTab.createMainTypeExtensions(org.eclipse.swt.widgets.Composite)
      • getName

        public String getName()
      • handleSearchButtonSelected

        protected void handleSearchButtonSelected()
        Show a dialog that lists all main types
        Specified by:
        handleSearchButtonSelected in class org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab
      • initializeAttributes

        protected void initializeAttributes()
        Overrides:
        initializeAttributes in class org.eclipse.jdt.internal.debug.ui.launcher.SharedJavaMainTab