Class AtlPluginCreator
java.lang.Object
org.eclipse.jface.wizard.Wizard
org.eclipse.m2m.atl.adt.ui.wizard.atlplugin.AtlPluginCreator
- All Implemented Interfaces:
org.eclipse.core.runtime.IExecutableExtension,org.eclipse.jface.window.IShellProvider,org.eclipse.jface.wizard.IWizard,org.eclipse.ui.INewWizard,org.eclipse.ui.IWorkbenchWizard
public class AtlPluginCreator
extends org.eclipse.jface.wizard.Wizard
implements org.eclipse.ui.INewWizard, org.eclipse.core.runtime.IExecutableExtension
The ATL plugin creation wizard.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.core.runtime.IConfigurationElementprotected org.eclipse.ui.dialogs.WizardNewProjectCreationPageprotected AtlPluginScreenFields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPages()booleanvoidconvert(org.eclipse.core.resources.IProject project, CreatePluginData pluginData, org.eclipse.core.runtime.IProgressMonitor monitor) Converts the given project to ATL Plugin project.static voidcopyAtlFile(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 voidcopyFile(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 voidcreateFile(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath projectRelativePath, String content, org.eclipse.core.runtime.IProgressMonitor monitor) Creates a file and its content.org.eclipse.ui.dialogs.WizardNewProjectCreationPagevoidinit(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection s) booleanvoidsetInitializationData(org.eclipse.core.runtime.IConfigurationElement config, String propertyName, Object data) Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getMinimumWizardSize, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.wizard.IWizard
createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getMinimumWizardSize, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
-
Field Details
-
newProjectPage
protected org.eclipse.ui.dialogs.WizardNewProjectCreationPage newProjectPage -
parametersPage
-
configElement
protected org.eclipse.core.runtime.IConfigurationElement configElement
-
-
Constructor Details
-
AtlPluginCreator
public AtlPluginCreator()Constructor.
-
-
Method Details
-
getNewProjectPage
public org.eclipse.ui.dialogs.WizardNewProjectCreationPage getNewProjectPage() -
getParametersPage
-
addPages
public void addPages()- Specified by:
addPagesin interfaceorg.eclipse.jface.wizard.IWizard- Overrides:
addPagesin classorg.eclipse.jface.wizard.Wizard- See Also:
-
init
public void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection s) - Specified by:
initin interfaceorg.eclipse.ui.IWorkbenchWizard- See Also:
-
setInitializationData
public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement config, String propertyName, Object data) throws org.eclipse.core.runtime.CoreException - Specified by:
setInitializationDatain interfaceorg.eclipse.core.runtime.IExecutableExtension- Throws:
org.eclipse.core.runtime.CoreException- See Also:
-
canFinish
public boolean canFinish()- Specified by:
canFinishin interfaceorg.eclipse.jface.wizard.IWizard- Overrides:
canFinishin classorg.eclipse.jface.wizard.Wizard- See Also:
-
performFinish
public boolean performFinish()- Specified by:
performFinishin interfaceorg.eclipse.jface.wizard.IWizard- Specified by:
performFinishin classorg.eclipse.jface.wizard.Wizard- See Also:
-
convert
public void convert(org.eclipse.core.resources.IProject project, CreatePluginData pluginData, org.eclipse.core.runtime.IProgressMonitor monitor) Converts the given project to ATL Plugin project.- Parameters:
project- is the project to convertpluginData- is the class used to configure all the JET generationsmonitor- is the monitor
-
createFile
public static void createFile(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath projectRelativePath, String content, org.eclipse.core.runtime.IProgressMonitor monitor) Creates a file and its content.- Parameters:
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 monitor
-
copyAtlFile
public 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.- Parameters:
project- the current projectfileToCopy- is the filetargetDirRelativePath- is the path of the copymonitor- is the monitor
-
copyFile
public 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.- Parameters:
project- the current projectfileToCopy- is the filetargetDirRelativePath- is the path of the copymonitor- is the monitor
-