|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.wizard.Wizard
org.eclipse.m2m.atl.adt.ui.wizard.atlplugin.AtlPluginCreator
public class AtlPluginCreator
The ATL plugin creation wizard.
Field Summary | |
---|---|
protected org.eclipse.core.runtime.IConfigurationElement |
configElement
|
protected org.eclipse.ui.dialogs.WizardNewProjectCreationPage |
newProjectPage
|
protected AtlPluginScreen |
parametersPage
|
Fields inherited from class org.eclipse.jface.wizard.Wizard |
---|
DEFAULT_IMAGE |
Constructor Summary | |
---|---|
AtlPluginCreator()
Constructor. |
Method Summary | |
---|---|
void |
addPages()
|
boolean |
canFinish()
|
void |
convert(org.eclipse.core.resources.IProject project,
CreatePluginData pluginData,
org.eclipse.core.runtime.IProgressMonitor monitor)
Converts the given project to ATL Plugin project. |
static void |
copyAtlFile(org.eclipse.core.resources.IProject project,
org.eclipse.core.resources.IFile fileToCopy,
org.eclipse.core.runtime.IPath targetDirRelativePath,
org.eclipse.core.runtime.IProgressMonitor monitor)
Copies an ATL file: in case of a .asm, attempt to copy the .atl instead if present. |
static void |
copyFile(org.eclipse.core.resources.IProject project,
org.eclipse.core.resources.IFile fileToCopy,
org.eclipse.core.runtime.IPath targetDirRelativePath,
org.eclipse.core.runtime.IProgressMonitor monitor)
Copies a file. |
static void |
createFile(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IPath projectRelativePath,
java.lang.String content,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates a file and its content. |
org.eclipse.ui.dialogs.WizardNewProjectCreationPage |
getNewProjectPage()
|
AtlPluginScreen |
getParametersPage()
|
void |
init(org.eclipse.ui.IWorkbench workbench,
org.eclipse.jface.viewers.IStructuredSelection s)
|
boolean |
performFinish()
|
void |
setInitializationData(org.eclipse.core.runtime.IConfigurationElement config,
java.lang.String propertyName,
java.lang.Object data)
|
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 |
Field Detail |
---|
protected org.eclipse.ui.dialogs.WizardNewProjectCreationPage newProjectPage
protected AtlPluginScreen parametersPage
protected org.eclipse.core.runtime.IConfigurationElement configElement
Constructor Detail |
---|
public AtlPluginCreator()
Method Detail |
---|
public org.eclipse.ui.dialogs.WizardNewProjectCreationPage getNewProjectPage()
public AtlPluginScreen getParametersPage()
public void addPages()
addPages
in interface org.eclipse.jface.wizard.IWizard
addPages
in class org.eclipse.jface.wizard.Wizard
Wizard.addPages()
public void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection s)
init
in interface org.eclipse.ui.IWorkbenchWizard
IWorkbenchWizard.init(org.eclipse.ui.IWorkbench,
org.eclipse.jface.viewers.IStructuredSelection)
public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config, java.lang.String propertyName, java.lang.Object data) throws org.eclipse.core.runtime.CoreException
setInitializationData
in interface org.eclipse.core.runtime.IExecutableExtension
org.eclipse.core.runtime.CoreException
IExecutableExtension.setInitializationData(org.eclipse.core.runtime.IConfigurationElement,
java.lang.String, java.lang.Object)
public boolean canFinish()
canFinish
in interface org.eclipse.jface.wizard.IWizard
canFinish
in class org.eclipse.jface.wizard.Wizard
Wizard.canFinish()
public boolean performFinish()
performFinish
in interface org.eclipse.jface.wizard.IWizard
performFinish
in class org.eclipse.jface.wizard.Wizard
Wizard.performFinish()
public void convert(org.eclipse.core.resources.IProject project, CreatePluginData pluginData, org.eclipse.core.runtime.IProgressMonitor monitor)
project
- is the project to convertpluginData
- is the class used to configure all the JET generationsmonitor
- is the monitorpublic static void createFile(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath projectRelativePath, java.lang.String content, org.eclipse.core.runtime.IProgressMonitor monitor)
project
- is the projectprojectRelativePath
- is the path of the file to create, relative to the projectcontent
- is the content of the new filemonitor
- is the monitorpublic static void copyAtlFile(org.eclipse.core.resources.IProject project, org.eclipse.core.resources.IFile fileToCopy, org.eclipse.core.runtime.IPath targetDirRelativePath, org.eclipse.core.runtime.IProgressMonitor monitor)
project
- the current projectfileToCopy
- is the filetargetDirRelativePath
- is the path of the copymonitor
- is the monitorpublic static void copyFile(org.eclipse.core.resources.IProject project, org.eclipse.core.resources.IFile fileToCopy, org.eclipse.core.runtime.IPath targetDirRelativePath, org.eclipse.core.runtime.IProgressMonitor monitor)
project
- the current projectfileToCopy
- is the filetargetDirRelativePath
- is the path of the copymonitor
- is the monitor
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |