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 import org.objectweb.cjdbc.console.gui.objects.DumpFileObject; 34 35 43 public class DumpPopUpMenu extends AbstractPopUpMenu 44 { 45 private String databaseName; 46 private DumpFileObject dump; 47 48 55 public DumpPopUpMenu(CjdbcGui gui, String databaseName, DumpFileObject dump) 56 { 57 super(gui); 58 this.databaseName = databaseName; 59 this.dump = dump; 60 this.add(new JMenuItem (GuiCommands.COMMAND_DELETE_DUMP)).addActionListener( 61 this); 62 63 } 64 65 68 public void actionPerformed(ActionEvent e) 69 { 70 String action = e.getActionCommand(); 71 if (action.equals(GuiCommands.COMMAND_DELETE_DUMP)) 72 { 73 gui.publicActionDeleteDump(databaseName, dump); 74 } 75 } 76 } | Popular Tags |