Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2013-07-24 16:07:05 +0000
committerCamille Letavernier2013-07-24 16:08:49 +0000
commitc77e76590bd61c44a8075ec5a9cddbbf981ae1ed (patch)
tree6c7a6636da14e93d98f87fd156c2c272b5a139cc /plugins/uml/org.eclipse.papyrus.uml.profile
parent6e109e8db7159055446a32881742e152f65bbea6 (diff)
downloadorg.eclipse.papyrus-c77e76590bd61c44a8075ec5a9cddbbf981ae1ed.tar.gz
org.eclipse.papyrus-c77e76590bd61c44a8075ec5a9cddbbf981ae1ed.tar.xz
org.eclipse.papyrus-c77e76590bd61c44a8075ec5a9cddbbf981ae1ed.zip
408491: Papyrus shall enable to easily switch between local and
registered profiles. https://bugs.eclipse.org/bugs/show_bug.cgi?id=408491 Add a menu in the Project Explorer to switch between two profiles (Local/Registered, Local/Local, ...)
Diffstat (limited to 'plugins/uml/org.eclipse.papyrus.uml.profile')
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.profile/src/org/eclipse/papyrus/uml/profile/model/ProfileApplicationModel.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.uml.profile/src/org/eclipse/papyrus/uml/profile/model/ProfileApplicationModel.java b/plugins/uml/org.eclipse.papyrus.uml.profile/src/org/eclipse/papyrus/uml/profile/model/ProfileApplicationModel.java
index e71930db430..54458773c2d 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.profile/src/org/eclipse/papyrus/uml/profile/model/ProfileApplicationModel.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.profile/src/org/eclipse/papyrus/uml/profile/model/ProfileApplicationModel.java
@@ -89,6 +89,10 @@ public class ProfileApplicationModel implements IModelSetSnippet {
}
protected boolean checkAndRefreshProfiles(Package currentPackage) {
+ if(Display.getCurrent() == null) {
+ return false;
+ }
+
for(Profile profile : currentPackage.getAppliedProfiles()) {
if(ProfileUtil.isDirty(currentPackage, profile)) {
RefreshProfileDialog dialog = new RefreshProfileDialog(Display.getCurrent().getActiveShell(), this.rootPackage);

Back to the top