| org.eclipse.ui.examples.readmetool.ReadmeCreationPage
ReadmeCreationPage | public class ReadmeCreationPage extends WizardNewFileCreationPage (Code) | | This class is the only page of the Readme file resource creation wizard.
It subclasses the standard file resource creation page class,
and consequently inherits the file resource creation functionality.
This page provides users with the choice of creating sample headings for
sections and subsections. Additionally, the option is presented to open
the file immediately for editing after creation.
|
Constructor Summary | |
public | ReadmeCreationPage(IWorkbench workbench, IStructuredSelection selection) Creates the page for the readme creation wizard. |
Method Summary | |
public void | createControl(Composite parent) (non-Javadoc)
Method declared on IDialogPage. | public boolean | finish() Creates a new file resource as requested by the user. | protected InputStream | getInitialContents() | protected String | getNewFileLabel() (non-Javadoc)
Method declared on WizardNewFileCreationPage. | public void | handleEvent(Event e) (non-Javadoc)
Method declared on WizardNewFileCreationPage. |
ReadmeCreationPage | public ReadmeCreationPage(IWorkbench workbench, IStructuredSelection selection)(Code) | | Creates the page for the readme creation wizard.
Parameters: workbench - the workbench on which the page should be created Parameters: selection - the current selection |
createControl | public void createControl(Composite parent)(Code) | | (non-Javadoc)
Method declared on IDialogPage.
|
finish | public boolean finish()(Code) | | Creates a new file resource as requested by the user. If everything
is OK then answer true. If not, false will cause the dialog
to stay open.
whether creation was successful See Also: ReadmeCreationWizard.performFinish |
getInitialContents | protected InputStream getInitialContents()(Code) | | The ReadmeCreationPage implementation of this
WizardNewFileCreationPage method
generates sample headings for sections and subsections in the
newly-created Readme file according to the selections of self's
checkbox widgets
|
getNewFileLabel | protected String getNewFileLabel()(Code) | | (non-Javadoc)
Method declared on WizardNewFileCreationPage.
|
handleEvent | public void handleEvent(Event e)(Code) | | (non-Javadoc)
Method declared on WizardNewFileCreationPage.
|
|
|