Class NewServerConfigWizard

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

public class NewServerConfigWizard extends Wizard implements INewWizard
Wizard to open or create a Server configuration file.
Author:
Christopher Mindus
  • Constructor Details

    • NewServerConfigWizard

      public NewServerConfigWizard()
      Constructor.
  • Method Details

    • setServerConfigComposite

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

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

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

      public boolean performFinish()
      Finishes the wizard.
      Specified by:
      performFinish in interface IWizard
      Specified by:
      performFinish in class 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.