Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2010-12-20 20:54:00 +0000
committerRyan D. Brooks2010-12-20 20:54:00 +0000
commit883401f083e3addbebe036d7fc29f173333c88cb (patch)
treeea07e5a722e498f4f8af2143eeb13930e70589d2
parent4c96ee12281639f69abdb935b8287ebc944a9c0f (diff)
downloadorg.eclipse.osee-883401f083e3addbebe036d7fc29f173333c88cb.tar.gz
org.eclipse.osee-883401f083e3addbebe036d7fc29f173333c88cb.tar.xz
org.eclipse.osee-883401f083e3addbebe036d7fc29f173333c88cb.zip
bug[ats_ZWHJQ]: Change report blank after branch commit
The change report editor caches ChangeUiData to generate the change report. This information is provided by the application launching the change report. Since branch event don't have enough information to accurately reflect where a source branch was committed into, we have no other choice but to close the change report when it detects that one of its branches has been committed. The user will have to relaunch the change report using the correct upstream application (ATS, Branch Manager, etc).
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/view/ChangeReportEditor.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/view/ChangeReportEditor.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/view/ChangeReportEditor.java
index 9b18c6a2617..6707ed02e52 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/view/ChangeReportEditor.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/view/ChangeReportEditor.java
@@ -24,7 +24,6 @@ import org.eclipse.osee.framework.skynet.core.event.filter.IEventFilter;
import org.eclipse.osee.framework.skynet.core.event.listener.IBranchEventListener;
import org.eclipse.osee.framework.skynet.core.event.listener.ITransactionEventListener;
import org.eclipse.osee.framework.skynet.core.event.model.BranchEvent;
-import org.eclipse.osee.framework.skynet.core.event.model.BranchEventType;
import org.eclipse.osee.framework.skynet.core.event.model.Sender;
import org.eclipse.osee.framework.skynet.core.event.model.TransactionChange;
import org.eclipse.osee.framework.skynet.core.event.model.TransactionEvent;
@@ -180,10 +179,14 @@ public class ChangeReportEditor extends FormEditor implements IChangeReportView
}
for (Branch branch : branches) {
if (branch != null && branch.getGuid().equals(branchEvent.getBranchGuid())) {
- if (branchEvent.getEventType() == BranchEventType.Deleted && branchEvent.getEventType() == BranchEventType.Purged) {
- close(false);
- } else if (branchEvent.getEventType() == BranchEventType.Committed) {
- recomputeChangeReport();
+ switch (branchEvent.getEventType()) {
+ case Deleted:
+ case Purged:
+ case Committed:
+ close(false);
+ break;
+ default:
+ break;
}
}
}

Back to the top