@@ -142,6 +142,7 @@ public class RunnerPanel {
142
142
private RunnerTextField testPackageTextField ;
143
143
private RunnerTextField testProcedureTextField ;
144
144
private RunnerTextArea testDescriptionTextArea ;
145
+ private RunnerTextArea testDisabledReasonTextArea ;
145
146
private RunnerTextArea testIdTextArea ;
146
147
private RunnerTextField testStartTextField ;
147
148
private FailuresTableModel failuresTableModel ;
@@ -249,6 +250,7 @@ private void resetDerived() {
249
250
testPackageTextField .setText (null );
250
251
testProcedureTextField .setText (null );
251
252
testDescriptionTextArea .setText (null );
253
+ testDisabledReasonTextArea .setText (null );
252
254
testStartTextField .setText (null );
253
255
failuresTableModel .setModel (null );
254
256
failuresTableModel .fireTableDataChanged ();
@@ -1345,6 +1347,7 @@ private void initializeGUI() {
1345
1347
testPackageTextField .setText (test .getObjectName ());
1346
1348
testProcedureTextField .setText (test .getProcedureName ());
1347
1349
testDescriptionTextArea .setText (StringTools .trim (test .getDescription ()));
1350
+ testDisabledReasonTextArea .setText (StringTools .trim (test .getDisabledReason ()));
1348
1351
testIdTextArea .setText (test .getId ());
1349
1352
testStartTextField .setText (StringTools .formatDateTime (test .getStartTime ()));
1350
1353
failuresTableModel .setModel (test .getFailedExpectations ());
@@ -1445,11 +1448,12 @@ public Component getTableCellRendererComponent(final JTable table, final Object
1445
1448
if (test .getFailedExpectations () !=null && !test .getFailedExpectations ().isEmpty ()) {
1446
1449
failuresTable .setRowSelectionInterval (0 ,0 );
1447
1450
}
1451
+ testDisabledReasonTextArea .setText (test .getDisabledReason ());
1448
1452
}else {
1449
1453
failuresTableModel .setModel (null );
1450
1454
failuresTableModel .fireTableDataChanged ();
1451
1455
testFailureMessageTextPane .setText (null );
1452
-
1456
+ testDisabledReasonTextArea . setText ( null );
1453
1457
}
1454
1458
testErrorStackTextPane .setText (getHtml (StringTools .trim (item .getErrorStack ())));
1455
1459
testWarningsTextPane .setText (getHtml (StringTools .trim (item .getWarnings ())));
@@ -1714,11 +1718,39 @@ public Component getTreeCellRendererComponent(JTree tree, Object value, boolean
1714
1718
c .weightx =1 ;
1715
1719
c .weighty =0 ;
1716
1720
testInfoPanel .add (testDescriptionTextArea ,c );
1721
+ // - Disabled Reason
1722
+ final JLabel testDisabledReasonLabel =new JLabel (UtplsqlResources .getString ("RUNNER_DISABLED_REASON_LABEL" ));
1723
+ testDisabledReasonLabel .setBorder (BorderFactory .createEmptyBorder (isMacLookAndFeel () ?5 :3 ,0 ,0 ,0 ));
1724
+ c .gridx =0 ;
1725
+ c .gridy =4 ;
1726
+ c .gridwidth =1 ;
1727
+ c .gridheight =1 ;
1728
+ c .insets =new Insets (5 ,10 ,0 ,0 );// top, left, bottom, right
1729
+ c .anchor =GridBagConstraints .NORTHWEST ;
1730
+ c .fill =GridBagConstraints .NONE ;
1731
+ c .weightx =0 ;
1732
+ c .weighty =0 ;
1733
+ testInfoPanel .add (testDisabledReasonLabel ,c );
1734
+ testDisabledReasonTextArea =new RunnerTextArea ();
1735
+ testDisabledReasonTextArea .setEditable (false );
1736
+ testDisabledReasonTextArea .setEnabled (true );
1737
+ testDisabledReasonTextArea .setLineWrap (true );
1738
+ testDisabledReasonTextArea .setWrapStyleWord (true );
1739
+ c .gridx =1 ;
1740
+ c .gridy =4 ;
1741
+ c .gridwidth =1 ;
1742
+ c .gridheight =1 ;
1743
+ c .insets =new Insets (5 ,5 ,0 ,10 );// top, left, bottom, right
1744
+ c .anchor =GridBagConstraints .WEST ;
1745
+ c .fill =GridBagConstraints .HORIZONTAL ;
1746
+ c .weightx =1 ;
1747
+ c .weighty =0 ;
1748
+ testInfoPanel .add (testDisabledReasonTextArea ,c );
1717
1749
// - Suitepath (id)
1718
1750
final JLabel testIdLabel =new JLabel (UtplsqlResources .getString ("RUNNER_TEST_ID_COLUMN" ));
1719
1751
testIdLabel .setBorder (BorderFactory .createEmptyBorder (isMacLookAndFeel () ?5 :3 ,0 ,0 ,0 ));
1720
1752
c .gridx =0 ;
1721
- c .gridy =4 ;
1753
+ c .gridy =5 ;
1722
1754
c .gridwidth =1 ;
1723
1755
c .gridheight =1 ;
1724
1756
c .insets =new Insets (5 ,10 ,0 ,0 );// top, left, bottom, right
@@ -1733,7 +1765,7 @@ public Component getTreeCellRendererComponent(JTree tree, Object value, boolean
1733
1765
testIdTextArea .setLineWrap (true );
1734
1766
testIdTextArea .setWrapStyleWord (false );
1735
1767
c .gridx =1 ;
1736
- c .gridy =4 ;
1768
+ c .gridy =5 ;
1737
1769
c .gridwidth =1 ;
1738
1770
c .gridheight =1 ;
1739
1771
c .insets =new Insets (5 ,5 ,0 ,10 );// top, left, bottom, right
@@ -1745,7 +1777,7 @@ public Component getTreeCellRendererComponent(JTree tree, Object value, boolean
1745
1777
// - Start
1746
1778
final JLabel testStartLabel =new JLabel (UtplsqlResources .getString ("RUNNER_START_LABEL" ));
1747
1779
c .gridx =0 ;
1748
- c .gridy =5 ;
1780
+ c .gridy =6 ;
1749
1781
c .gridwidth =1 ;
1750
1782
c .gridheight =1 ;
1751
1783
c .insets =new Insets (5 ,10 ,10 ,0 );// top, left, bottom, right
@@ -1757,7 +1789,7 @@ public Component getTreeCellRendererComponent(JTree tree, Object value, boolean
1757
1789
testStartTextField =new RunnerTextField ();
1758
1790
testStartTextField .setEditable (false );
1759
1791
c .gridx =1 ;
1760
- c .gridy =5 ;
1792
+ c .gridy =6 ;
1761
1793
c .gridwidth =1 ;
1762
1794
c .gridheight =1 ;
1763
1795
c .insets =new Insets (5 ,5 ,10 ,10 );// top, left, bottom, right
@@ -1766,8 +1798,9 @@ public Component getTreeCellRendererComponent(JTree tree, Object value, boolean
1766
1798
c .weightx =1 ;
1767
1799
c .weighty =0 ;
1768
1800
testInfoPanel .add (testStartTextField ,c );
1801
+ // - Vertical filler
1769
1802
c .gridx =0 ;
1770
- c .gridy =6 ;
1803
+ c .gridy =7 ;
1771
1804
c .gridwidth =1 ;
1772
1805
c .gridheight =1 ;
1773
1806
c .insets =new Insets (0 ,0 ,0 ,0 );// top, left, bottom, right
@@ -1944,10 +1977,12 @@ public void mouseClicked(final MouseEvent e) {
1944
1977
BorderFactory .createCompoundBorder (BorderFactory .createLineBorder (new Color (219 ,219 ,219 )),
1945
1978
BorderFactory .createEmptyBorder (1 ,1 ,1 ,1 )));
1946
1979
testDescriptionTextArea .setBorder (border );
1980
+ testDisabledReasonTextArea .setBorder (border );
1947
1981
testIdTextArea .setBorder (border );
1948
1982
}else {
1949
1983
final Border referenceBorder =testOwnerTextField .getBorder ();
1950
1984
testDescriptionTextArea .setBorder (referenceBorder );
1985
+ testDisabledReasonTextArea .setBorder (referenceBorder );
1951
1986
testIdTextArea .setBorder (referenceBorder );
1952
1987
}
1953
1988
}