Class NewModuleInfoWizardPage

java.lang.Object
org.eclipse.jface.dialogs.DialogPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class NewModuleInfoWizardPage extends NewTypeWizardPage
Wizard page to create a new module-info file.

Note: This class is not intended to be subclassed, but clients can instantiate.

Since:
3.14
Restriction:
This class is not intended to be subclassed by clients.
  • Constructor Details

    • NewModuleInfoWizardPage

      public NewModuleInfoWizardPage()
  • Method Details

    • init

      public void init(IJavaProject project)
      The wizard owning this page is responsible for calling this method with the current selection's project. The project is used to initialize the fields of the wizard page.
      Parameters:
      project - used to initialize the fields
    • createControl

      public void createControl(org.eclipse.swt.widgets.Composite parent)
    • setVisible

      public void setVisible(boolean visible)
      Specified by:
      setVisible in interface org.eclipse.jface.dialogs.IDialogPage
      Overrides:
      setVisible in class NewElementWizardPage
    • setFocus

      protected void setFocus()
      Sets the focus to the module name field.
      Overrides:
      setFocus in class NewTypeWizardPage
    • getMaxFieldWidth

      protected int getMaxFieldWidth()
      Returns the recommended maximum width for text fields (in pixels). This method requires that createContent has been called before this method is call.
      Overrides:
      getMaxFieldWidth in class NewContainerWizardPage
      Returns:
      the recommended maximum width for text fields.
    • getModuleNameText

      public String getModuleNameText()
      Returns the content of the module name field.
      Returns:
      the content of the module name field
    • getProject

      public IJavaProject getProject()
    • getModuleNameStatus

      public org.eclipse.core.runtime.IStatus getModuleNameStatus()
    • getJavaProject

      public IJavaProject getJavaProject()
      Description copied from class: NewContainerWizardPage
      Returns the Java project of the currently selected package fragment root or null if no package fragment root is configured.
      Overrides:
      getJavaProject in class NewContainerWizardPage
      Returns:
      The current Java project or null.