|
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
org.eclipse.egf.pde.reader.CreateDescriptorOperation
public abstract class CreateDescriptorOperation
Base class to implement operations that read elements from a plug-in within the workspace.
Constructor Summary | |
---|---|
CreateDescriptorOperation(IFile modelFile_p)
Constructor. |
|
CreateDescriptorOperation(IFile modelFile_p,
String readExtensionId_p)
Constructor. |
Method Summary | |
---|---|
protected abstract IDescriptor |
createDescriptor(IPluginModelBase model_p)
Create descriptor for given model. |
protected IPluginElement[] |
getChildren(IPluginElement parent_p)
Get all children of given plug-in element. |
protected IPluginElement[] |
getChildren(IPluginElement parent_p,
String childNodeName_p)
Get all children for a parent with a given name. |
IDescriptor |
getDescriptor()
Get the created descriptor. |
protected IPluginElement |
getExtensionWithId(IPluginModelBase model_p,
String extensionPointId_p,
String idValue_p)
Get the extension element for given parameters. |
protected IPluginElement[] |
getExtensionWithNodeName(IPluginModelBase model_p,
String extensionPointId_p,
String extensionChildNodeName_p)
Get all extension elements for given parameters. |
protected IFile |
getModelFile()
Get model file. |
protected String |
getPluginAttributeValue(IPluginElement element_p,
String attributeName_p)
Get the attribute value for given element and attribute name. |
protected IPluginModelBase |
getPluginModelBase()
|
protected String |
getReadExtensionId()
Get the id of the read element. |
protected void |
modifyModel(IBaseModel model_p,
IProgressMonitor monitor_p)
Invoke this using PDEModelUtility.modifyModel(ModelModification modification) Clients / subclasses should not invoke this method. |
protected String |
readDescription(IPluginElement element_p)
Read the description of given plug-in element. |
void |
setPluginModelBase(IPluginModelBase pluginModelBase_p)
|
Methods inherited from class org.eclipse.egf.pde.internal.ui.util.ModelModification |
---|
getFile, getManifestFile, getPropertiesFile, getXMLFile, isFullBundleModification, saveOpenEditor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CreateDescriptorOperation(IFile modelFile_p)
modelFile_p
- public CreateDescriptorOperation(IFile modelFile_p, String readExtensionId_p)
modelFile_p
- readExtensionId_p
- id of read element.Method Detail |
---|
protected String getReadExtensionId()
public IDescriptor getDescriptor()
IDescriptor
instance or null if an error occurs.protected void modifyModel(IBaseModel model_p, IProgressMonitor monitor_p) throws CoreException
ModelModification
modifyModel
in class ModelModification
CoreException
org.eclipse.egf.pde.internal.ui.util.ModelModification#modifyModel(org.eclipse.pde.core.IBaseModel,
org.eclipse.core.runtime.IProgressMonitor)
protected abstract IDescriptor createDescriptor(IPluginModelBase model_p)
model_p
-
IDescriptor
instance according to model read operations.protected IPluginElement getExtensionWithId(IPluginModelBase model_p, String extensionPointId_p, String idValue_p)
model_p
- extensionPointId_p
- the fully qualified extension-point id.idValue_p
- the value of the id
attribute.
protected IPluginElement[] getExtensionWithNodeName(IPluginModelBase model_p, String extensionPointId_p, String extensionChildNodeName_p)
model_p
- extensionPointId_p
- fully qualified extension point id.extensionChildNodeName_p
- the value of the extension child node name.
IPluginElement
.protected IPluginElement[] getChildren(IPluginElement parent_p, String childNodeName_p)
parent_p
- childNodeName_p
-
protected IPluginElement[] getChildren(IPluginElement parent_p)
parent_p
-
IPluginElement
(but may be empty).protected String getPluginAttributeValue(IPluginElement element_p, String attributeName_p)
element_p
- attributeName_p
-
protected IFile getModelFile()
protected String readDescription(IPluginElement element_p)
element_p
-
protected IPluginModelBase getPluginModelBase()
public void setPluginModelBase(IPluginModelBase pluginModelBase_p)
pluginModelBase_p
- the pluginModelBase to set
|
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.