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 LoggingPopUpMenu extends AbstractPopUpMenu 41 { 42 47 public LoggingPopUpMenu(CjdbcGui gui) 48 { 49 super(gui); 50 this.add(new JMenuItem (GuiCommands.COMMAND_CLEAN_LOGGING_PANEL)) 51 .addActionListener(this); 52 this.add(new JMenuItem (GuiCommands.COMMAND_REFRESH_LOGS)) 53 .addActionListener(this); 54 } 55 56 59 public void actionPerformed(ActionEvent e) 60 { 61 String action = e.getActionCommand(); 62 if (action.equals(GuiCommands.COMMAND_CLEAN_LOGGING_PANEL)) 63 gui.publicActioncleanLoggingPane(); 64 } 68 } | Popular Tags |