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

Author: sergey_borodin Date: 2008-03-26 13:31:29+0000 New Revision: 834

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=834&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=833&r2=834 ============================================================================== ---
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-26 13:31:29+0000 @@ -72,6 +72,10 @@ return; } } + + public URL[] getDocuments() { + return filelist; + }

private void setPanel(JPanel p) { if(p != null) {

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=834&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=833&r2=834 ============================================================================== ---
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-26 13:31:29+0000 @@ -52,10 +52,6 @@ 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=834&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=833&r2=834 ============================================================================== ---
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-26 13:31:29+0000 @@ -164,18 +164,18 @@ // always got a test description tabs.setEnabledAt(tabs.indexOfComponent(descPanel), true);

- FeatureManager fm = contextManager.getFeatureManager(); - if (fm.isEnabled(fm.SHOW_DOCS_FOR_TEST)) { - try { - TestDescription td = currTest.getDescription(); - TestSuite testSuite = docPanel.getTestSuite(); - tabs.setEnabledAt(tabs.indexOfComponent(docPanel), - testSuite.getDocsForTest(td) != null); - } catch (TestResult.Fault e) { - // ignore it - } - } - +// FeatureManager fm = contextManager.getFeatureManager(); +// if (fm.isEnabled(fm.SHOW_DOCS_FOR_TEST)) { +// 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 tabs.setEnabledAt(tabs.indexOfComponent(filesPanel), true);

@@ -206,10 +206,20 @@

// should consider tracking test, if test is mutable // and enable tabs/status as required - - if (currPanel.isUpdateRequired(currTest)) + if (currPanel.isUpdateRequired(currTest)) { currPanel.updateSubpanel(currTest); - + } + + FeatureManager fm = contextManager.getFeatureManager(); + if (fm.isEnabled(fm.SHOW_DOCS_FOR_TEST)) { + if (docPanel.isUpdateRequired(currTest)) { + docPanel.updateSubpanel(currTest); + } + tabs.setEnabledAt(tabs.indexOfComponent(docPanel), + docPanel.getDocuments() != null); + + } + } }