getOpenUpdateSiteEditor(IProject project) Returns an open SiteEditor that is associated with this project.
public static void
modifyModel(ModelModification modification, IProgressMonitor monitor) Modify a model based on the specifications provided by the ModelModification parameter.
PDE editors should call this during their creation.
Currently the pde editor superclass (PDEFormEditor)
connects during its createPages method and so this
method does not need to be invoked anywhere else.
Parameters: editor - the editor to connect to
Get the open schema editor rooted at the specified underlying file
Parameters: file - editor if found or null
getOpenUpdateSiteEditor
public static SiteEditor getOpenUpdateSiteEditor(IProject project)(Code)
Returns an open SiteEditor that is associated with this project.
Parameters: project - null if no SiteEditor is open for this project
modifyModel
public static void modifyModel(ModelModification modification, IProgressMonitor monitor)(Code)
Modify a model based on the specifications provided by the ModelModification parameter.
A model will be searched for in the open editors, if it is found changes will be applied
and the editor will be saved.
If no model is found one will be created and text edit operations will be generated / applied.
NOTE: If a MANIFEST.MF file is specified in the ModelModification a BundlePluginModel will be
searched for / created and passed to ModelModification#modifyModel(IBaseModel).
(not a BundleModel - which can be retreived from the BundlePluginModel)
Parameters: modification - Parameters: monitor - throws: CoreException -
setChangeTextType
public static void setChangeTextType(TextFileChange change, IFile file)(Code)