1 26 package org.objectweb.openccm.explorer.menu; 27 28 import org.objectweb.fractal.api.Component; 29 import org.objectweb.openccm.corba.TheORB; 30 import org.objectweb.openccm.explorer.CORBA.ConsoleFactory; 31 32 33 import javax.swing.ImageIcon ; 34 35 42 public class QuitAction extends AbstractMenuAction { 43 44 public QuitAction(String nom, ImageIcon image, String desc, Integer mnemonic, Component tree) { 45 super(nom, image, desc, mnemonic, tree); 46 } 47 48 public void actionPerformed(java.awt.event.ActionEvent ae) { 49 treeItf_.close(); 50 ConsoleFactory.getDebugConsole().add("Shutting the ORB down\n"); 51 TheORB.shutdown(false); 52 ConsoleFactory.getDebugConsole().add("Destroying the ORB\n"); 53 TheORB.destroy(); 54 System.exit(0); 55 } 56 57 } 58 | Popular Tags |