Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Fluegge2010-11-14 08:01:01 -0500
committerMartin Fluegge2010-11-14 08:01:01 -0500
commitb06c837fe7a339d1859ca7f27032d1fc83ee87b9 (patch)
tree5d0bac84c7e5441e9eac23dc9771755a4ab1ab65 /plugins/org.eclipse.emf.cdo.dawn.codegen
parent5e9a34290fbe33f91f59bb98dd53e4773cbbedda (diff)
downloadcdo-b06c837fe7a339d1859ca7f27032d1fc83ee87b9.tar.gz
cdo-b06c837fe7a339d1859ca7f27032d1fc83ee87b9.tar.xz
cdo-b06c837fe7a339d1859ca7f27032d1fc83ee87b9.zip
[330196] [Dawn] DawnGenModel creation throws FileNotFoundException
https://bugs.eclipse.org/bugs/show_bug.cgi?id=330196
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn.codegen')
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/actions/GenerateDawnGenModelAction.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/actions/GenerateDawnGenModelAction.java b/plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/actions/GenerateDawnGenModelAction.java
index 85157774e3..196afb7af6 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/actions/GenerateDawnGenModelAction.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.codegen/src/org/eclipse/emf/cdo/dawn/codegen/actions/GenerateDawnGenModelAction.java
@@ -45,7 +45,6 @@ import java.util.Collections;
*/
public class GenerateDawnGenModelAction implements IObjectActionDelegate
{
-
private IResource selectedElement;
public static final String dawngenmodelFileExtension = "dawngenmodel";
@@ -202,7 +201,15 @@ public class GenerateDawnGenModelAction implements IObjectActionDelegate
{
String dawnGenModelResourcePath = path + "" + modelname + "." + dawngenmodelFileExtension;
URI uri = URI.createURI(dawnGenModelResourcePath);
- Resource dawnGenModelResource = resourceSet.getResource(uri, true);
+ Resource dawnGenModelResource = null;
+ try
+ {
+ dawnGenModelResource = resourceSet.getResource(uri, true);
+ }
+ catch (Exception ignore)
+ {
+ // ignore
+ }
if (dawnGenModelResource == null)
{

Back to the top