EGF Engine
Release 0.1.0

org.eclipse.egf.pde.internal
Class FactoryComponentGeneratorHelper

java.lang.Object
  extended by org.eclipse.egf.pde.internal.FactoryComponentGeneratorHelper

public class FactoryComponentGeneratorHelper
extends Object

Provides services when creating factory components or converting existing plug-ins in factory components.


Constructor Summary
FactoryComponentGeneratorHelper()
           
 
Method Summary
static void addEntryInBinaryBuild(IBuildModel buildModel_p, String entryName_p)
          Add an entry in the binary entry of the build.properties i.e bin.include.
static void addFolderIn(String pluginId_p, String folderName_p, boolean updateBuildProperties_p, IProgressMonitor monitor_p)
          Create and add a new folder in given plug-in.
static void addGeneratedSourceFolderIn(String pluginId_p, boolean updateBuildProperties_p)
          Create and add a new source folder named 'generated' in given plug-in.
static void addGeneratedSourceFolderInLibrarySources(IBuildModel buildModel, String entryName_p)
          Add the 'generated' source folder in the source entry of the build.properties i.e 'SOURCE.
static void addStandardFactoryComponentDependencies(String pluginId_p, boolean optional_p)
          Add the standard dependencies in given plug-in manifest.
static boolean createGeneratedSourceFolder(IProject project_p)
          Create a 'generated' source folder in given project.
static WorkspaceBuildModel getBuildModel(IProject project_p)
          Get the build model for given project.
static String[] getStandardDependencies()
          Return the standard dependencies for a factory component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryComponentGeneratorHelper

public FactoryComponentGeneratorHelper()
Method Detail

addGeneratedSourceFolderIn

public static void addGeneratedSourceFolderIn(String pluginId_p,
                                              boolean updateBuildProperties_p)
Create and add a new source folder named 'generated' in given plug-in.
The 'build.properties' file is updated accordingly if requested.

Parameters:
pluginId_p -
updateBuildProperties_p -

createGeneratedSourceFolder

public static boolean createGeneratedSourceFolder(IProject project_p)
Create a 'generated' source folder in given project.

Parameters:
project_p -
Returns:
true means successfully created.

addFolderIn

public static void addFolderIn(String pluginId_p,
                               String folderName_p,
                               boolean updateBuildProperties_p,
                               IProgressMonitor monitor_p)
Create and add a new folder in given plug-in.
The 'build.properties' file is updated accordingly if requested.

Parameters:
pluginId_p -
folderName_p -
updateBuildProperties_p -
monitor_p -

addGeneratedSourceFolderInLibrarySources

public static void addGeneratedSourceFolderInLibrarySources(IBuildModel buildModel,
                                                            String entryName_p)
Add the 'generated' source folder in the source entry of the build.properties i.e 'SOURCE.'

Parameters:
buildModel -
entryName_p - if null default entry is used i.e '.'

addEntryInBinaryBuild

public static void addEntryInBinaryBuild(IBuildModel buildModel_p,
                                         String entryName_p)
Add an entry in the binary entry of the build.properties i.e bin.include.
Caller is responsible to save the modified build model.

Parameters:
buildModel_p -

getBuildModel

public static WorkspaceBuildModel getBuildModel(IProject project_p)
Get the build model for given project.

Parameters:
project_p -
Returns:

addStandardFactoryComponentDependencies

public static void addStandardFactoryComponentDependencies(String pluginId_p,
                                                           boolean optional_p)
Add the standard dependencies in given plug-in manifest. See getStandardDependencies().

Parameters:
pluginId_p -
optional_p -

getStandardDependencies

public static String[] getStandardDependencies()
Return the standard dependencies for a factory component.
Default dependencies are org.eclipse.egf.core plug-in and org.eclipse.egf.pattern plug-in

Returns:

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.