EGF Engine
Release 0.1.0

org.eclipse.egf.pde.internal.plugin.manifest.command
Class AbstractRequiredPluginsCommand

java.lang.Object
  extended by org.eclipse.egf.pde.plugin.command.AbstractChangesCommand
      extended by org.eclipse.egf.pde.plugin.command.AbstractManifestChangesCommand
          extended by org.eclipse.egf.pde.internal.plugin.manifest.command.AbstractRequiredPluginsCommand
All Implemented Interfaces:
IPluginChangesCommand
Direct Known Subclasses:
SetRequiredPluginsCommand, UnsetRequiredPluginsCommand

public abstract class AbstractRequiredPluginsCommand
extends AbstractManifestChangesCommand

Implement a command that deals with required plug-ins in the Require-Bundle property of the manifest file.


Constructor Summary
AbstractRequiredPluginsCommand(String[] requiredPlugins_p)
          Constructor.
 
Method Summary
 void execute()
          Performs changes on the underlying plug-in.
protected  List<IPluginImport> getExistingImports()
          Return the existing imports.
protected  String[] getRequiredPlugins()
          Get the required plug-ins.
protected abstract  void handleRequiredPlugin(String requiredPlugin_p, IBundlePluginModel bundlePluginModel_p, List<IPluginImport> existingPluginImports_p)
          Handle a required plug-in contained in the array provided in the constructor.
protected  IPluginImport pluginImportExists(String pluginImportId_p, List<IPluginImport> existingPluginImports_p)
          Whether or not a plug-in import exists for specified id in given list of plug-in import.
 
Methods inherited from class org.eclipse.egf.pde.plugin.command.AbstractManifestChangesCommand
getBundlePluginModel
 
Methods inherited from class org.eclipse.egf.pde.plugin.command.AbstractChangesCommand
getPluginModelBase, setPluginModelBase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRequiredPluginsCommand

public AbstractRequiredPluginsCommand(String[] requiredPlugins_p)
Constructor.

Parameters:
requiredPlugins_p -
Method Detail

execute

public void execute()
Description copied from interface: IPluginChangesCommand
Performs changes on the underlying plug-in.

Specified by:
execute in interface IPluginChangesCommand
Overrides:
execute in class AbstractManifestChangesCommand
See Also:
IPluginChangesCommand.execute()

handleRequiredPlugin

protected abstract void handleRequiredPlugin(String requiredPlugin_p,
                                             IBundlePluginModel bundlePluginModel_p,
                                             List<IPluginImport> existingPluginImports_p)
Handle a required plug-in contained in the array provided in the constructor.

Parameters:
requiredPlugin_p -
bundlePluginModel_p -
existingPluginImports_p -

pluginImportExists

protected IPluginImport pluginImportExists(String pluginImportId_p,
                                           List<IPluginImport> existingPluginImports_p)
Whether or not a plug-in import exists for specified id in given list of plug-in import.

Parameters:
pluginImportId_p -
existingPluginImports_p -
Returns:
not null means found.

getExistingImports

protected List<IPluginImport> getExistingImports()
Return the existing imports.

Returns:
a not null list.

getRequiredPlugins

protected String[] getRequiredPlugins()
Get the required plug-ins.

Returns:
the requiredPlugins

EGF Engine
Release 0.1.0

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.