EGF Engine
Release 0.1.0

org.eclipse.egf.pde.pattern.plugin.command
Class PatternTemplateExtensionFactory

java.lang.Object
  extended by org.eclipse.egf.pde.pattern.plugin.command.PatternTemplateExtensionFactory

public class PatternTemplateExtensionFactory
extends Object

Pattern commands factory.
Created commands perform plug-in changes in the extension section.


Constructor Summary
PatternTemplateExtensionFactory()
           
 
Method Summary
static IPluginChangesCommand setPatternTemplateExtension(String patternFullId_p, String templateClass_p, String templateType_p, String templatePath_p)
          Create a set generated pattern extension command for given parameters.
static IPluginChangesCommand unsetPatternTemplateExtension(String patternFullId_p)
          Create an unset generated pattern extension command for given parameters.
static IPluginChangesCommand updatePatternTemplateExtension(String oldPatternFullId_p, String newPatternFullId_p)
          Create an update generated pattern id extension command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternTemplateExtensionFactory

public PatternTemplateExtensionFactory()
Method Detail

setPatternTemplateExtension

public static IPluginChangesCommand setPatternTemplateExtension(String patternFullId_p,
                                                                String templateClass_p,
                                                                String templateType_p,
                                                                String templatePath_p)
Create a set generated pattern extension command for given parameters.

Parameters:
patternFullId_p - Pattern full id as defined by the pattern plug-in.
templateClass_p - a string that represents the generated pattern code.
templateType_p - the identifier of the template type used to produce the pattern.
templatePath_p - a string that represents the template code.
Returns:

unsetPatternTemplateExtension

public static IPluginChangesCommand unsetPatternTemplateExtension(String patternFullId_p)
Create an unset generated pattern extension command for given parameters.

Parameters:
patternFullId_p - Pattern full id as defined by the pattern plug-in.
Returns:

updatePatternTemplateExtension

public static IPluginChangesCommand updatePatternTemplateExtension(String oldPatternFullId_p,
                                                                   String newPatternFullId_p)
Create an update generated pattern id extension command.
It only updates the extension id with the new given pattern full id.
If the extension is not found, nothing is performed.

Parameters:
oldPatternFullId_p - The previous pattern full id.
newPatternFullId_p - Pattern full id as defined by the 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.