summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2011-05-18 18:31:56 (EDT)
committerRyan D. Brooks2011-05-18 18:31:56 (EDT)
commit3afd175f6f5a06036973d92002bebd7474e11d5a (patch)
tree71c8180ba87691a1af4b673648108b54c6e82f27
parent2adfc93637482f77727be7e3d239d332d04195d4 (diff)
downloadorg.eclipse.osee-3afd175f6f5a06036973d92002bebd7474e11d5a.zip
org.eclipse.osee-3afd175f6f5a06036973d92002bebd7474e11d5a.tar.gz
org.eclipse.osee-3afd175f6f5a06036973d92002bebd7474e11d5a.tar.bz2
bug[bgz_346890]: Access control events not sent to artifact editor
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditorEventManager.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditorEventManager.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditorEventManager.java
index 85a493d..3993e3b 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditorEventManager.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/artifact/editor/ArtifactEditorEventManager.java
@@ -15,6 +15,7 @@ import java.util.Collection;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.logging.Level;
+import org.eclipse.osee.framework.core.enums.CoreArtifactTypes;
import org.eclipse.osee.framework.core.model.event.DefaultBasicGuidArtifact;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
@@ -100,14 +101,21 @@ public class ArtifactEditorEventManager implements IArtifactEventListener, IBran
if (!modifiedArts.isEmpty() || !relModifiedArts.isEmpty() || !relOrderChangedArtifacts.isEmpty()) {
for (IArtifactEditorEventHandler handler : handlers) {
try {
- if (!handler.isDisposed()) {
- if (handler.getArtifactFromEditorInput() != null && modifiedArts.contains(handler.getArtifactFromEditorInput())) {
+ if (!handler.isDisposed() && handler.getArtifactFromEditorInput() != null) {
+
+ if (modifiedArts.contains(handler.getArtifactFromEditorInput())) {
handler.refreshDirtyArtifact();
}
+ for (Artifact art : modifiedArts) {
+ if (art.isOfType(CoreArtifactTypes.AccessControlModel)) {
+ handler.refreshDirtyArtifact();
+ }
+ }
+
boolean relModified = relModifiedArts.contains(handler.getArtifactFromEditorInput());
boolean reorderArt = relOrderChangedArtifacts.contains(handler.getArtifactFromEditorInput());
- if (handler.getArtifactFromEditorInput() != null && (relModified || reorderArt)) {
+ if (relModified || reorderArt) {
handler.refreshRelations();
handler.getEditor().onDirtied();
}