roneditor.dialogs
Class RONFileCreationWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by roneditor.dialogs.RONFileCreationWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

public class RONFileCreationWizard
extends org.eclipse.jface.wizard.Wizard
implements org.eclipse.ui.INewWizard

This is a wizard to create a RONEditor file resource. The wizard uses a RONFileCreationPage which creates one file with the extension "ron". If an editor is registered for the same extension, it will open it.

Author:
Tony Modica

Field Summary
private  RONFileCreationPage page
           
private  org.eclipse.jface.viewers.IStructuredSelection selection
           
private  org.eclipse.ui.IWorkbench workbench
           
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
RONFileCreationWizard()
           
 
Method Summary
 void addPages()
          Adding the RONFileCreationPage to the wizard.
 void init(org.eclipse.ui.IWorkbench aWorkbench, org.eclipse.jface.viewers.IStructuredSelection sel)
          We will accept the selection in the workbench to see if we can initialize from it.
 boolean performFinish()
          This method is called when 'Finish' button is pressed in the wizard.
 
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
 

Field Detail

page

private RONFileCreationPage page

selection

private org.eclipse.jface.viewers.IStructuredSelection selection

workbench

private org.eclipse.ui.IWorkbench workbench
Constructor Detail

RONFileCreationWizard

public RONFileCreationWizard()
Method Detail

addPages

public void addPages()
Adding the RONFileCreationPage to the wizard.

Specified by:
addPages in interface org.eclipse.jface.wizard.IWizard
Overrides:
addPages in class org.eclipse.jface.wizard.Wizard

performFinish

public boolean performFinish()
This method is called when 'Finish' button is pressed in the wizard. We will create an operation and run it using wizard as execution context.

Specified by:
performFinish in interface org.eclipse.jface.wizard.IWizard
Specified by:
performFinish in class org.eclipse.jface.wizard.Wizard

init

public void init(org.eclipse.ui.IWorkbench aWorkbench,
                 org.eclipse.jface.viewers.IStructuredSelection sel)
We will accept the selection in the workbench to see if we can initialize from it.

Specified by:
init in interface org.eclipse.ui.IWorkbenchWizard