|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.wizard.Wizard
ch.sahits.phpclassgenerator.wizards.PhpClassWizard
public class PhpClassWizard
This is a sample new wizard. Its role is to create a new file resource in the provided container. If the container resource (a folder or a project) is selected in the workspace when the wizard is opened, it will accept it as the target container. The wizard creates one file with the extension "php". If a sample multi-page editor (also available as a template) is registered for the same extension, it will be able to open it. $Revision: 1.2 $ changed by $Author: hotzst $ at $Date: 2007/10/27 18:03:08 $
| Field Summary | |
|---|---|
private CodeGenerator |
cg
|
private PhpClassWizardDBPage |
dbPage
|
private PhpClassWizardPage |
page
|
private org.eclipse.jface.viewers.ISelection |
selection
|
| Fields inherited from class org.eclipse.jface.wizard.Wizard |
|---|
DEFAULT_IMAGE |
| Constructor Summary | |
|---|---|
PhpClassWizard()
Constructor for PhpClassWizard. |
|
| Method Summary | |
|---|---|
void |
addPages()
Adding the page to the wizard. |
private void |
doFinish(java.lang.String containerName,
java.lang.String fileName,
java.lang.String templatePath,
java.lang.String product,
java.lang.String host,
java.lang.String db,
java.lang.String user,
java.lang.String passwd,
java.lang.String tableName,
org.eclipse.core.runtime.IProgressMonitor monitor)
The worker method. |
private java.lang.String |
exception2String(java.lang.Exception e)
|
void |
init(org.eclipse.ui.IWorkbench workbench,
org.eclipse.jface.viewers.IStructuredSelection selection)
We will accept the selection in the workbench to see if we can initialize from it. |
private java.io.InputStream |
openContentStream()
We will initialize file contents with a sample text. |
boolean |
performFinish()
This method is called when 'Finish' button is pressed in the wizard. |
private void |
throwCoreException(java.lang.String message)
|
| 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 |
|---|
private PhpClassWizardPage page
private PhpClassWizardDBPage dbPage
private org.eclipse.jface.viewers.ISelection selection
private CodeGenerator cg
| Constructor Detail |
|---|
public PhpClassWizard()
| Method Detail |
|---|
public void addPages()
addPages in interface org.eclipse.jface.wizard.IWizardaddPages in class org.eclipse.jface.wizard.Wizardpublic boolean performFinish()
performFinish in interface org.eclipse.jface.wizard.IWizardperformFinish in class org.eclipse.jface.wizard.Wizard
private void doFinish(java.lang.String containerName,
java.lang.String fileName,
java.lang.String templatePath,
java.lang.String product,
java.lang.String host,
java.lang.String db,
java.lang.String user,
java.lang.String passwd,
java.lang.String tableName,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
tableName - passwd - user - db - host - product - templatePath -
org.eclipse.core.runtime.CoreExceptionprivate java.io.InputStream openContentStream()
private void throwCoreException(java.lang.String message)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void init(org.eclipse.ui.IWorkbench workbench,
org.eclipse.jface.viewers.IStructuredSelection selection)
init in interface org.eclipse.ui.IWorkbenchWizardIWorkbenchWizard.init(IWorkbench, IStructuredSelection)private java.lang.String exception2String(java.lang.Exception e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||