KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > tools > mapping > reversedb > gui > actions > SetPackageAction


1 package org.apache.ojb.tools.mapping.reversedb.gui.actions;
2
3 /* Copyright 2002-2005 The Apache Software Foundation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17  
18 /**
19  *
20  * @author <a HREF="mailto:bfl@florianbruckner.com">Florian Bruckner</a>
21  * @version $Id: SetPackageAction.java,v 1.1.2.1 2005/12/21 22:32:06 tomdz Exp $
22  */

23 public class SetPackageAction extends javax.swing.AbstractAction JavaDoc
24 {
25   org.apache.ojb.tools.mapping.reversedb.gui.JFrmMainFrame mainFrame;
26   
27   /** Creates a new instance of SetPackageAction */
28   public SetPackageAction (org.apache.ojb.tools.mapping.reversedb.gui.JFrmMainFrame pmainFrame)
29   {
30     super();
31     mainFrame = pmainFrame;
32     this.putValue(NAME, "Set Package");
33   }
34   
35   public void actionPerformed (java.awt.event.ActionEvent JavaDoc actionEvent)
36   {
37     String JavaDoc strPackageName = javax.swing.JOptionPane.showInputDialog(
38       mainFrame, "Enter the package name you wish to set",
39       "Set Package Name", javax.swing.JOptionPane.QUESTION_MESSAGE);
40     if (strPackageName != null)
41       mainFrame.getDBMeta().setPackage(strPackageName);
42   }
43 }
44
45 /***************************** Changelog *****************************
46 // $Log: SetPackageAction.java,v $
47 // Revision 1.1.2.1 2005/12/21 22:32:06 tomdz
48 // Updated license
49 //
50 // Revision 1.1 2004/05/05 16:38:25 arminw
51 // fix fault
52 // wrong package structure used:
53 // org.apache.ojb.tools.reversdb
54 // org.apache.ojb.tools.reversdb2
55 //
56 // instead of
57 // org.apache.ojb.tools.mapping.reversdb
58 // org.apache.ojb.tools.mapping.reversdb2
59 //
60 // Revision 1.1 2004/05/04 13:44:59 arminw
61 // move reverseDB stuff
62 //
63 // Revision 1.6 2004/04/05 12:16:24 tomdz
64 // Fixed/updated license in files leftover from automatic license transition
65 //
66 // Revision 1.5 2004/04/04 23:53:42 brianm
67 // Fixed initial copyright dates to match cvs repository
68 //
69 // Revision 1.4 2004/03/11 18:16:23 brianm
70 // ASL 2.0
71 //
72 // Revision 1.3 2002/11/08 13:47:38 brj
73 // corrected some compiler warnings
74 //
75 // Revision 1.2 2002/06/17 19:34:34 jvanzyl
76 // Correcting all the package references.
77 // PR:
78 // Obtained from:
79 // Submitted by:
80 // Reviewed by:
81 //
82 // Revision 1.1.1.1 2002/06/17 18:16:54 jvanzyl
83 // Initial OJB import
84 //
85 // Revision 1.2 2002/05/16 11:47:09 florianbruckner
86 // fix CR/LF issue, change license to ASL
87 //
88 // Revision 1.1 2002/04/18 11:44:16 mpoeschl
89 //
90 // move files to new location
91 //
92 // Revision 1.2 2002/04/07 09:05:17 thma
93 // *** empty log message ***
94 //
95 // Revision 1.1.1.1 2002/02/20 13:35:25 Administrator
96 // initial import
97 //
98 /***************************** Changelog *****************************/

99  
100
Popular Tags