@@ -142,6 +142,7 @@ public class RunnerPanel {
142142    private  RunnerTextField  testPackageTextField ;
143143    private  RunnerTextField  testProcedureTextField ;
144144    private  RunnerTextArea  testDescriptionTextArea ;
145+     private  RunnerTextArea  testDisabledReasonTextArea ;
145146    private  RunnerTextArea  testIdTextArea ;
146147    private  RunnerTextField  testStartTextField ;
147148    private  FailuresTableModel  failuresTableModel ;
@@ -249,6 +250,7 @@ private void resetDerived() {
249250        testPackageTextField .setText (null );
250251        testProcedureTextField .setText (null );
251252        testDescriptionTextArea .setText (null );
253+         testDisabledReasonTextArea .setText (null );
252254        testStartTextField .setText (null );
253255        failuresTableModel .setModel (null );
254256        failuresTableModel .fireTableDataChanged ();
@@ -1345,6 +1347,7 @@ private void initializeGUI() {
13451347                testPackageTextField .setText (test .getObjectName ());
13461348                testProcedureTextField .setText (test .getProcedureName ());
13471349                testDescriptionTextArea .setText (StringTools .trim (test .getDescription ()));
1350+                 testDisabledReasonTextArea .setText (StringTools .trim (test .getDisabledReason ()));
13481351                testIdTextArea .setText (test .getId ());
13491352                testStartTextField .setText (StringTools .formatDateTime (test .getStartTime ()));
13501353                failuresTableModel .setModel (test .getFailedExpectations ());
@@ -1445,11 +1448,12 @@ public Component getTableCellRendererComponent(final JTable table, final Object
14451448                    if  (test .getFailedExpectations () != null  && !test .getFailedExpectations ().isEmpty ()) {
14461449                        failuresTable .setRowSelectionInterval (0 , 0 );
14471450                    }
1451+                     testDisabledReasonTextArea .setText (test .getDisabledReason ());
14481452                } else  {
14491453                    failuresTableModel .setModel (null );
14501454                    failuresTableModel .fireTableDataChanged ();
14511455                    testFailureMessageTextPane .setText (null );
1452-                     
1456+                     testDisabledReasonTextArea . setText ( null ); 
14531457                }
14541458                testErrorStackTextPane .setText (getHtml (StringTools .trim (item .getErrorStack ())));
14551459                testWarningsTextPane .setText (getHtml (StringTools .trim (item .getWarnings ())));
@@ -1714,11 +1718,39 @@ public Component getTreeCellRendererComponent(JTree tree, Object value, boolean
17141718        c .weightx  = 1 ;
17151719        c .weighty  = 0 ;
17161720        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 );
17171749        // - Suitepath (id) 
17181750        final  JLabel  testIdLabel  = new  JLabel (UtplsqlResources .getString ("RUNNER_TEST_ID_COLUMN" ));
17191751        testIdLabel .setBorder (BorderFactory .createEmptyBorder (isMacLookAndFeel () ? 5  : 3 , 0 , 0 , 0 ));
17201752        c .gridx  = 0 ;
1721-         c .gridy  = 4 ;
1753+         c .gridy  = 5 ;
17221754        c .gridwidth  = 1 ;
17231755        c .gridheight  = 1 ;
17241756        c .insets  = new  Insets (5 , 10 , 0 , 0 ); // top, left, bottom, right 
@@ -1733,7 +1765,7 @@ public Component getTreeCellRendererComponent(JTree tree, Object value, boolean
17331765        testIdTextArea .setLineWrap (true );
17341766        testIdTextArea .setWrapStyleWord (false );
17351767        c .gridx  = 1 ;
1736-         c .gridy  = 4 ;
1768+         c .gridy  = 5 ;
17371769        c .gridwidth  = 1 ;
17381770        c .gridheight  = 1 ;
17391771        c .insets  = new  Insets (5 , 5 , 0 , 10 ); // top, left, bottom, right 
@@ -1745,7 +1777,7 @@ public Component getTreeCellRendererComponent(JTree tree, Object value, boolean
17451777        // - Start 
17461778        final  JLabel  testStartLabel  = new  JLabel (UtplsqlResources .getString ("RUNNER_START_LABEL" ));
17471779        c .gridx  = 0 ;
1748-         c .gridy  = 5 ;
1780+         c .gridy  = 6 ;
17491781        c .gridwidth  = 1 ;
17501782        c .gridheight  = 1 ;
17511783        c .insets  = new  Insets (5 , 10 , 10 , 0 ); // top, left, bottom, right 
@@ -1757,7 +1789,7 @@ public Component getTreeCellRendererComponent(JTree tree, Object value, boolean
17571789        testStartTextField  = new  RunnerTextField ();
17581790        testStartTextField .setEditable (false );
17591791        c .gridx  = 1 ;
1760-         c .gridy  = 5 ;
1792+         c .gridy  = 6 ;
17611793        c .gridwidth  = 1 ;
17621794        c .gridheight  = 1 ;
17631795        c .insets  = new  Insets (5 , 5 , 10 , 10 ); // top, left, bottom, right 
@@ -1766,8 +1798,9 @@ public Component getTreeCellRendererComponent(JTree tree, Object value, boolean
17661798        c .weightx  = 1 ;
17671799        c .weighty  = 0 ;
17681800        testInfoPanel .add (testStartTextField , c );
1801+         // - Vertical filler 
17691802        c .gridx  = 0 ;
1770-         c .gridy  = 6 ;
1803+         c .gridy  = 7 ;
17711804        c .gridwidth  = 1 ;
17721805        c .gridheight  = 1 ;
17731806        c .insets  = new  Insets (0 , 0 , 0 , 0 ); // top, left, bottom, right 
@@ -1944,10 +1977,12 @@ public void mouseClicked(final MouseEvent e) {
19441977                    BorderFactory .createCompoundBorder (BorderFactory .createLineBorder (new  Color (219 , 219 , 219 )),
19451978                            BorderFactory .createEmptyBorder (1 , 1 , 1 , 1 )));
19461979            testDescriptionTextArea .setBorder (border );
1980+             testDisabledReasonTextArea .setBorder (border );
19471981            testIdTextArea .setBorder (border );
19481982        } else  {
19491983            final  Border  referenceBorder  = testOwnerTextField .getBorder ();
19501984            testDescriptionTextArea .setBorder (referenceBorder );
1985+             testDisabledReasonTextArea .setBorder (referenceBorder );
19511986            testIdTextArea .setBorder (referenceBorder );
19521987        }
19531988    }
0 commit comments