1 28 29 package swing; 30 31 import org.objectweb.util.explorer.api.Tree; 32 import org.objectweb.util.explorer.parser.api.ParserConfiguration; 33 import org.objectweb.util.explorer.swing.lib.SwingExplorer; 34 import org.objectweb.util.trace.TraceSystem; 35 36 45 public class MapSwingConsole 46 { 47 48 public static void main(String [] args) 49 { 50 TraceSystem.setLevel("debug"); 51 SwingExplorer explorer = new SwingExplorer("Map Explorer"); 52 53 ParserConfiguration parser = explorer.getParserConfigurationItf(); 55 parser.addPropertyFile(args[0]); 56 parser.parse(); 57 58 Tree treeItf = explorer.getTreeItf(); 60 treeItf.addEntry("Object 1", new Object ()); 61 treeItf.addEntry("Object 2", new Object ()); 62 treeItf.addEntry("Map", new java.util.HashMap ()); 63 64 explorer.setVisible(true); 65 } 66 67 } 68 | Popular Tags |