Class JavaApplicationLaunchShortcut

    • Constructor Detail

      • JavaApplicationLaunchShortcut

        public JavaApplicationLaunchShortcut()
    • Method Detail

      • getJavaElements

        protected IJavaElement[] getJavaElements​(Object[] objects)
        Returns the Java elements corresponding to the given objects. Members are translated to corresponding declaring types where possible.
        Parameters:
        objects - selected objects
        Returns:
        corresponding Java elements
        Since:
        3.5
      • createConfiguration

        protected ILaunchConfiguration createConfiguration​(IType type)
        Description copied from class: JavaLaunchShortcut
        Creates and returns a new configuration based on the specified type.
        Specified by:
        createConfiguration in class JavaLaunchShortcut
        Parameters:
        type - type to create a launch configuration for
        Returns:
        launch configuration configured to launch the specified type
      • getTypeSelectionTitle

        protected String getTypeSelectionTitle()
        Description copied from class: JavaLaunchShortcut
        Returns a title for a type selection dialog used to prompt the user when there is more than one type that can be launched.
        Specified by:
        getTypeSelectionTitle in class JavaLaunchShortcut
        Returns:
        type selection dialog title
      • getEditorEmptyMessage

        protected String getEditorEmptyMessage()
        Description copied from class: JavaLaunchShortcut
        Returns an error message to use when the editor does not contain a type that can be launched.
        Specified by:
        getEditorEmptyMessage in class JavaLaunchShortcut
        Returns:
        error message when editor cannot be launched
      • getSelectionEmptyMessage

        protected String getSelectionEmptyMessage()
        Description copied from class: JavaLaunchShortcut
        Returns an error message to use when the selection does not contain a type that can be launched.
        Specified by:
        getSelectionEmptyMessage in class JavaLaunchShortcut
        Returns:
        error message when selection cannot be launched