Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Struckmann2015-06-23 13:40:17 +0000
committerSebastian Struckmann2015-06-23 13:40:17 +0000
commita713dcad99fcd50234e0e0f1dfadfc651561b586 (patch)
treec4fc5dcace7eb592fd8d288ee37caaadbca15462 /org.eclipse.jubula.toolkit.api.gen
parent9e2edc43b74dbb7c75f9d25c1e76d73913a31522 (diff)
downloadorg.eclipse.jubula.core-a713dcad99fcd50234e0e0f1dfadfc651561b586.tar.gz
org.eclipse.jubula.core-a713dcad99fcd50234e0e0f1dfadfc651561b586.tar.xz
org.eclipse.jubula.core-a713dcad99fcd50234e0e0f1dfadfc651561b586.zip
Sprint task - Allow merge of 'org.eclipse.jubula.toolkit.ToolkitInfo'
Diffstat (limited to 'org.eclipse.jubula.toolkit.api.gen')
-rw-r--r--org.eclipse.jubula.toolkit.api.gen/templates/FactoryGenerator.javajet15
1 files changed, 13 insertions, 2 deletions
diff --git a/org.eclipse.jubula.toolkit.api.gen/templates/FactoryGenerator.javajet b/org.eclipse.jubula.toolkit.api.gen/templates/FactoryGenerator.javajet
index bba4e6ce8..f194e4872 100644
--- a/org.eclipse.jubula.toolkit.api.gen/templates/FactoryGenerator.javajet
+++ b/org.eclipse.jubula.toolkit.api.gen/templates/FactoryGenerator.javajet
@@ -49,15 +49,26 @@ import org.eclipse.jubula.toolkit.ToolkitInfo;
public final class <%=factoryName%> {
<%if (toolkitInfoName != null) {%>
- @NonNull private final static ToolkitInfo m_toolkitInformation = new <%=toolkitInfoName%>();<%}%>
+ @NonNull private final static ToolkitInfo TOOLKIT_INFORMATION = new <%=toolkitInfoName%>();<%}%>
private <%=factoryName%>() {
super();
}
<%if (toolkitInfoName != null) {%>
+ /**
+ * @return the toolkit information, not recommended to be modified
+ */
@NonNull public static ToolkitInfo getToolkitInformation() {
- return m_toolkitInformation;
+ return TOOLKIT_INFORMATION;
+ }
+
+ /**
+ * Returns a new instance of toolkit information. Use this method if you want to modify the toolkit by adding tester classes.
+ * @return a toolkit information
+ */
+ @NonNull public static ToolkitInfo createToolkitInformation() {
+ return new <%=toolkitInfoName%>();
}<%}%>
<%for (CompInfoForFactoryGen compInfo : compInfoList) {

Back to the top