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: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: /*
043: *
044: * Created on Jul 1, 2003
045: * @author Trey Spiva
046: */
047: package org.netbeans.modules.uml.ui.support;
048:
049: /**
050: *
051: * @author Trey Spiva
052: */
053: public interface NewElementKind {
054: public final static int NEK_NONE = 0;
055: public final static int NEK_ACTOR = 1;
056: public final static int NEK_ATTRIBUTE = 2;
057: public final static int NEK_CLASS = 3;
058: public final static int NEK_INTERFACE = 4;
059: public final static int NEK_OPERATION = 5;
060: public final static int NEK_USE_CASE = 6;
061: public final static int NEK_DATATYPE = 7;
062: public final static int NEK_ALIASED_TYPE = 8;
063: public final static int NEK_ARTIFACT = 9;
064:
065: public final static int NEK_COLLAB_LIFELINE = 10;
066: public final static int NEK_ENUMERATION = 11;
067: public final static int NEK_NODE = 12;
068: public final static int NEK_UTILITY_CLASS = 13;
069: public final static int NEK_INVOCATION_NODE = 14;
070: public final static int NEK_ACTIVITY_GROUP = 15;
071: public final static int NEK_INITIAL_NODE = 16;
072: public final static int NEK_ACTIVITY_FINAL_NODE = 17;
073: public final static int NEK_ACTIVITY_FLOW_FINAL_NODE = 18;
074: public final static int NEK_DECISION_MERGE_NODE = 19;
075:
076: public final static int NEK_ABORTED_FINAL_STATE = 20;
077: public final static int NEK_COMPOSITE_STATE = 21;
078: public final static int NEK_COMPONENT = 22;
079: public final static int NEK_DATA_STORE_NODE = 23;
080: public final static int NEK_DERIVATION_CLASSIFIER = 24;
081: public final static int NEK_ENUMERATION_LITERAL = 25;
082: public final static int NEK_FINAL_STATE = 26;
083: public final static int NEK_FORK_STATE = 27;
084: public final static int NEK_INITIAL_STATE = 28;
085: public final static int NEK_JOIN_FORK_NODE = 29;
086:
087: public final static int NEK_JOIN_STATE = 30;
088: public final static int NEK_JUNCTION_STATE = 31;
089: public final static int NEK_LIFELINE = 32;
090: public final static int NEK_PARAMETER_USAGE_NODE = 33;
091: public final static int NEK_SIGNAL_NODE = 34;
092: public final static int NEK_SIMPLE_STATE = 35;
093: public final static int NEK_STATE = 36;
094: public final static int NEK_STOP_STATE = 37;
095: public final static int NEK_USE_CASE_DETAIL = 38;
096: public final static int NEK_COLLABORATION = 39;
097:
098: // CR#6263225 cvc - added arrays to make the maintenance of
099: // adding/changing/removing elements much easier
100:
101: public final static Integer[] ELEMENT_NUMBERS = {
102: new Integer(NEK_NONE), new Integer(NEK_ACTOR),
103: new Integer(NEK_ATTRIBUTE), new Integer(NEK_CLASS),
104: new Integer(NEK_INTERFACE), new Integer(NEK_OPERATION),
105: new Integer(NEK_USE_CASE), new Integer(NEK_DATATYPE),
106: new Integer(NEK_ALIASED_TYPE), new Integer(NEK_ARTIFACT),
107:
108: new Integer(NEK_COLLAB_LIFELINE),
109: new Integer(NEK_ENUMERATION), new Integer(NEK_NODE),
110: new Integer(NEK_UTILITY_CLASS),
111: new Integer(NEK_INVOCATION_NODE),
112: new Integer(NEK_ACTIVITY_GROUP),
113: new Integer(NEK_INITIAL_NODE),
114: new Integer(NEK_ACTIVITY_FINAL_NODE),
115: new Integer(NEK_ACTIVITY_FLOW_FINAL_NODE),
116: new Integer(NEK_DECISION_MERGE_NODE),
117:
118: new Integer(NEK_ABORTED_FINAL_STATE),
119: new Integer(NEK_COMPOSITE_STATE),
120: new Integer(NEK_COMPONENT),
121: new Integer(NEK_DATA_STORE_NODE),
122: new Integer(NEK_DERIVATION_CLASSIFIER),
123: new Integer(NEK_ENUMERATION_LITERAL),
124: new Integer(NEK_FINAL_STATE), new Integer(NEK_FORK_STATE),
125: new Integer(NEK_INITIAL_STATE),
126: new Integer(NEK_JOIN_FORK_NODE),
127:
128: new Integer(NEK_JOIN_STATE),
129: new Integer(NEK_JUNCTION_STATE), new Integer(NEK_LIFELINE),
130: new Integer(NEK_PARAMETER_USAGE_NODE),
131: new Integer(NEK_SIGNAL_NODE),
132: new Integer(NEK_SIMPLE_STATE), new Integer(NEK_STATE),
133: new Integer(NEK_STOP_STATE),
134: new Integer(NEK_USE_CASE_DETAIL),
135: new Integer(NEK_COLLABORATION) };
136:
137: // these "no spaces" names need to match their
138: // display names that have spaces
139: // example: "Abc Xyz" to "AbcXyz"
140:
141: public final static String[] ELEMENT_NAMES = { "None", "Actor",
142: "Attribute", "Class", "Interface", "Operation", "UseCase",
143: "DataType", "AliasedType", "Artifact",
144:
145: "CollaborationLifeline", "Enumeration", "Node",
146: "UtilityClass", "InvocationNode", "ActivityPartition",
147: "InitialNode", "ActivityFinalNode", "FlowFinalNode",
148: "DecisionMergeNode",
149:
150: "AbortedFinalState", "CompositeState", "Component",
151: "DataStoreNode", "DerivationClassifier",
152: "EnumerationLiteral", "FinalState", "ForkState",
153: "InitialState", "JoinForkNode",
154:
155: "JoinState", "JunctionState", "Lifeline",
156: "ParameterUsageNode", "SignalNode", "SimpleState", "State",
157: "StopState", "UseCaseDetail", "Collaboration" };
158: }
|