Class NewServerConfigWizard

java.lang.Object
org.eclipse.jface.wizard.Wizard
com.iizigo.server.NewServerConfigWizard
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider, org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

public class NewServerConfigWizard extends org.eclipse.jface.wizard.Wizard implements org.eclipse.ui.INewWizard
Wizard to open or create a Server configuration file.
Author:
Christopher Mindus
  • Field Summary

    Fields inherited from class org.eclipse.jface.wizard.Wizard

    DEFAULT_IMAGE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Adds required pages.
    static void
    Creates a default instance of the Server settings.
    Gets the file name created after wizard completed successfully.
    void
    init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
    Initializes the wizard with the selection.
    boolean
    Finishes the wizard.
    void
    Sets the view to update.

    Methods inherited from class org.eclipse.jface.wizard.Wizard

    addPage, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.jface.wizard.IWizard

    canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
  • Constructor Details

    • NewServerConfigWizard

      public NewServerConfigWizard()
      Constructor.
  • Method Details

    • setServerConfigComposite

      public void setServerConfigComposite(ServerConfigComposite editor)
      Sets the view to update.
    • init

      public void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
      Initializes the wizard with the selection.
      Specified by:
      init in interface org.eclipse.ui.IWorkbenchWizard
    • addPages

      public void addPages()
      Adds required pages.
      Specified by:
      addPages in interface org.eclipse.jface.wizard.IWizard
      Overrides:
      addPages in class org.eclipse.jface.wizard.Wizard
    • performFinish

      public boolean performFinish()
      Finishes the wizard.
      Specified by:
      performFinish in interface org.eclipse.jface.wizard.IWizard
      Specified by:
      performFinish in class org.eclipse.jface.wizard.Wizard
    • getFileName

      public String getFileName()
      Gets the file name created after wizard completed successfully.
    • createDefault

      public static void createDefault(File file) throws IOException
      Creates a default instance of the Server settings.
      Parameters:
      file - The file name to create.
      Throws:
      IOException - For I/O errors.