Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Cela2012-09-17 08:30:32 +0000
committerSopot Cela2012-09-17 08:30:32 +0000
commit594898081eddcd77269612f4a4e1ccb1134a730e (patch)
tree4f3bbf7ddbd32afe3bfaf5a0d7e296927128045e
parentbae1d221a4ef48b71a4aefce5c245d670251cd51 (diff)
downloadorg.eclipse.e4.tools-594898081eddcd77269612f4a4e1ccb1134a730e.tar.gz
org.eclipse.e4.tools-594898081eddcd77269612f4a4e1ccb1134a730e.tar.xz
org.eclipse.e4.tools-594898081eddcd77269612f4a4e1ccb1134a730e.zip
ASSIGNED - bug 389022: URI in Model AddOn
https://bugs.eclipse.org/bugs/show_bug.cgi?id=389022
-rw-r--r--bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/AddonContributionEditor.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/AddonContributionEditor.java b/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/AddonContributionEditor.java
index 87fa59a3..6b8fb1cd 100644
--- a/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/AddonContributionEditor.java
+++ b/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/extension/AddonContributionEditor.java
@@ -105,8 +105,16 @@ public class AddonContributionEditor implements IContributionClassCreator {
// TODO If this is not a WS-Resource we need to open differently
if (p != null) {
IJavaProject jp = JavaCore.create(p);
+ IType t = null;
try {
- IType t = jp.findType(fullyQualified);
+ if (p.exists()){
+ t = jp.findType(fullyQualified);
+ }
+ else
+ {
+ IJavaProject pprim = JavaCore.create(project);
+ t = pprim.findType(fullyQualified);
+ }
if( t != null ) {
JavaUI.openInEditor(t);
} else {

Back to the top