1 24 25 package org.objectweb.cjdbc.console.gui.popups; 26 27 import java.awt.event.ActionEvent ; 28 29 import javax.swing.JMenuItem ; 30 31 import org.objectweb.cjdbc.console.gui.CjdbcGui; 32 import org.objectweb.cjdbc.console.gui.constants.GuiCommands; 33 34 40 public class XmlEditPopUpMenu extends AbstractPopUpMenu 41 { 42 47 public XmlEditPopUpMenu(CjdbcGui gui) 48 { 49 super(gui); 50 this.add(new JMenuItem (GuiCommands.COMMAND_SAVE_CONFIGURATION_FILE)) 51 .addActionListener(this); 52 } 53 54 57 public void actionPerformed(ActionEvent e) 58 { 59 String action = e.getActionCommand(); 60 if (action.equals(GuiCommands.COMMAND_SAVE_CONFIGURATION_FILE)) 61 gui.publicActionSaveConfigurationFile(); 62 } 63 } | Popular Tags |