|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAbstractUIPlugin
org.eclipse.egf.common.ui.activator.AbstractUIActivator
org.eclipse.egf.pde.EgfPdeActivator
public class EgfPdeActivator
The activator class controls the plug-in life cycle
Field Summary | |
---|---|
static String |
MANIFEST_FILE_NAME
Constant that defines the bundle manifest file name. |
static String |
PLUGIN_FILE_NAME
Constant that defines the Plug-in file name. |
Constructor Summary | |
---|---|
EgfPdeActivator()
|
Method Summary | |
---|---|
void |
addEntryInBinaryBuild(IProject project_p,
String entryName_p)
Add an entry with specified entry name in the binary build for given project. |
void |
convertToFactoryComponent(String pluginId_p)
Convert identified plug-in to a factory component. |
void |
convertToFactoryComponent(String pluginId_p,
boolean makeItOptional_p)
Convert identified plug-in to a factory component by adding specific properties (extensions). |
boolean |
convertToPlugin(String projectName_p)
Convert named project to a valid plug-in project. |
IContextExtensionFactory |
getContextExtensionHelper()
Get a context extension helper. |
IContractElementRefExtensionFactory |
getContractElementRefExtensionHelper()
Get a contract element reference extension helper. |
IContractExtensionFactory |
getContractExtensionHelper()
Get a contract extension helper. |
static EgfPdeActivator |
getDefault()
Returns the shared instance |
FactoryComponent |
getFactoryComponent(IProject project_p)
Return the factory component for given project. |
IFactoryComponentExtensionFactory |
getFactoryComponentExtensionHelper()
Get a factory component extension helper. |
FactoryComponent |
getFactoryComponentForPluginId(String pluginId_p)
Return the factory component contained by given plug-in id. |
protected FactoryComponent |
getFactoryComponentForProject(IProject project_p)
Get the related factory component from the factory component registry for given project. |
String |
getFactoryComponentId(IProject project_p)
Get factory component id declared in given project. |
IFactoryComponentInvocationExtensionFactory |
getFactoryComponentInvocationExtensionHelper()
Get a factory component invocation extension helper. |
Collection<FactoryComponent> |
getFactoryComponentsInTargetPlatform()
Get all factory components in the target platform referenced by the current running Eclipse IDE instance. |
Collection<FactoryComponent> |
getFactoryComponentsInWorkspace()
Get the collection of existing factory components in current workspace. |
IFile |
getFile(IPluginModelBase pluginModelBase_p)
Get the plug-in file from an IPluginModelBase element. |
IFile |
getFile(IProject project_p)
Get the plug-in file for given project. |
IFile |
getFile(String factoryComponentId_p)
Get the plug-in file where factory component is stored. |
IMappingExtensionFactory |
getMappingExtensionHelper()
Get a mapping extension helper. |
IPluginChangesCommandRunner |
getPluginChangesCommandRunner()
Get the plug-in changes command runner that is able to execute IPluginChangesCommand commands. |
String |
getPluginIdForFactoryComponent(String factoryComponentId_p)
Get the plug-in id for the given factory component located in the workspace only. |
IPluginModelBase |
getPluginModelBase(IProject project_p)
Get the plug-in model base for given project. |
protected IPluginModelBase |
getPluginModelForFactoryComponent(FactoryComponent factoryComponent_p)
Return the plug-in model for given factory component. |
IPluginModelBase |
getPluginModelForFactoryComponent(String factoryComponentId_p)
Get the plug-in model for given factory component id. |
Collection<IProject> |
getPluginProjects()
Get all plug-in projects located in the workspace. |
IProductionPlanExtensionFactory |
getProductionPlanExtensionHelper()
Get a production plan extension helper. |
IProject |
getProjectForFactoryComponent(String factoryComponentId_p)
Get the project that hosts given factory component. |
ITaskFactoryExtensionFactory |
getTaskFactoryExtensionHelper()
Get a task factory extension helper. |
boolean |
isPluginFile(IResource resource_p)
Is the given file the plug-in file hosts in an IProject . |
void |
start(BundleContext context_p)
|
void |
stop(BundleContext context_p)
|
Methods inherited from class org.eclipse.egf.common.ui.activator.AbstractUIActivator |
---|
createImageDescriptor, getImage, getImageDescriptor, getPluginID, getWorkbenchDisplay, log, log, log, log, log, log, log, newErrorStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PLUGIN_FILE_NAME
public static final String MANIFEST_FILE_NAME
Constructor Detail |
---|
public EgfPdeActivator()
Method Detail |
---|
public void start(BundleContext context_p) throws Exception
Exception
org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
public void stop(BundleContext context_p) throws Exception
Exception
org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
public static EgfPdeActivator getDefault()
public IFactoryComponentExtensionFactory getFactoryComponentExtensionHelper()
public IContractExtensionFactory getContractExtensionHelper()
public IContractElementRefExtensionFactory getContractElementRefExtensionHelper()
public IProductionPlanExtensionFactory getProductionPlanExtensionHelper()
public IFactoryComponentInvocationExtensionFactory getFactoryComponentInvocationExtensionHelper()
public ITaskFactoryExtensionFactory getTaskFactoryExtensionHelper()
public IContextExtensionFactory getContextExtensionHelper()
public IMappingExtensionFactory getMappingExtensionHelper()
protected IPluginModelBase getPluginModelForFactoryComponent(FactoryComponent factoryComponent_p)
factoryComponent_p
-
IPluginModelBase
adapter registered.public IPluginModelBase getPluginModelBase(IProject project_p)
project_p
-
IPluginModelBase
instance or null if the project is not a plug-in.public IFile getFile(String factoryComponentId_p)
factoryComponentId_p
-
public IFile getFile(IPluginModelBase pluginModelBase_p)
IPluginModelBase
element.
pluginModelBase_p
-
public IFile getFile(IProject project_p)
project_p
-
public boolean isPluginFile(IResource resource_p)
IProject
.
resource_p
-
public String getFactoryComponentId(IProject project_p)
project_p
-
public String getPluginIdForFactoryComponent(String factoryComponentId_p)
factoryComponentId_p
-
public IPluginModelBase getPluginModelForFactoryComponent(String factoryComponentId_p)
factoryComponentId_p
-
public IProject getProjectForFactoryComponent(String factoryComponentId_p)
factoryComponentId_p
-
public Collection<FactoryComponent> getFactoryComponentsInWorkspace()
public Collection<FactoryComponent> getFactoryComponentsInTargetPlatform()
public Collection<IProject> getPluginProjects()
public FactoryComponent getFactoryComponentForPluginId(String pluginId_p)
pluginId_p
-
FactoryComponent
.public FactoryComponent getFactoryComponent(IProject project_p)
project_p
-
protected FactoryComponent getFactoryComponentForProject(IProject project_p)
project_p
-
public IPluginChangesCommandRunner getPluginChangesCommandRunner()
IPluginChangesCommand
commands.
public void addEntryInBinaryBuild(IProject project_p, String entryName_p)
public void convertToFactoryComponent(String pluginId_p)
pluginId_p
- That includes required dependencies (set as mandatory in this case).public void convertToFactoryComponent(String pluginId_p, boolean makeItOptional_p)
pluginId_p
- makeItOptional_p
- Converting to a FC also implies new dependencies. Maybe those should be optional (true) or remain mandatory (false).public boolean convertToPlugin(String projectName_p)
projectName_p
-
|
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.