Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.generator')
-rw-r--r--plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java1
-rw-r--r--plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGeneratorOptions.java16
-rw-r--r--plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGeneratorOptionsHelper.java4
-rw-r--r--plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/PrepareFileSystem.xtend14
-rw-r--r--plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/RoomExtensions.xtend23
5 files changed, 0 insertions, 58 deletions
diff --git a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java
index 90b0d3359..8e06a7193 100644
--- a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java
+++ b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGenerator.java
@@ -157,7 +157,6 @@ public abstract class AbstractGenerator implements IGenerator, IDetailCodeTransl
AbstractGenerator.settings = arguments;
RoomExtensions.setGenDir(arguments.get(GeneratorApplicationOptions.GEN_DIR));
RoomExtensions.setGenInfoDir(arguments.get(GeneratorApplicationOptions.GEN_INFO_DIR));
- RoomExtensions.setGenDocDir(arguments.get(AbstractGeneratorOptions.GEN_DOC_DIR));
if(resources.isEmpty()) {
logger.logError("no input files");
diff --git a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGeneratorOptions.java b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGeneratorOptions.java
index 06a53788e..73129df86 100644
--- a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGeneratorOptions.java
+++ b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGeneratorOptions.java
@@ -33,13 +33,6 @@ public class AbstractGeneratorOptions extends GeneratorBaseOptions {
"if specified all classes are generated, not only instanciated ones",
false);
- public static final BooleanOption DOCUMENTATION = new BooleanOption(
- GROUP_ETRICE,
- "genDocu",
- "generateDocumentation",
- "if specified documentation is created",
- false);
-
public static final StringOption SAVE_GEN_MODEL = new StringOption(
GROUP_ETRICE,
"saveGenModel",
@@ -54,13 +47,6 @@ public class AbstractGeneratorOptions extends GeneratorBaseOptions {
"if specified the generated main method will be named as stated",
"main");
- public static final StringOption GEN_DOC_DIR = new StringOption(
- GROUP_ETRICE,
- "genDocDir",
- "directory",
- "the directory for generated documentation files",
- "doc-gen");
-
public static final BooleanOption MSC_INSTR = new BooleanOption(
GROUP_ETRICE,
"msc_instr",
@@ -94,10 +80,8 @@ public class AbstractGeneratorOptions extends GeneratorBaseOptions {
super.configure(options);
options.add(LIB);
- options.add(DOCUMENTATION);
options.add(SAVE_GEN_MODEL);
options.add(MAIN_NAME);
- options.add(GEN_DOC_DIR);
options.add(MSC_INSTR);
options.add(DATA_INSTR);
options.add(VERBOSE_RT);
diff --git a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGeneratorOptionsHelper.java b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGeneratorOptionsHelper.java
index 7d0246481..f51687f12 100644
--- a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGeneratorOptionsHelper.java
+++ b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/AbstractGeneratorOptionsHelper.java
@@ -44,10 +44,6 @@ public class AbstractGeneratorOptionsHelper extends GeneratorBaseOptionsHelper {
return args.get(AbstractGeneratorOptions.SAVE_GEN_MODEL);
}
- public boolean isGenerateDocumentation(Arguments args) {
- return args.get(AbstractGeneratorOptions.DOCUMENTATION);
- }
-
public boolean isGenerateWithVerboseOutput(Arguments args) {
return args.get(AbstractGeneratorOptions.VERBOSE_RT);
}
diff --git a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/PrepareFileSystem.xtend b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/PrepareFileSystem.xtend
index a9c667816..4fb52e43b 100644
--- a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/PrepareFileSystem.xtend
+++ b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/PrepareFileSystem.xtend
@@ -77,20 +77,6 @@ class PrepareFileSystem {
]
}
- def void prepareDocTargetPaths(Resource resource) {
- var Set<String> pathes = new HashSet<String>();
- for (e: resource.contents){
- if (e instanceof Root) {
- for (mdl : (e as Root).models) {
- val tgtpath = mdl.docGenerationTargetPath
- if (tgtpath!==null && !tgtpath.empty)
- pathes.add(tgtpath)
- }
- }
- }
- prepare(pathes)
- }
-
/**
* Recursively erase all folders receiving generated code
* and place a readme file in those folders.
diff --git a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/RoomExtensions.xtend b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/RoomExtensions.xtend
index 7e443e5ed..0a259aed1 100644
--- a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/RoomExtensions.xtend
+++ b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/generic/RoomExtensions.xtend
@@ -54,7 +54,6 @@ class RoomExtensions extends FSMExtensions {
private static String genDir = "/src-gen/"
private static String genInfoDir = "/src-gen-info/"
- private static String genDocDir = "/doc-gen/"
@Inject protected extension RoomHelpers
@@ -64,18 +63,12 @@ class RoomExtensions extends FSMExtensions {
def static setDefaultGenInfoDir() {
genInfoDir = "/src-gen-info/"
}
- def static setDefaultGenDocDir() {
- genDocDir = "/doc-gen/"
- }
def static setGenDir(String dir) {
genDir = "/"+dir+"/"
}
def static setGenInfoDir(String dir) {
genInfoDir = "/"+dir+"/"
}
- def static setGenDocDir(String dir) {
- genDocDir = "/"+dir+"/"
- }
//-------------------------------------------------------
// union methods
@@ -111,13 +104,6 @@ class RoomExtensions extends FSMExtensions {
}
/**
- * @return the relative path to the destination folder for the generated documentation
- */
- def String getDocGenerationPathSegment() {
- genDocDir
- }
-
- /**
* @param e an {@link EObject}
* @return the URI of the EObject's resource as file string
* (or an empty string if no such resource exists)
@@ -202,15 +188,6 @@ class RoomExtensions extends FSMExtensions {
}
/**
- * @param e an {@link EObject}
- * @return the concatenation of the objects project path
- * with the {@link #getDocGenerationPathSegment()}
- */
- def String getDocGenerationTargetPath(EObject e){
- return getProjectPath(e)+getDocGenerationPathSegment()
- }
-
- /**
* makes a valid identifier from a path string
* @param path a slash (/) separated path
* @return the path with slashes (and colons as in replicated actors) replaced by underscores (_)

Back to the top