|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.wizard.Wizard com.alveole.studio.web.wizard.ImportStruts2FileWizard
public class ImportStruts2FileWizard
This class is a wizard that imports Struts2 files to ASWP files.
Field Summary |
---|
Fields inherited from class org.eclipse.jface.wizard.Wizard |
---|
DEFAULT_IMAGE |
Constructor Summary | |
---|---|
ImportStruts2FileWizard()
|
Method Summary | |
---|---|
void |
addPages()
Constructs the single page wizard. |
boolean |
canFinish()
Check if wizard can finish: simply check if selected source file exists and if target file path is valid. |
void |
init(org.eclipse.ui.IWorkbench workbench,
org.eclipse.jface.viewers.IStructuredSelection selection)
Init wizard. |
protected org.w3c.dom.Document |
loadStrutsFile(javax.xml.parsers.DocumentBuilderFactory factory,
org.eclipse.core.resources.IFile file)
Loads a struts2 file and merge its includes. |
protected void |
mergeDoc(org.w3c.dom.Element source,
org.w3c.dom.Element target)
Takes contents of "source" and copies it to "target". |
boolean |
performFinish()
Loads struts file and apply xslt transform to produce target file. |
Methods inherited from class org.eclipse.jface.wizard.Wizard |
---|
addPage, 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 |
---|
createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer |
Constructor Detail |
---|
public ImportStruts2FileWizard()
Method Detail |
---|
public void addPages()
addPages
in interface org.eclipse.jface.wizard.IWizard
addPages
in class org.eclipse.jface.wizard.Wizard
public boolean canFinish()
canFinish
in interface org.eclipse.jface.wizard.IWizard
canFinish
in class org.eclipse.jface.wizard.Wizard
public void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
init
in interface org.eclipse.ui.IWorkbenchWizard
protected void mergeDoc(org.w3c.dom.Element source, org.w3c.dom.Element target)
source
- target
- protected org.w3c.dom.Document loadStrutsFile(javax.xml.parsers.DocumentBuilderFactory factory, org.eclipse.core.resources.IFile file) throws java.lang.Exception
java.lang.Exception
public boolean performFinish()
performFinish
in interface org.eclipse.jface.wizard.IWizard
performFinish
in class org.eclipse.jface.wizard.Wizard
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |