|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egf.pde.internal.ui.util.ModelModification
public abstract class ModelModification
ModelModification class used my the PDEModelUtility Subclass me to create changes to your models.
Constructor Summary | |
---|---|
ModelModification(IFile modelFile)
Create a single model modification - used for modifying single AbstractEditingModels |
|
ModelModification(IFile bundleFile,
IFile xmlFile)
Create a full IBundlePluginModelBase modification |
|
ModelModification(IProject project)
Create a ModelModification based on the contents of the project ie. if the project contains a MANIFEST.MF this will be tagged as a fullBundleModification, otherwise (this project is an old-style plugin) this will be a PluginModel/FragmentModel modification. |
Method Summary | |
---|---|
protected IFile |
getFile()
|
protected IFile |
getManifestFile()
|
protected IFile |
getPropertiesFile()
|
protected IFile |
getXMLFile()
|
protected boolean |
isFullBundleModification()
|
protected abstract void |
modifyModel(IBaseModel model,
IProgressMonitor monitor)
Invoke this using PDEModelUtility.modifyModel(ModelModification modification) Clients / subclasses should not invoke this method. |
boolean |
saveOpenEditor()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModelModification(IFile modelFile)
modelFile
- the basic underlying file for the model you wish to modify.public ModelModification(IFile bundleFile, IFile xmlFile)
bundleFile
- the MANIFEST.MF filexmlFile
- the plugin.xml/fragment.xml file for this modification (optional - can be null)public ModelModification(IProject project)
project
- Method Detail |
---|
protected abstract void modifyModel(IBaseModel model, IProgressMonitor monitor) throws CoreException
model
- monitor
-
CoreException
protected final IFile getFile()
protected final IFile getManifestFile()
protected final IFile getXMLFile()
protected final IFile getPropertiesFile()
protected final boolean isFullBundleModification()
public boolean saveOpenEditor()
|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.