Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Daniellou2015-09-10 13:03:31 +0000
committerGerrit Code Review @ Eclipse.org2015-09-11 14:33:01 +0000
commit752cdd6415ff0ece5906a557bbdec910f4ac2395 (patch)
treea534fbdd06fc831921462014a7b4ba96475e2267 /plugins/customization
parent7cc42249c3aef455d70c08e08086233b66d3a71a (diff)
downloadorg.eclipse.papyrus-752cdd6415ff0ece5906a557bbdec910f4ac2395.tar.gz
org.eclipse.papyrus-752cdd6415ff0ece5906a557bbdec910f4ac2395.tar.xz
org.eclipse.papyrus-752cdd6415ff0ece5906a557bbdec910f4ac2395.zip
Bug 473605 - [ADL4Eclipse] Project generation from model.
* ADL4Eclipse reverse cleanups & bugs fix * Added stereotypes values on reverse * Added tests * Edited FeatureProjectEditor for the generation * Added new project org.eclipse.papyrus.adl4eclipse.generation Change-Id: Idedd3492f0a1d8a1d3b0fde1be36d9145fcff197 Signed-off-by: Thomas Daniellou <thomas.daniellou@cea.fr>
Diffstat (limited to 'plugins/customization')
-rw-r--r--plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/PluginEditor.java44
1 files changed, 41 insertions, 3 deletions
diff --git a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/PluginEditor.java b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/PluginEditor.java
index d35c703017c..eb61d0b73e5 100644
--- a/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/PluginEditor.java
+++ b/plugins/customization/org.eclipse.papyrus.customization/src/org/eclipse/papyrus/customization/plugin/PluginEditor.java
@@ -49,11 +49,11 @@ public class PluginEditor extends PluginProjectEditor implements IPluginProjectE
}
public IManifestEditor getManifestEditor() {
- return this.manifest;
+ return manifest;
}
public IBuildEditor getBuildEditor() {
- return this.build;
+ return build;
}
public void registerSourceFolder(String source) {
@@ -85,7 +85,7 @@ public class PluginEditor extends PluginProjectEditor implements IPluginProjectE
public boolean hasDependency(String dependency) {
return manifest.hasDependency(dependency);
}
-
+
public void setValue(String key, String value) {
manifest.setValue(key, value);
}
@@ -176,4 +176,42 @@ public class PluginEditor extends PluginProjectEditor implements IPluginProjectE
public void setDependenciesVersion(String dependencyPattern, String newVersion) {
manifest.setDependenciesVersion(dependencyPattern, newVersion);
}
+
+ /**
+ * @see org.eclipse.papyrus.eclipse.project.editors.interfaces.IManifestEditor#addImportPackage(java.lang.String)
+ *
+ * @param packageName
+ */
+ public void addImportPackage(String packageName) {
+ manifest.addImportPackage(packageName);
+ }
+
+ /**
+ * @see org.eclipse.papyrus.eclipse.project.editors.interfaces.IManifestEditor#addImportPackage(java.lang.String, java.lang.String)
+ *
+ * @param packageName
+ * @param version
+ */
+ public void addImportPackage(String packageName, String version) {
+ manifest.addImportPackage(packageName, version);
+ }
+
+ /**
+ * @see org.eclipse.papyrus.eclipse.project.editors.interfaces.IManifestEditor#addExportPackage(java.lang.String)
+ *
+ * @param packageName
+ */
+ public void addExportPackage(String packageName) {
+ manifest.addExportPackage(packageName);
+ }
+
+ /**
+ * @see org.eclipse.papyrus.eclipse.project.editors.interfaces.IManifestEditor#addExportPackage(java.lang.String, java.lang.String)
+ *
+ * @param packageName
+ * @param version
+ */
+ public void addExportPackage(String packageName, String version) {
+ manifest.addExportPackage(packageName, version);
+ }
}

Back to the top