atom feed1 message in net.java.dev.jtharness.commitssvn commit: r832 - branches/users/sbo...
FromSent OnAttachments
serg...@dev.java.netMar 24, 2008 5:44 am 
Subject:svn commit: r832 - branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec
From:serg...@dev.java.net (serg@dev.java.net)
Date:Mar 24, 2008 5:44:00 am
List:net.java.dev.jtharness.commits

Author: sergey_borodin Date: 2008-03-24 12:43:59+0000 New Revision: 832

Modified: branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TP_DocumentationSubpanel.java branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TP_Subpanel.java branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TestPanel.java

Log:

Modified:
branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TP_DocumentationSubpanel.java Url:
https://jtharness.dev.java.net/source/browse/jtharness/branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TP_DocumentationSubpanel.java?view=diff&rev=832&p1=branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TP_DocumentationSubpanel.java&p2=branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TP_DocumentationSubpanel.java&r1=831&r2=832 ============================================================================== ---
branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TP_DocumentationSubpanel.java
(original) +++
branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TP_DocumentationSubpanel.java
2008-03-24 12:43:59+0000 @@ -44,15 +44,6 @@ initGUI(); }

- public boolean isEnabled(TestResult currTest) { - try { - TestDescription td = currTest.getDescription(); - return testSuite.getDocsForTest(td) != null; - } catch (TestResult.Fault e) { - return false; - } - } - private void initGUI() { setLayout(new BorderLayout());

Modified:
branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TP_Subpanel.java Url:
https://jtharness.dev.java.net/source/browse/jtharness/branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TP_Subpanel.java?view=diff&rev=832&p1=branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TP_Subpanel.java&p2=branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TP_Subpanel.java&r1=831&r2=832 ============================================================================== ---
branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TP_Subpanel.java
(original) +++
branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TP_Subpanel.java
2008-03-24 12:43:59+0000 @@ -52,6 +52,10 @@ void setTestSuite(TestSuite ts) { testSuite = ts; } + + TestSuite getTestSuite() { + return testSuite; + }

boolean isUpdateRequired(TestResult currTest) { return (subpanelTest != currTest);

Modified:
branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TestPanel.java Url:
https://jtharness.dev.java.net/source/browse/jtharness/branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TestPanel.java?view=diff&rev=832&p1=branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TestPanel.java&p2=branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TestPanel.java&r1=831&r2=832 ============================================================================== ---
branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TestPanel.java
(original) +++
branches/users/sborodin/cr_6662107/code/src/com/sun/javatest/exec/TestPanel.java
2008-03-24 12:43:59+0000 @@ -164,11 +164,16 @@ // always got a test description tabs.setEnabledAt(tabs.indexOfComponent(descPanel), true);

- // always got documentation FeatureManager fm = contextManager.getFeatureManager(); if (fm.isEnabled(fm.SHOW_DOCS_FOR_TEST)) { - tabs.setEnabledAt(tabs.indexOfComponent(docPanel), - docPanel.isEnabled(currTest)); + try { + TestDescription td = currTest.getDescription(); + TestSuite testSuite = docPanel.getTestSuite(); + tabs.setEnabledAt(tabs.indexOfComponent(docPanel), + testSuite.getDocsForTest(td) != null); + } catch (TestResult.Fault e) { + // ignore it + } }

// always got source files