Class NewJavaProjectWizardPage

    • Constructor Detail

      • NewJavaProjectWizardPage

        public NewJavaProjectWizardPage​(IWorkspaceRoot root,
                                        WizardNewProjectCreationPage mainpage)
        Deprecated.
        Creates a Java project wizard creation page.

        The Java project wizard reads project name and location from the main page.

        Parameters:
        root - the workspace root
        mainpage - the main page of the wizard
    • Method Detail

      • setDefaultOutputFolder

        public void setDefaultOutputFolder​(IPath path)
        Deprecated.
        Sets the default output location to be used for the new Java project. This is the path of the folder (with the project) into which the Java builder will generate binary class files corresponding to the project's Java source files.

        The wizard will create this folder if required.

        The default classpath will be applied when initBuildPaths is called. This is done automatically when the page becomes visible and the project or the default paths have changed.

        Parameters:
        path - the folder to be taken as the default output path
      • setDefaultClassPath

        public void setDefaultClassPath​(IClasspathEntry[] entries,
                                        boolean appendDefaultJRE)
        Deprecated.
        Sets the default classpath to be used for the new Java project.

        The caller of this method is responsible for creating the classpath entries for the IJavaProject that corresponds to the created project. The caller is responsible for creating any new folders that might be mentioned on the classpath.

        The default output location will be applied when initBuildPaths is called. This is done automatically when the page becomes visible and the project or the default paths have changed.

        Parameters:
        entries - the default classpath entries
        appendDefaultJRE - true a variable entry for the default JRE (specified in the preferences) will be added to the classpath.
      • setProjectModified

        public void setProjectModified()
        Deprecated.
        Sets the project state to modified. Doing so will initialize the page the next time it becomes visible.
        Since:
        2.0
      • getProjectHandle

        protected IProject getProjectHandle()
        Deprecated.
        Returns the project handle. Subclasses should override this method if they don't provide a main page or if they provide their own main page implementation.
        Returns:
        the project handle
      • getLocationPath

        protected IPath getLocationPath()
        Deprecated.
        Returns the project location path. Subclasses should override this method if they don't provide a main page or if they provide their own main page implementation.
        Returns:
        the project location path
      • getNewJavaProject

        public IJavaProject getNewJavaProject()
        Deprecated.
        Returns the Java project handle by converting the result of getProjectHandle() into a Java project.
        Returns:
        the Java project handle
        See Also:
        getProjectHandle()
      • createControl

        public void createControl​(Composite parent)
        Deprecated.
      • initBuildPaths

        protected void initBuildPaths()
        Deprecated.
        Forces the initialization of the Java project page. Default classpath or buildpath will be used if set. The initialization should only be performed when the project or default paths have changed. Toggling back and forward the pages without changes should not re-initialize the page, as changes from the user will be overwritten.
        Since:
        2.0
      • setVisible

        public void setVisible​(boolean visible)
        Deprecated.
        Extend this method to set a user defined default classpath or output location. The method initBuildPaths is called when the page becomes visible the first time or the project or the default paths have changed.
        Specified by:
        setVisible in interface IDialogPage
        Overrides:
        setVisible in class NewElementWizardPage
        Parameters:
        visible - if true the page becomes visible; otherwise it becomes invisible
      • getOutputLocation

        public IPath getOutputLocation()
        Deprecated.
        Returns the currently configured output location. Note that the returned path might not be valid.
        Returns:
        the configured output location
        Since:
        2.0
      • getRawClassPath

        public IClasspathEntry[] getRawClassPath()
        Deprecated.
        Returns the currently configured classpath. Note that the classpath might not be valid.
        Returns:
        the configured classpath
        Since:
        2.0
      • getRunnable

        public IRunnableWithProgress getRunnable()
        Deprecated.
        Returns the runnable that will create the Java project. The runnable will create and open the project if needed. The runnable will add the Java nature to the project, and set the project's classpath and output location.

        To create the new java project, execute this runnable

        Returns:
        the runnable