EGF Engine
Release 0.1.0

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

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
              extended by org.eclipse.egf.pde.internal.plugin.manifest.command.SetRequiredPluginsCommand
All Implemented Interfaces:
IPluginChangesCommand

public class SetRequiredPluginsCommand
extends AbstractRequiredPluginsCommand

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


Constructor Summary
SetRequiredPluginsCommand(String[] requiredPlugins_p)
          Constructor.
SetRequiredPluginsCommand(String[] requiredPlugins_p, boolean optional_p, boolean reexport_p)
          Constructor.
 
Method Summary
 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.
 
Methods inherited from class org.eclipse.egf.pde.internal.plugin.manifest.command.AbstractRequiredPluginsCommand
execute, getExistingImports, getRequiredPlugins, pluginImportExists
 
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

SetRequiredPluginsCommand

public SetRequiredPluginsCommand(String[] requiredPlugins_p)
Constructor.

Parameters:
requiredPlugins_p - Plug-ins dependencies are considered mandatory.

SetRequiredPluginsCommand

public SetRequiredPluginsCommand(String[] requiredPlugins_p,
                                 boolean optional_p,
                                 boolean reexport_p)
Constructor.

Parameters:
requiredPlugins_p -
optional_p - Are plug-ins dependencies optional (true) or mandatory (false) ?
reexport_p - Are plug-ins dependencies to be re-exported (true) or not (false) ?
Method Detail

handleRequiredPlugin

public void handleRequiredPlugin(String requiredPlugin_p,
                                 IBundlePluginModel bundlePluginModel_p,
                                 List<IPluginImport> existingPluginImports_p)
Description copied from class: AbstractRequiredPluginsCommand
Handle a required plug-in contained in the array provided in the constructor.

Specified by:
handleRequiredPlugin in class AbstractRequiredPluginsCommand
See Also:
org.eclipse.egf.pde.internal.plugin.manifest.command.AbstractRequiredPluginsCommand#handleRequiredPlugin(java.lang.String, org.eclipse.pde.internal.core.ibundle.IBundlePluginModel, java.util.List)

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.