performance/test/qa-functional/src/org/netbeans/performance/uml/UMLUtilities.java
author Jesse Glick <jglick@netbeans.org>
Tue, 28 Jun 2011 16:36:36 -0400
changeset 38 7b6e218ca0af
permissions -rw-r--r--
Moved performance/uml out of main.
jglick@38
     1
/*
jglick@38
     2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
jglick@38
     3
 *
jglick@38
     4
 * Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
jglick@38
     5
 *
jglick@38
     6
 * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
jglick@38
     7
 * Other names may be trademarks of their respective owners.
jglick@38
     8
 *
jglick@38
     9
 * The contents of this file are subject to the terms of either the GNU
jglick@38
    10
 * General Public License Version 2 only ("GPL") or the Common
jglick@38
    11
 * Development and Distribution License("CDDL") (collectively, the
jglick@38
    12
 * "License"). You may not use this file except in compliance with the
jglick@38
    13
 * License. You can obtain a copy of the License at
jglick@38
    14
 * http://www.netbeans.org/cddl-gplv2.html
jglick@38
    15
 * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
jglick@38
    16
 * specific language governing permissions and limitations under the
jglick@38
    17
 * License.  When distributing the software, include this License Header
jglick@38
    18
 * Notice in each file and include the License file at
jglick@38
    19
 * nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
jglick@38
    20
 * particular file as subject to the "Classpath" exception as provided
jglick@38
    21
 * by Oracle in the GPL Version 2 section of the License file that
jglick@38
    22
 * accompanied this code. If applicable, add the following below the
jglick@38
    23
 * License Header, with the fields enclosed by brackets [] replaced by
jglick@38
    24
 * your own identifying information:
jglick@38
    25
 * "Portions Copyrighted [year] [name of copyright owner]"
jglick@38
    26
 *
jglick@38
    27
 * Contributor(s):
jglick@38
    28
 *
jglick@38
    29
 * The Original Software is NetBeans. The Initial Developer of the Original
jglick@38
    30
 * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
jglick@38
    31
 * Microsystems, Inc. All Rights Reserved.
jglick@38
    32
 *
jglick@38
    33
 * If you wish your version of this file to be governed by only the CDDL
jglick@38
    34
 * or only the GPL Version 2, indicate your decision by adding
jglick@38
    35
 * "[Contributor] elects to include this software in this distribution
jglick@38
    36
 * under the [CDDL or GPL Version 2] license." If you do not indicate a
jglick@38
    37
 * single choice of license, a recipient has the option to distribute
jglick@38
    38
 * your version of this file under either the CDDL, the GPL Version 2 or
jglick@38
    39
 * to extend the choice of license to its licensees as provided above.
jglick@38
    40
 * However, if you add GPL Version 2 code and therefore, elected the GPL
jglick@38
    41
 * Version 2 license, then the option applies only if the new code is
jglick@38
    42
 * made subject to such option by the copyright holder.
jglick@38
    43
 */
jglick@38
    44
jglick@38
    45
jglick@38
    46
package org.netbeans.performance.uml;
jglick@38
    47
jglick@38
    48
import org.netbeans.jellytools.ProjectsTabOperator;
jglick@38
    49
import org.netbeans.jellytools.nodes.Node;
jglick@38
    50
import org.netbeans.modules.performance.utilities.CommonUtilities;
jglick@38
    51
jglick@38
    52
/**
jglick@38
    53
 * Utilities for Performance tests, workarrounds, often used methods, ...
jglick@38
    54
 *
jglick@38
    55
 * @author  mmirilovic@netbeans.org
jglick@38
    56
 */
jglick@38
    57
public class UMLUtilities extends CommonUtilities {
jglick@38
    58
jglick@38
    59
    public static Node getProcessFilesNode(String project){
jglick@38
    60
        String processNode = org.netbeans.jellytools.Bundle.getString("org.netbeans.modules.bpel.project.ui.Bundle", "LBL_Node_Sources");
jglick@38
    61
        return new Node(new ProjectsTabOperator().getProjectRootNode(project),processNode);
jglick@38
    62
    }
jglick@38
    63
    
jglick@38
    64
}