Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2006-03-30 13:38:05 +0000
committeratikhomirov2006-03-30 13:38:05 +0000
commitc80472761541b2d9be65a5074cfa8efdc5e1a203 (patch)
treedbba307d3d600992a5da704949d0aee9bf252a5d /plugins/org.eclipse.gmf.graphdef.codegen/src
parentad330fe211fcc4cb77687d660079998b4df52cfb (diff)
downloadorg.eclipse.gmf-tooling-c80472761541b2d9be65a5074cfa8efdc5e1a203.tar.gz
org.eclipse.gmf-tooling-c80472761541b2d9be65a5074cfa8efdc5e1a203.tar.xz
org.eclipse.gmf-tooling-c80472761541b2d9be65a5074cfa8efdc5e1a203.zip
[mgolubev] #131366 Check generated figures against originating gmfgraph model
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/src')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/standalone/templates/ManifestMFGenerator.java24
1 files changed, 15 insertions, 9 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/standalone/templates/ManifestMFGenerator.java b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/standalone/templates/ManifestMFGenerator.java
index e3ba402d3..c11ce94b8 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/standalone/templates/ManifestMFGenerator.java
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/src/org/eclipse/gmf/graphdef/codegen/standalone/templates/ManifestMFGenerator.java
@@ -16,11 +16,13 @@ public class ManifestMFGenerator
protected final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl;
protected final String TEXT_1 = "Manifest-Version: 1.0" + NL + "Bundle-ManifestVersion: 2" + NL + "Bundle-Name: %pluginName" + NL + "Bundle-SymbolicName: ";
- protected final String TEXT_2 = "; singleton:=true" + NL + "Bundle-Version: 1.0.0" + NL + "Bundle-Vendor: %providerName" + NL + "Bundle-Localization: plugin";
- protected final String TEXT_3 = NL + "Export-Package: ";
- protected final String TEXT_4 = NL + "Require-Bundle: ";
- protected final String TEXT_5 = NL + "Eclipse-LazyStart: true";
- protected final String TEXT_6 = NL;
+ protected final String TEXT_2 = "; singleton:=true" + NL + "Bundle-Version: 1.0.0" + NL + "Bundle-Vendor: %providerName" + NL + "Bundle-Activator: ";
+ protected final String TEXT_3 = ".";
+ protected final String TEXT_4 = NL + "Bundle-Localization: plugin";
+ protected final String TEXT_5 = NL + "Export-Package: ";
+ protected final String TEXT_6 = NL + "Require-Bundle: ";
+ protected final String TEXT_7 = NL + "Eclipse-LazyStart: true";
+ protected final String TEXT_8 = NL;
public String generate(Object argument)
{
@@ -50,12 +52,16 @@ final ListComposer listComposer = new ListComposer();
stringBuffer.append(TEXT_1);
stringBuffer.append(config.getPluginID());
stringBuffer.append(TEXT_2);
+ stringBuffer.append(config.getPluginActivatorPackageName());
+ stringBuffer.append(TEXT_3);
+ stringBuffer.append(config.getPluginActivatorClassName());
+ stringBuffer.append(TEXT_4);
HashSet exportedPackages = new HashSet();
exportedPackages.add(config.getMainPackageName());
exportedPackages.add(config.getPluginActivatorPackageName());
- stringBuffer.append(TEXT_3);
+ stringBuffer.append(TEXT_5);
stringBuffer.append(listComposer.composeList(exportedPackages));
final Set allRequiredBundles = new LinkedHashSet();
@@ -68,10 +74,10 @@ if (config.needsMapMode()) {
allRequiredBundles.add("org.eclipse.gmf.runtime.draw2d.ui");
}
- stringBuffer.append(TEXT_4);
- stringBuffer.append(listComposer.composeList(allRequiredBundles));
- stringBuffer.append(TEXT_5);
stringBuffer.append(TEXT_6);
+ stringBuffer.append(listComposer.composeList(allRequiredBundles));
+ stringBuffer.append(TEXT_7);
+ stringBuffer.append(TEXT_8);
return stringBuffer.toString();
}
}

Back to the top