avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/instrument-client/src/java/org/apache/excalibur/instrument/client InstrumentManagerConnection.java
Date Fri, 06 Sep 2002 02:35:17 GMT
leif        2002/09/05 19:35:17

  Modified:    instrument-client/src/java/org/apache/excalibur/instrument/client
                        InstrumentManagerConnection.java
  Log:
  Fix a problem where double clicking on a sample in the tree was not correctly
  selecting that sample if it was already visible.
  
  Revision  Changes    Path
  1.6       +12 -1     jakarta-avalon-excalibur/instrument-client/src/java/org/apache/excalibur/instrument/client/InstrumentManagerConnection.java
  
  Index: InstrumentManagerConnection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/instrument-client/src/java/org/apache/excalibur/instrument/client/InstrumentManagerConnection.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- InstrumentManagerConnection.java	6 Sep 2002 02:14:09 -0000	1.5
  +++ InstrumentManagerConnection.java	6 Sep 2002 02:35:17 -0000	1.6
  @@ -688,6 +688,7 @@
           }
           
           sampleFrame.show();
  +        // Need to restore the frame if it is an icon.
           if ( sampleFrame.isIcon() )
           {
               // Restore the sample frame.
  @@ -696,6 +697,16 @@
                   sampleFrame.setIcon( false );
               }
               catch ( PropertyVetoException e ) {}
  +        }
  +        
  +        // Set the focus of the frame so that it is selected and on top.
  +        try
  +        {
  +            sampleFrame.setSelected( true );
  +        }
  +        catch ( PropertyVetoException e )
  +        {
  +            // Shouldn't happen, but ignore if it does.
           }
       }
       
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message