1 26 27 package org.objectweb.util.explorer.plugin.java; 28 29 import javax.swing.JOptionPane ; 30 31 import org.objectweb.util.explorer.api.MenuItem; 32 import org.objectweb.util.explorer.api.MenuItemTreeView; 33 import org.objectweb.util.explorer.api.Tree; 34 import org.objectweb.util.explorer.api.TreeView; 35 36 44 public class ContextSizeAction 45 implements MenuItem 46 { 47 48 51 public int getStatus(TreeView treeView) { 52 return MenuItem.ENABLED_STATUS; 53 } 54 55 58 public void actionPerformed(MenuItemTreeView treeView) 59 throws Exception { 60 Tree tree = treeView.getTree(); 61 JOptionPane.showMessageDialog(null,"Size of the initial context: " + tree.getInitialContextSize()); 62 } 63 64 } 65 | Popular Tags |