Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Struckmann2014-10-21 12:11:06 +0000
committerSebastian Struckmann2014-10-21 12:11:29 +0000
commit78d6c16dc6e8b8602bb2589587f960387f06e805 (patch)
treea2f5fd4ed33a24a59f3c118dfe076227311dcdce /org.eclipse.jubula.toolkit.api.gen
parent564dc5d18471367350818fe62a5f584bf6ea26ac (diff)
downloadorg.eclipse.jubula.core-78d6c16dc6e8b8602bb2589587f960387f06e805.tar.gz
org.eclipse.jubula.core-78d6c16dc6e8b8602bb2589587f960387f06e805.tar.xz
org.eclipse.jubula.core-78d6c16dc6e8b8602bb2589587f960387f06e805.zip
Sprint task - Java API - Components with default mapping and without component class are left out of the factories now
Diffstat (limited to 'org.eclipse.jubula.toolkit.api.gen')
-rw-r--r--org.eclipse.jubula.toolkit.api.gen/src/org/eclipse/jubula/toolkit/api/gen/internal/APIGenerator.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/org.eclipse.jubula.toolkit.api.gen/src/org/eclipse/jubula/toolkit/api/gen/internal/APIGenerator.java b/org.eclipse.jubula.toolkit.api.gen/src/org/eclipse/jubula/toolkit/api/gen/internal/APIGenerator.java
index 6a3c8f000..c201ce6c9 100644
--- a/org.eclipse.jubula.toolkit.api.gen/src/org/eclipse/jubula/toolkit/api/gen/internal/APIGenerator.java
+++ b/org.eclipse.jubula.toolkit.api.gen/src/org/eclipse/jubula/toolkit/api/gen/internal/APIGenerator.java
@@ -188,6 +188,8 @@ public class APIGenerator {
createFile(dir, file, content);
+ /* After generating an impl class, add component information
+ * to factory and toolkit generation information */
if (!generateInterface) {
ComponentClass componentClass = null;
String testerClass = null;
@@ -201,11 +203,15 @@ public class APIGenerator {
}
}
- factoryGenInfo.addCompInformation(new CompInfoForFactoryGen(
- genInfo.getClassName(),
- genInfo.getFqClassName(),
- compInfo.hasDefaultMapping(),
- compInfo.getMostSpecificVisibleSuperTypeName()));
+ if (!compInfo.hasDefaultMapping()
+ || (componentClass != null
+ && !componentClass.getName().isEmpty())) {
+ factoryGenInfo.addCompInformation(new CompInfoForFactoryGen(
+ genInfo.getClassName(),
+ genInfo.getFqClassName(),
+ compInfo.hasDefaultMapping(),
+ compInfo.getMostSpecificVisibleSuperTypeName()));
+ }
tookitGenInfo.addCompInformation(new CompInfoForToolkitGen(
componentClass, testerClass));

Back to the top