Update of /cvsroot/queryviewer/queryviewer/src/net/sourceforge/queryviewer/ui/event
In directory sc8-pr-cvs1:/tmp/cvs-serv9181/src/net/sourceforge/queryviewer/ui/event
Modified Files:
ControlerFactory.java
Log Message:
les actions close connection et execute query sont grisées au départ.
Index: ControlerFactory.java
===================================================================
RCS file: /cvsroot/queryviewer/queryviewer/src/net/sourceforge/queryviewer/ui/event/ControlerFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ControlerFactory.java 17 Jun 2003 00:30:39 -0000 1.2
--- ControlerFactory.java 19 Jun 2003 22:52:39 -0000 1.3
***************
*** 1,5 ****
package net.sourceforge.queryviewer.ui.event;
-
import java.util.HashMap;
import java.util.Map;
--- 1,4 ----
***************
*** 44,51 ****
Query q = new Query();
this.actions = new HashMap();
! this.actions.put( ControlerFactory.OPEN_CONNECTION, new OpenControler( q ) );
! this.actions.put( ControlerFactory.CLOSE_CONNECTION, new CloseControler( q ) );
! this.actions.put( ControlerFactory.QUIT, new QuitControler( q ) );
! this.actions.put( ControlerFactory.EXECUTE_QUERY, new QueryControler( q ) );
} // ControlerFactory constructor
--- 43,56 ----
Query q = new Query();
this.actions = new HashMap();
! Action openC = new OpenControler( q );
! Action closeC = new CloseControler( q );
! closeC.setEnabled( false );
! Action quit = new QuitControler( q );
! Action query = new QueryControler( q );
! query.setEnabled( false );
! this.actions.put( ControlerFactory.OPEN_CONNECTION, openC );
! this.actions.put( ControlerFactory.CLOSE_CONNECTION, closeC );
! this.actions.put( ControlerFactory.QUIT, quit );
! this.actions.put( ControlerFactory.EXECUTE_QUERY, query);
} // ControlerFactory constructor
|