Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/nodes In directory usw-pr-cvs1:/tmp/cvs-serv1722 Modified Files: SnapshotNode.java Added Files: AllocThreadMethodRefNode.java AllocThreadMethodsNode.java AllocThreadTraceRefNode.java AllocThreadTracesNode.java AllocTraceRefNode.java AllocTracesNode.java AllocTypeMethodRefNode.java AllocTypeMethodsNode.java AllocTypeThreadMethodRefNode.java AllocTypeThreadRefNode.java AllocTypeThreadTraceRefNode.java AllocTypeTraceRefNode.java AllocTypeTracesNode.java CPUThreadMethodRefNode.java CPUThreadMethodsNode.java CPUThreadTraceRefNode.java CPUThreadTracesNode.java CPUTraceRefNode.java CPUTracesNode.java CallTreeRefNode.java ClassRefNode.java ClassesNode.java FieldRefNode.java FieldsNode.java FrameRefNode.java FramesNode.java GCRunRefNode.java GCRunsNode.java MethodRefNode.java MethodsNode.java MonThreadMethodRefNode.java MonThreadMethodsNode.java MonThreadTraceRefNode.java MonThreadTracesNode.java MonTraceRefNode.java MonTracesNode.java ThreadGroupRefNode.java ThreadGroupsNode.java ThreadRefNode.java ThreadsNode.java TypeRefNode.java TypesNode.java Log Message: Nodes showing content of VirtualMahineImageRef. --- NEW FILE: AllocThreadMethodRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocThreadMethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocThreadMethodRef. * * @author Jan Stola */ public class AllocThreadMethodRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocThreadMethodRefNode.class); private AllocThreadMethodRef allocThreadMethod; public AllocThreadMethodRefNode(AllocThreadMethodRef allocThreadMethod) { super(new AllocThreadMethodRefChildren(allocThreadMethod)); this.allocThreadMethod=allocThreadMethod; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocThreadMethodRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocThreadMethodRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocThreadMethod); return sheet; } /** * AllocThreadMethodRef children object. * * @author Jan Stola */ public static class AllocThreadMethodRefChildren extends Children.Keys { private AllocThreadMethodRef allocThreadMethod; public AllocThreadMethodRefChildren(AllocThreadMethodRef allocThreadMethod) { this.allocThreadMethod=allocThreadMethod; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: AllocThreadMethodRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocThreadMethodsNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocThreadMethodRef; import net.sourceforge.javaprofiler.jpi.MethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocThreadMethods. * * @author Jan Stola */ public class AllocThreadMethodsNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocThreadMethodsNode.class); private MethodRef method; public AllocThreadMethodsNode(MethodRef method) { super(new AllocThreadMethodsChildren(method)); this.method=method; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocThreadMethodsNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(bundle.getString("LBL_allocThreadMethodsNode")); setShortDescription(bundle.getString("HINT_allocThreadMethodsNode")); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocThreadMethodsNode.class); } public boolean canCopy() { return false; } /** * AllocThreadMethods children object. * * @author Jan Stola */ public static class AllocThreadMethodsChildren extends Children.Keys { private MethodRef method=null; public AllocThreadMethodsChildren(MethodRef method) { this.method=method; update(); } protected Node[] createNodes(Object key) { if (key instanceof AllocThreadMethodRef) { // allocThreadMethod node return new Node[]{new AllocThreadMethodRefNode((AllocThreadMethodRef)key)}; } else { // should not happen return null; } } public void update() { setKeys(method.getAllocThreadMethods()); } } } /* * $Log: AllocThreadMethodsNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocThreadTraceRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocThreadTraceRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocThreadTraceRef. * * @author Jan Stola */ public class AllocThreadTraceRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocThreadTraceRefNode.class); private AllocThreadTraceRef allocThreadTrace; public AllocThreadTraceRefNode(AllocThreadTraceRef allocThreadTrace) { super(new AllocThreadTraceRefChildren(allocThreadTrace)); this.allocThreadTrace=allocThreadTrace; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocThreadTraceRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocThreadTraceRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocThreadTrace); return sheet; } /** * AllocThreadTraceRef children object. * * @author Jan Stola */ public static class AllocThreadTraceRefChildren extends Children.Keys { private AllocThreadTraceRef allocThreadTrace; public AllocThreadTraceRefChildren(AllocThreadTraceRef allocThreadTrace) { this.allocThreadTrace=allocThreadTrace; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: AllocThreadTraceRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocThreadTracesNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocThreadTraceRef; import net.sourceforge.javaprofiler.jpi.AllocTraceRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocThreadTraces. * * @author Jan Stola */ public class AllocThreadTracesNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocThreadTracesNode.class); private AllocTraceRef allocTrace; public AllocThreadTracesNode(AllocTraceRef allocTrace) { super(new AllocThreadTracesChildren(allocTrace)); this.allocTrace=allocTrace; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocThreadTracesNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(bundle.getString("LBL_allocThreadTracesNode")); setShortDescription(bundle.getString("HINT_allocThreadTracesNode")); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocThreadTracesNode.class); } public boolean canCopy() { return false; } /** * AllocThreadTraces children object. * * @author Jan Stola */ public static class AllocThreadTracesChildren extends Children.Keys { private AllocTraceRef allocTrace=null; public AllocThreadTracesChildren(AllocTraceRef allocTrace) { this.allocTrace=allocTrace; update(); } protected Node[] createNodes(Object key) { if (key instanceof AllocThreadTraceRef) { // allocThreadTrace node return new Node[]{new AllocThreadTraceRefNode((AllocThreadTraceRef)key)}; } else { // should not happen return null; } } public void update() { setKeys(allocTrace.getAllocThreadTraces()); } } } /* * $Log: AllocThreadTracesNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTraceRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTraceRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTraceRef. * * @author Jan Stola */ public class AllocTraceRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTraceRefNode.class); private AllocTraceRef allocTrace; public AllocTraceRefNode(String prefix, AllocTraceRef allocTrace) { super(new AllocTraceRefChildren(allocTrace)); this.allocTrace=allocTrace; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTraceRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(prefix+"PENDING"); } public AllocTraceRefNode(AllocTraceRef allocTrace) { this("", allocTrace); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTraceRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocTrace); return sheet; } /** * AllocTraceRef children object. * * @author Jan Stola */ public static class AllocTraceRefChildren extends Children.Keys { private AllocTraceRef allocTrace; public AllocTraceRefChildren(AllocTraceRef allocTrace) { this.allocTrace=allocTrace; update(); } protected Node[] createNodes(Object key) { if ("frames".equals(key)) { // frames node return new Node[]{new FramesNode(allocTrace)}; } else if ("method".equals(key)) { // method node return new Node[]{new MethodRefNode(allocTrace.getMethod())}; } else if ("siblingCPU".equals(key)) { // sibling CPU node return new Node[]{new CPUTraceRefNode(bundle.getString("LBL_allocTraceRefCPUSibling")+' ', allocTrace.getSiblingCPU())}; } else if ("siblingMon".equals(key)) { // sibling Mon node return new Node[]{new MonTraceRefNode(bundle.getString("LBL_allocTraceRefMonSibling")+' ', allocTrace.getSiblingMon())}; } else if ("allocThreadTraces".equals(key)) { // alloc thread traces node return new Node[]{new AllocThreadTracesNode(allocTrace)}; } else if ("allocTypeTraces".equals(key)) { // alloc type traces node return new Node[]{new AllocTypeTracesNode(allocTrace)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); keySet.add("frames"); keySet.add("method"); keySet.add("siblingCPU"); keySet.add("siblingMon"); keySet.add("allocThreadTraces"); keySet.add("allocTypeTraces"); setKeys(keySet); } } } /* * $Log: AllocTraceRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTracesNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.VirtualMachineImageRef; import net.sourceforge.javaprofiler.jpi.AllocTraceRef; import net.sourceforge.javaprofiler.jpi.MethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTraces. * * @author Jan Stola */ public class AllocTracesNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTracesNode.class); private VirtualMachineImageRef vm; private MethodRef method; public AllocTracesNode(VirtualMachineImageRef vm) { super(new AllocTracesChildren(vm)); this.vm=vm; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTracesNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(bundle.getString("LBL_allocTracesNode")); setShortDescription(bundle.getString("HINT_allocTracesNode")); } public AllocTracesNode(MethodRef method) { super(new AllocTracesChildren(method)); this.method=method; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTracesNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(bundle.getString("LBL_allocTracesNode")); setShortDescription(bundle.getString("HINT_allocTracesNode")); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTracesNode.class); } public boolean canCopy() { return false; } /** * AllocTraces children object. * * @author Jan Stola */ public static class AllocTracesChildren extends Children.Keys { private VirtualMachineImageRef vm=null; private MethodRef method=null; public AllocTracesChildren(VirtualMachineImageRef vm) { this.vm=vm; update(); } public AllocTracesChildren(MethodRef method) { this.method=method; update(); } protected Node[] createNodes(Object key) { if (key instanceof AllocTraceRef) { // alloc trace node return new Node[]{new AllocTraceRefNode((AllocTraceRef)key)}; } else { // should not happen return null; } } public void update() { if (vm!=null) setKeys(vm.getAllocTraces()); if (method!=null) setKeys(method.getAllocTraces()); } } } /* * $Log: AllocTracesNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTypeMethodRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTypeMethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTypeMethodRef. * * @author Jan Stola */ public class AllocTypeMethodRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTypeMethodRefNode.class); private AllocTypeMethodRef allocTypeMethod; public AllocTypeMethodRefNode(AllocTypeMethodRef allocTypeMethod) { super(new AllocTypeMethodRefChildren(allocTypeMethod)); this.allocTypeMethod=allocTypeMethod; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTypeMethodRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTypeMethodRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocTypeMethod); return sheet; } /** * AllocTypeMethodRef children object. * * @author Jan Stola */ public static class AllocTypeMethodRefChildren extends Children.Keys { private AllocTypeMethodRef allocTypeMethod; public AllocTypeMethodRefChildren(AllocTypeMethodRef allocTypeMethod) { this.allocTypeMethod=allocTypeMethod; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: AllocTypeMethodRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTypeMethodsNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTypeMethodRef; import net.sourceforge.javaprofiler.jpi.MethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTypeMethods. * * @author Jan Stola */ public class AllocTypeMethodsNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTypeMethodsNode.class); private MethodRef method; public AllocTypeMethodsNode(MethodRef method) { super(new AllocTypeMethodsChildren(method)); this.method=method; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTypeMethodsNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(bundle.getString("LBL_allocTypeMethodsNode")); setShortDescription(bundle.getString("HINT_allocTypeMethodsNode")); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTypeMethodsNode.class); } public boolean canCopy() { return false; } /** * AllocTypeMethods children object. * * @author Jan Stola */ public static class AllocTypeMethodsChildren extends Children.Keys { private MethodRef method=null; public AllocTypeMethodsChildren(MethodRef method) { this.method=method; update(); } protected Node[] createNodes(Object key) { if (key instanceof AllocTypeMethodRef) { // allocTypeMethod node return new Node[]{new AllocTypeMethodRefNode((AllocTypeMethodRef)key)}; } else { // should not happen return null; } } public void update() { setKeys(method.getAllocTypeMethods()); } } } /* * $Log: AllocTypeMethodsNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTypeThreadMethodRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTypeThreadMethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTypeThreadMethodRef. * * @author Jan Stola */ public class AllocTypeThreadMethodRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTypeThreadMethodRefNode.class); private AllocTypeThreadMethodRef allocTypeThreadMethod; public AllocTypeThreadMethodRefNode(AllocTypeThreadMethodRef allocTypeThreadMethod) { super(new AllocTypeThreadMethodRefChildren(allocTypeThreadMethod)); this.allocTypeThreadMethod=allocTypeThreadMethod; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTypeThreadMethodRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTypeThreadMethodRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocTypeThreadMethod); return sheet; } /** * AllocTypeThreadMethodRef children object. * * @author Jan Stola */ public static class AllocTypeThreadMethodRefChildren extends Children.Keys { private AllocTypeThreadMethodRef allocTypeThreadMethod; public AllocTypeThreadMethodRefChildren(AllocTypeThreadMethodRef allocTypeThreadMethod) { this.allocTypeThreadMethod=allocTypeThreadMethod; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: AllocTypeThreadMethodRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTypeThreadRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTypeThreadRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTypeThreadRef. * * @author Jan Stola */ public class AllocTypeThreadRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTypeThreadRefNode.class); private AllocTypeThreadRef allocTypeThread; public AllocTypeThreadRefNode(AllocTypeThreadRef allocTypeThread) { super(new AllocTypeThreadRefChildren(allocTypeThread)); this.allocTypeThread=allocTypeThread; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTypeThreadRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTypeThreadRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocTypeThread); return sheet; } /** * AllocTypeThreadRef children object. * * @author Jan Stola */ public static class AllocTypeThreadRefChildren extends Children.Keys { private AllocTypeThreadRef allocTypeThread; public AllocTypeThreadRefChildren(AllocTypeThreadRef allocTypeThread) { this.allocTypeThread=allocTypeThread; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: AllocTypeThreadRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTypeThreadTraceRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTypeThreadTraceRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTypeThreadTraceRef. * * @author Jan Stola */ public class AllocTypeThreadTraceRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTypeThreadTraceRefNode.class); private AllocTypeThreadTraceRef allocTypeThreadTrace; public AllocTypeThreadTraceRefNode(AllocTypeThreadTraceRef allocTypeThreadTrace) { super(new AllocTypeThreadTraceRefChildren(allocTypeThreadTrace)); this.allocTypeThreadTrace=allocTypeThreadTrace; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTypeThreadTraceRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTypeThreadTraceRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocTypeThreadTrace); return sheet; } /** * AllocTypeThreadTraceRef children object. * * @author Jan Stola */ public static class AllocTypeThreadTraceRefChildren extends Children.Keys { private AllocTypeThreadTraceRef allocTypeThreadTrace; public AllocTypeThreadTraceRefChildren(AllocTypeThreadTraceRef allocTypeThreadTrace) { this.allocTypeThreadTrace=allocTypeThreadTrace; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: AllocTypeThreadTraceRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTypeTraceRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTypeTraceRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTypeTraceRef. * * @author Jan Stola */ public class AllocTypeTraceRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTypeTraceRefNode.class); private AllocTypeTraceRef allocTypeTrace; public AllocTypeTraceRefNode(AllocTypeTraceRef allocTypeTrace) { super(new AllocTypeTraceRefChildren(allocTypeTrace)); this.allocTypeTrace=allocTypeTrace; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTypeTraceRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTypeTraceRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } AllocStatProperty.addProperties(props, allocTypeTrace); return sheet; } /** * AllocTypeTraceRef children object. * * @author Jan Stola */ public static class AllocTypeTraceRefChildren extends Children.Keys { private AllocTypeTraceRef allocTypeTrace; public AllocTypeTraceRefChildren(AllocTypeTraceRef allocTypeTrace) { this.allocTypeTrace=allocTypeTrace; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: AllocTypeTraceRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: AllocTypeTracesNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.AllocTypeTraceRef; import net.sourceforge.javaprofiler.jpi.AllocTraceRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about AllocTypeTraces. * * @author Jan Stola */ public class AllocTypeTracesNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocTypeTracesNode.class); private AllocTraceRef allocTrace; public AllocTypeTracesNode(AllocTraceRef allocTrace) { super(new AllocTypeTracesChildren(allocTrace)); this.allocTrace=allocTrace; setIconBase("/net/sourceforge/javaprofiler/module/resources/AllocTypeTracesNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(bundle.getString("LBL_allocTypeTracesNode")); setShortDescription(bundle.getString("HINT_allocTypeTracesNode")); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(AllocTypeTracesNode.class); } public boolean canCopy() { return false; } /** * AllocTypeTraces children object. * * @author Jan Stola */ public static class AllocTypeTracesChildren extends Children.Keys { private AllocTraceRef allocTrace=null; public AllocTypeTracesChildren(AllocTraceRef allocTrace) { this.allocTrace=allocTrace; update(); } protected Node[] createNodes(Object key) { if (key instanceof AllocTypeTraceRef) { // allocTypeTrace node return new Node[]{new AllocTypeTraceRefNode((AllocTypeTraceRef)key)}; } else { // should not happen return null; } } public void update() { setKeys(allocTrace.getAllocTypeTraces()); } } } /* * $Log: AllocTypeTracesNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: CPUThreadMethodRefNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.CPUThreadMethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about CPUThreadMethodRef. * * @author Jan Stola */ public class CPUThreadMethodRefNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(AllocThreadMethodRefNode.class); private CPUThreadMethodRef CPUThreadMethod; public CPUThreadMethodRefNode(CPUThreadMethodRef CPUThreadMethod) { super(new CPUThreadMethodRefChildren(CPUThreadMethod)); this.CPUThreadMethod=CPUThreadMethod; setIconBase("/net/sourceforge/javaprofiler/module/resources/CPUThreadMethodRefNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName("PENDING"); } protected SystemAction[] createActions() { return new SystemAction[] { SystemAction.get(PropertiesAction.class) }; } public HelpCtx getHelpCtx() { return new HelpCtx(CPUThreadMethodRefNode.class); } public boolean canCopy() { return false; } protected Sheet createSheet() { Sheet sheet=super.createSheet(); Sheet.Set props=sheet.get(Sheet.PROPERTIES); if (props==null) { props=Sheet.createPropertiesSet(); sheet.put(props); } CPUStatProperty.addProperties(props, CPUThreadMethod); return sheet; } /** * CPUThreadMethodRef children object. * * @author Jan Stola */ public static class CPUThreadMethodRefChildren extends Children.Keys { private CPUThreadMethodRef CPUThreadMethod; public CPUThreadMethodRefChildren(CPUThreadMethodRef CPUThreadMethod) { this.CPUThreadMethod=CPUThreadMethod; update(); } protected Node[] createNodes(Object key) { if ("component".equals(key)) { // type component return null; // return new Node[]{new ClassRefNode(bundle.getString("LBL_typeRefComponent")+' ', clazz)}; } else { // should not happen return null; } } public void update() { Collection keySet=new LinkedList(); // keySet.add("component"); setKeys(keySet); } } } /* * $Log: CPUThreadMethodRefNode.java,v $ * Revision 1.1 2002/07/14 18:19:19 stolis * Nodes showing content of VirtualMahineImageRef. * */ --- NEW FILE: CPUThreadMethodsNode.java --- /* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License Version * 1.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is available at http://www.sun.com/ * * The Original Code is the Java Profiler module. * The Initial Developers of the Original Code are Jan Stola, Pavel Vacha, * Michal Pise, Petr Luner, Lukas Petru and Marek Przeczek. * Portions created by Jan Stola are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Pavel Vacha are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Michal Pise are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Petr Luner are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Lukas Petru are Copyright (C) 2000-2001. All Rights Reserved. * Portions created by Marek Przeczek are Copyright (C) 2000-2001. All Rights Reserved. * * Contributors: Jan Stola, Pavel Vacha, Michal Pise, Petr Luner, * Lukas Petru and Marek Przeczek. */ package net.sourceforge.javaprofiler.module.nodes; import java.util.*; import org.openide.TopManager; import org.openide.actions.*; import org.openide.nodes.*; import org.openide.util.HelpCtx; import org.openide.util.NbBundle; import org.openide.util.actions.SystemAction; import net.sourceforge.javaprofiler.jpi.CPUThreadMethodRef; import net.sourceforge.javaprofiler.jpi.MethodRef; import net.sourceforge.javaprofiler.module.actions.*; /** * Node holding information about CPUThreadMethods. * * @author Jan Stola */ public class CPUThreadMethodsNode extends AbstractNode { private static ResourceBundle bundle=NbBundle.getBundle(CPUThreadMethodsNode.class); private MethodRef method; public CPUThreadMethodsNode(MethodRef method) { super(new CPUThreadMethodsChildren(method)); this.method=method; setIconBase("/net/sourceforge/javaprofiler/module/resources/CPUThreadMethodsNodeIcon"); setDefaultAction(SystemAction.get(PropertiesAction.class)); setDisplayName(bundle.getString("LBL_CPUThreadMethodsNode")); setShortDescription(bundle.getString("HINT_CPUThreadMethodsNode")); } protected SystemAction[] createActions() { re... [truncated message content] |