001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: * The Original Software is NetBeans. The Initial Developer of the Original
026: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
027: * Microsystems, Inc. All Rights Reserved.
028: *
029: * If you wish your version of this file to be governed by only the CDDL
030: * or only the GPL Version 2, indicate your decision by adding
031: * "[Contributor] elects to include this software in this distribution
032: * under the [CDDL or GPL Version 2] license." If you do not indicate a
033: * single choice of license, a recipient has the option to distribute
034: * your version of this file under either the CDDL, the GPL Version 2 or
035: * to extend the choice of license to its licensees as provided above.
036: * However, if you add GPL Version 2 code and therefore, elected the GPL
037: * Version 2 license, then the option applies only if the new code is
038: * made subject to such option by the copyright holder.
039: */
040:
041: package org.netbeans.modules.profiler.ui;
042:
043: import org.openide.util.Utilities;
044: import javax.swing.ImageIcon;
045:
046: /**
047: *
048: * @author Jiri Sedlacek
049: */
050: public class Utils {
051: //~ Static fields/initializers -----------------------------------------------------------------------------------------------
052:
053: // no icon
054: public static ImageIcon NO_ICON = new ImageIcon();
055:
056: // default
057: //public static ImageIcon DEFAULT_ICON = new ImageIcon(Utilities.loadImage("org/openide/nodes/defaultNode.png")); // NOI18N
058:
059: // empty
060: //public static ImageIcon EMPRY_ICON = new ImageIcon(Utilities.loadImage("org/netbeans/modules/profiler/resources/ide/empty.gif")); // NOI18N
061:
062: // error
063: public static ImageIcon ERROR_ICON = new ImageIcon(
064: Utilities
065: .loadImage("org/netbeans/modules/profiler/resources/ide/error.png")); // NOI18N
066:
067: // projects
068: //public static ImageIcon PROJECTS_ICON = new ImageIcon(Utilities.loadImage("org/netbeans/modules/project/ui/resources/projectTab.png")); // NOI18N
069:
070: // package
071: public static ImageIcon PACKAGE_ICON = new ImageIcon(
072: Utilities
073: .loadImage("org/netbeans/modules/profiler/resources/ide/package.png")); // NOI18N
074: //public static ImageIcon PACKAGE_PUBLIC_ICON = new ImageIcon(Utilities.loadImage("org/netbeans/spi/java/project/support/ui/packagePublic.png")); // NOI18N
075: //public static ImageIcon PACKAGE_PRIVATE_ICON = new ImageIcon(Utilities.loadImage("org/netbeans/spi/java/project/support/ui/packagePrivate.png")); // NOI18N
076: //public static ImageIcon PACKAGE_EMPTY_ICON = new ImageIcon(Utilities.loadImage("org/netbeans/spi/java/project/support/ui/packageEmpty.png")); // NOI18N
077:
078: // libraries
079: public static ImageIcon LIBRARIES_ICON = new ImageIcon(
080: Utilities
081: .loadImage("org/netbeans/modules/profiler/resources/ide/libraries.png")); // NOI18N
082:
083: // class
084: public static ImageIcon CLASS_ICON = new ImageIcon(
085: Utilities
086: .loadImage("org/netbeans/modules/profiler/resources/ide/class.png")); // NOI18N
087: //public static ImageIcon CLASS_MAIN_ICON = new ImageIcon(Utilities.loadImage("org/netbeans/modules/java/resources/main-class.png")); // NOI18N
088:
089: // interface
090: public static ImageIcon INTERFACE_ICON = new ImageIcon(
091: Utilities
092: .loadImage("org/netbeans/modules/profiler/resources/ide/interface.png")); // NOI18N
093:
094: // initializer
095: public static ImageIcon INITIALIZER_ICON = new ImageIcon(
096: Utilities
097: .loadImage("org/netbeans/modules/profiler/resources/ide/initializer.png")); // NOI18N
098: public static ImageIcon INITIALIZER_STATIC_ICON = new ImageIcon(
099: Utilities
100: .loadImage("org/netbeans/modules/profiler/resources/ide/initializerSt.png")); // NOI18N
101:
102: // constructor
103: public static ImageIcon CONSTRUCTORS_ICON = new ImageIcon(
104: Utilities
105: .loadImage("org/netbeans/modules/profiler/resources/ide/constructors.png")); // NOI18N
106: public static ImageIcon CONSTRUCTOR_PUBLIC_ICON = new ImageIcon(
107: Utilities
108: .loadImage("org/netbeans/modules/profiler/resources/ide/constructorPublic.png")); // NOI18N
109: public static ImageIcon CONSTRUCTOR_PROTECTED_ICON = new ImageIcon(
110: Utilities
111: .loadImage("org/netbeans/modules/profiler/resources/ide/constructorProtected.png")); // NOI18N
112: public static ImageIcon CONSTRUCTOR_PRIVATE_ICON = new ImageIcon(
113: Utilities
114: .loadImage("org/netbeans/modules/profiler/resources/ide/constructorPrivate.png")); // NOI18N
115: public static ImageIcon CONSTRUCTOR_PACKAGE_ICON = new ImageIcon(
116: Utilities
117: .loadImage("org/netbeans/modules/profiler/resources/ide/constructorPackage.png")); // NOI18N
118:
119: // method
120: public static ImageIcon METHODS_ICON = new ImageIcon(
121: Utilities
122: .loadImage("org/netbeans/modules/profiler/resources/ide/methods.png")); // NOI18N
123: public static ImageIcon METHOD_PUBLIC_ICON = new ImageIcon(
124: Utilities
125: .loadImage("org/netbeans/modules/profiler/resources/ide/methodPublic.png")); // NOI18N
126: public static ImageIcon METHOD_PROTECTED_ICON = new ImageIcon(
127: Utilities
128: .loadImage("org/netbeans/modules/profiler/resources/ide/methodProtected.png")); // NOI18N
129: public static ImageIcon METHOD_PRIVATE_ICON = new ImageIcon(
130: Utilities
131: .loadImage("org/netbeans/modules/profiler/resources/ide/methodPrivate.png")); // NOI18N
132: public static ImageIcon METHOD_PACKAGE_ICON = new ImageIcon(
133: Utilities
134: .loadImage("org/netbeans/modules/profiler/resources/ide/methodPackage.png")); // NOI18N
135: public static ImageIcon METHOD_PUBLIC_STATIC_ICON = new ImageIcon(
136: Utilities
137: .loadImage("org/netbeans/modules/profiler/resources/ide/methodStPublic.png")); // NOI18N
138: public static ImageIcon METHOD_PROTECTED_STATIC_ICON = new ImageIcon(
139: Utilities
140: .loadImage("org/netbeans/modules/profiler/resources/ide/methodStProtected.png")); // NOI18N
141: public static ImageIcon METHOD_PRIVATE_STATIC_ICON = new ImageIcon(
142: Utilities
143: .loadImage("org/netbeans/modules/profiler/resources/ide/methodStPrivate.png")); // NOI18N
144: public static ImageIcon METHOD_PACKAGE_STATIC_ICON = new ImageIcon(
145: Utilities
146: .loadImage("org/netbeans/modules/profiler/resources/ide/methodStPackage.png")); // NOI18N
147:
148: // variable
149: public static ImageIcon VARIABLES_ICON = new ImageIcon(
150: Utilities
151: .loadImage("org/netbeans/modules/profiler/resources/ide/variables.png")); // NOI18N
152: public static ImageIcon VARIABLE_PUBLIC_ICON = new ImageIcon(
153: Utilities
154: .loadImage("org/netbeans/modules/profiler/resources/ide/variablePublic.png")); // NOI18N
155: public static ImageIcon VARIABLE_PROTECTED_ICON = new ImageIcon(
156: Utilities
157: .loadImage("org/netbeans/modules/profiler/resources/ide/variableProtected.png")); // NOI18N
158: public static ImageIcon VARIABLE_PRIVATE_ICON = new ImageIcon(
159: Utilities
160: .loadImage("org/netbeans/modules/profiler/resources/ide/variablePrivate.png")); // NOI18N
161: public static ImageIcon VARIABLE_PACKAGE_ICON = new ImageIcon(
162: Utilities
163: .loadImage("org/netbeans/modules/profiler/resources/ide/variablePackage.png")); // NOI18N
164: public static ImageIcon VARIABLE_PUBLIC_STATIC_ICON = new ImageIcon(
165: Utilities
166: .loadImage("org/netbeans/modules/profiler/resources/ide/variableStPublic.png")); // NOI18N
167: public static ImageIcon VARIABLE_PROTECTED_STATIC_ICON = new ImageIcon(
168: Utilities
169: .loadImage("org/netbeans/modules/profiler/resources/ide/variableStProtected.png")); // NOI18N
170: public static ImageIcon VARIABLE_PRIVATE_STATIC_ICON = new ImageIcon(
171: Utilities
172: .loadImage("org/netbeans/modules/profiler/resources/ide/variableStPrivate.png")); // NOI18N
173: public static ImageIcon VARIABLE_PACKAGE_STATIC_ICON = new ImageIcon(
174: Utilities
175: .loadImage("org/netbeans/modules/profiler/resources/ide/variableStPackage.png")); // NOI18N
176:
177: // find
178: public static ImageIcon FIND_ACTION_ICON = new ImageIcon(
179: Utilities
180: .loadImage("org/netbeans/modules/profiler/resources/ide/find.gif")); // NOI18N
181: }
|