diff options
author | Remi Schnekenburger | 2015-05-13 07:30:18 +0000 |
---|---|---|
committer | Remi Schnekenburger | 2015-05-13 08:55:17 +0000 |
commit | e94b01d09ea949b28be30f2e65213f1cb4faf261 (patch) | |
tree | c047a224e22ae9a6ad7b46e64a5390eb4824ee0a /plugins/uml/org.eclipse.papyrus.uml.service.types | |
parent | 13b95c97e363e3384d4948e30dd3984e6f91f592 (diff) | |
download | org.eclipse.papyrus-e94b01d09ea949b28be30f2e65213f1cb4faf261.tar.gz org.eclipse.papyrus-e94b01d09ea949b28be30f2e65213f1cb4faf261.tar.xz org.eclipse.papyrus-e94b01d09ea949b28be30f2e65213f1cb4faf261.zip |
Resolving conflicts when merging branch 425565-relationshipModelExplorer
in master
Diffstat (limited to 'plugins/uml/org.eclipse.papyrus.uml.service.types')
-rw-r--r-- | plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/AbstractStereotypedElementEditHelperAdvice.java | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/AbstractStereotypedElementEditHelperAdvice.java b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/AbstractStereotypedElementEditHelperAdvice.java index ce516f6ba1b..bf839b2cf18 100644 --- a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/AbstractStereotypedElementEditHelperAdvice.java +++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/helper/advice/AbstractStereotypedElementEditHelperAdvice.java @@ -74,12 +74,26 @@ public abstract class AbstractStereotypedElementEditHelperAdvice extends Abstrac } // do not try to get the Profile, as this can be time consuming and dependent on the size of the model boolean requiredProfileApplied = false; - URI requiredProfileURI = EcoreUtil.getURI(requiredProfile); + URI requiredProfileURI = null; + try { + requiredProfileURI = EcoreUtil.getURI(requiredProfile); + } catch (Exception e) { + Activator.log.debug("Impossible to find URI for this profile"); + return true; + } + for (Profile profile : profileApplicationContext.getAllAppliedProfiles()) { EPackage definition = profile.getDefinition(); // compare definition & requireProfiles - URI appliedProfileURI = EcoreUtil.getURI(definition); - if (requiredProfileURI.equals(appliedProfileURI)) { + + URI appliedProfileURI = null; + try { + appliedProfileURI = EcoreUtil.getURI(definition); + } catch (Exception e) { + Activator.log.debug("Impossible to find URI for this profile"); + } + + if (requiredProfileURI != null && requiredProfileURI.equals(appliedProfileURI)) { requiredProfileApplied = true; break; // this required profile has been found, accept this one } |