Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2016-08-04 19:16:09 +0000
committerRyan D. Brooks2016-08-31 16:18:15 +0000
commit256f2f783a48eadc8c0f7161567cc059cbe9c968 (patch)
tree74b6f35c6cdfbd0113e45a386100dccd8f0b1856 /plugins
parentf81fa23bf65fa3b12e9425c7ab208468b1bfefda (diff)
downloadorg.eclipse.osee-256f2f783a48eadc8c0f7161567cc059cbe9c968.tar.gz
org.eclipse.osee-256f2f783a48eadc8c0f7161567cc059cbe9c968.tar.xz
org.eclipse.osee-256f2f783a48eadc8c0f7161567cc059cbe9c968.zip
bug[ats_ATS306960]: Change Report title is 0
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/TransactionManager.java8
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/presenter/SpecificTxsHandler.java8
2 files changed, 11 insertions, 5 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/TransactionManager.java b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/TransactionManager.java
index 9994a3b1f8d..145576cea75 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/TransactionManager.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core/src/org/eclipse/osee/framework/skynet/core/transaction/TransactionManager.java
@@ -196,6 +196,14 @@ public final class TransactionManager {
return getTransactionRecord(txId);
}
+ public static String getComment(long txId) {
+ return getTransactionRecord(txId).getComment();
+ }
+
+ public static String getComment(TransactionId tx) {
+ return getComment(tx.getId());
+ }
+
private static TransactionRecord getTransactionRecord(long txId) {
JdbcClient jdbcClient = ConnectionHandler.getJdbcClient();
return jdbcClient.fetchOrException(
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/presenter/SpecificTxsHandler.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/presenter/SpecificTxsHandler.java
index b88f004ab5c..1512efe50a4 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/presenter/SpecificTxsHandler.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/change/presenter/SpecificTxsHandler.java
@@ -15,6 +15,7 @@ import java.util.logging.Level;
import org.eclipse.osee.framework.core.model.TransactionDelta;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.jdk.core.util.AXml;
+import org.eclipse.osee.framework.jdk.core.util.Strings;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.skynet.core.artifact.BranchManager;
import org.eclipse.osee.framework.skynet.core.transaction.TransactionManager;
@@ -46,11 +47,8 @@ public final class SpecificTxsHandler implements IChangeReportUiHandler {
OseeLog.log(Activator.class, Level.SEVERE, ex.toString(), ex);
branchName = "Unknown";
}
- String toReturn;
- Long commitArtId = TransactionManager.getCommitArtId(txDelta.getEndTx());
- if (commitArtId != null) {
- toReturn = String.format("%s", commitArtId);
- } else {
+ String toReturn = TransactionManager.getComment(txDelta.getEndTx());
+ if (!Strings.isValid(toReturn)) {
toReturn = String.format("%s - Transactions", branchName);
}
return toReturn;

Back to the top