Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Fluegge2010-05-18 14:49:25 -0400
committerMartin Fluegge2010-05-18 14:49:25 -0400
commit8faa57445c40f39c2fde3e34b1ed534c0c74362f (patch)
treef3982f4ee9bb41c896c1e06c597a2b7623b61662 /plugins/org.eclipse.emf.cdo.dawn.codegen
parenta23e4749b64f9862c068647e6bb4783db9a88db7 (diff)
downloadcdo-8faa57445c40f39c2fde3e34b1ed534c0c74362f.tar.gz
cdo-8faa57445c40f39c2fde3e34b1ed534c0c74362f.tar.xz
cdo-8faa57445c40f39c2fde3e34b1ed534c0c74362f.zip
[308232] [Dawn] Develop collaborative support for GMF on CDO
https://bugs.eclipse.org/bugs/show_bug.cgi?id=308232
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn.codegen')
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen/META-INF/MANIFEST.MF7
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/creators/impl/GMFFragmentCreator.java9
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/util/ProjectCreationHelper.java3
3 files changed, 13 insertions, 6 deletions
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.dawn.codegen/META-INF/MANIFEST.MF
index 8bdbdcbc2d..25cb9c3dd6 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen/META-INF/MANIFEST.MF
@@ -32,8 +32,11 @@ Require-Bundle: com.ibm.icu;bundle-version="[4.0.0,5.0.0)",
org.eclipse.emf.cdo.dawn.codegen.dawngenmodel;bundle-version="[0.2.0,1.0.0)"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Export-Package: org.eclipse.emf.cdo.dawn.codegen;version="0.2.0",
+Export-Package: metamodel;version="0.2.0";x-internal:=true,
+ org.eclipse.emf.cdo.dawn.codegen;version="0.2.0",
org.eclipse.emf.cdo.dawn.codegen.actions;version="0.2.0",
org.eclipse.emf.cdo.dawn.codegen.creators;version="0.2.0",
org.eclipse.emf.cdo.dawn.codegen.creators.impl;version="0.2.0",
- org.eclipse.emf.cdo.dawn.codegen.util;version="0.2.0"
+ org.eclipse.emf.cdo.dawn.codegen.util;version="0.2.0",
+ template;version="0.2.0";x-internal:=true,
+ workflow;version="0.2.0";x-internal:=true
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/creators/impl/GMFFragmentCreator.java b/plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/creators/impl/GMFFragmentCreator.java
index c481c5ccf2..a7908d3e85 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/creators/impl/GMFFragmentCreator.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/creators/impl/GMFFragmentCreator.java
@@ -32,7 +32,6 @@ import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.pde.internal.core.natures.PDE;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
@@ -47,6 +46,10 @@ public class GMFFragmentCreator implements Creator
{
private final IResource selectedElement;
+ private final String PLUGIN_NATURE = "org.eclipse.pde.PluginNature";
+
+ private final String JAVA_NATURE = JavaCore.NATURE_ID;
+
public GMFFragmentCreator(IResource selectedElement)
{
this.selectedElement = selectedElement;
@@ -67,7 +70,9 @@ public class GMFFragmentCreator implements Creator
monitor.subTask("Create client fragment's basic structure");
- String[] natures = new String[] { JavaCore.NATURE_ID, PDE.PLUGIN_NATURE };
+ // String[] natures = new String[] { JavaCore.NATURE_ID, PDE.PLUGIN_NATURE };
+ String[] natures = new String[] { JAVA_NATURE, PLUGIN_NATURE };
+
ProjectCreationHelper projectCreationHelper = new ProjectCreationHelper();
projectCreationHelper.setName(dawnGMFGenerator.getFragmentName());
projectCreationHelper.setNatures(natures);
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/util/ProjectCreationHelper.java b/plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/util/ProjectCreationHelper.java
index 1d248f36f4..a7a05843ef 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/util/ProjectCreationHelper.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/util/ProjectCreationHelper.java
@@ -10,7 +10,6 @@
*/
package org.eclipse.emf.cdo.dawn.codegen.util;
-import org.eclipse.core.internal.resources.ResourceException;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
@@ -331,7 +330,7 @@ public class ProjectCreationHelper
javaProject.setOutputLocation(binFolder.getFullPath(), null);
}
}
- catch (ResourceException e)
+ catch (Exception e)
{
e.printStackTrace();
}

Back to the top