1 package org.apache.ojb.tools.mapping.reversedb.gui.actions; 2 3 17 18 23 public class SetPackageAction extends javax.swing.AbstractAction 24 { 25 org.apache.ojb.tools.mapping.reversedb.gui.JFrmMainFrame mainFrame; 26 27 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 actionEvent) 36 { 37 String 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 99 100 | Popular Tags |