You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by le...@apache.org on 2002/09/06 04:35:17 UTC

cvs commit: jakarta-avalon-excalibur/instrument-client/src/java/org/apache/excalibur/instrument/client InstrumentManagerConnection.java

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>