|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egf.pattern.production.template.TemplateHelper
public class TemplateHelper
Field Summary | |
---|---|
protected static IPath |
GENERATED_TEMPLATES_IPATH
Generated templates relative IPath. |
protected static String |
GENERATED_TEMPLATES_PATH
Generated templates relative path. |
static IPath |
TEMPLATES_ROOT_IPATH
Generated templates relative root IPath. |
static String |
TEMPLATES_ROOT_PATH
Generated templates relative root path. |
Constructor Summary | |
---|---|
TemplateHelper()
|
Method Summary | |
---|---|
static IFolder |
getGeneratedPatternTemplateIFolder(IJavaProject javaProject_p,
String patternShortId_p)
Get generated template IFolder for given pattern short id. |
static IFolder |
getGeneratedTemplateIFolder(IJavaProject javaProject_p)
Get generated template IFolder for given project. |
static String |
getPatternTemplatePath(PatternHandler.PatternData patternData_p)
Get generated template file path for given pattern data. |
static Couple<String,String> |
getPatternTemplatesFolderRelativePaths(String patternShortId_p,
String pluginId_p)
Get templates folder relative paths. |
static String |
getPhysicalRelativePath(String logicalRelativePath_p)
Get physical relative path from logical one. |
static String |
getPhysicalRelativePath(String logicalRelativePath_p,
String pluginId_p)
Get physical relative path from logical given one. |
static String |
getTemplateRelativePath(String patternShortId_p,
String pluginId_p,
String operationName_p,
String operationId_p)
Get template relative path for identified operation. |
static IFolder |
getTemplateRootIFolder(IJavaProject javaProject_p)
Get generated template root IFolder for given project. |
static String |
readTemplateFile(String templateRelativePath_p)
Read template file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TEMPLATES_ROOT_PATH
public static final IPath TEMPLATES_ROOT_IPATH
protected static final String GENERATED_TEMPLATES_PATH
protected static final IPath GENERATED_TEMPLATES_IPATH
Constructor Detail |
---|
public TemplateHelper()
Method Detail |
---|
public static IFolder getTemplateRootIFolder(IJavaProject javaProject_p)
javaProject_p
-
public static IFolder getGeneratedTemplateIFolder(IJavaProject javaProject_p)
javaProject_p
-
public static IFolder getGeneratedPatternTemplateIFolder(IJavaProject javaProject_p, String patternShortId_p)
javaProject_p
- patternShortId_p
-
public static String getPatternTemplatePath(PatternHandler.PatternData patternData_p)
patternData_p
-
public static String readTemplateFile(String templateRelativePath_p)
templateRelativePath_p
- the template relative path, prefixed by the factory component id.
public static String getPhysicalRelativePath(String logicalRelativePath_p)
logicalRelativePath_p
-
public static String getPhysicalRelativePath(String logicalRelativePath_p, String pluginId_p)
logicalRelativePath_p
- pluginId_p
-
public static String getTemplateRelativePath(String patternShortId_p, String pluginId_p, String operationName_p, String operationId_p)
patternShortId_p
- pluginId_p
- operationName_p
- operationId_p
-
public static Couple<String,String> getPatternTemplatesFolderRelativePaths(String patternShortId_p, String pluginId_p)
patternShortId_p
- pluginId_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.