|
What this is
Other links
The source code/* * 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 NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.core.execution; import java.util.Collection; import java.util.Collections; import java.util.ResourceBundle; import org.openide.util.HelpCtx; import org.openide.nodes.*; import org.openide.util.NbBundle; /** Node which represents list of running processes. * * @author Ales Novak, Jesse Glick */ public final class ProcessNode extends AbstractNode { static final ResourceBundle getBundle() { return NbBundle.getBundle(ProcessNode.class); } /** Reference to an instance of this class */ private static Node processNode; /** * @param parent is a parent node */ private ProcessNode () { super(new ProcessChildren()); setIconBase("org/netbeans/core/resources/processes"); // NOI18N setName(getBundle().getString("Processes")); setShortDescription(getBundle().getString("Processes_HINT")); } public HelpCtx getHelpCtx () { return new HelpCtx (ProcessNode.class); } public Node.Handle getHandle () { return new ProcessHandle(); } static final class ProcessHandle implements Node.Handle { static final long serialVersionUID =-6979883764640743928L; public Node getNode () { return getExecutionNode(); } } /** * Get the default instance of the "Execution" node. * It is a singleton so be sure to clone it before adding to any parents. * @return the execution node */ public static Node getExecutionNode() { if (processNode == null) { processNode = new ProcessNode(); } return processNode; } private static final class ProcessChildren extends Children.Keys/* |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.