Source Code Cross Referenced for New_processVisualIDRegistry.java in  » Workflow-Engines » osbl-1_0 » newprocess » diagram » part » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » osbl 1_0 » newprocess.diagram.part 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001:        package newprocess.diagram.part;
0002:
0003:        import newprocess.Actor;
0004:        import newprocess.AndOperator;
0005:        import newprocess.AsyncActivity;
0006:        import newprocess.Conclusion;
0007:        import newprocess.Condition;
0008:        import newprocess.ConditionProxy;
0009:        import newprocess.ConditionTerm;
0010:        import newprocess.Event;
0011:        import newprocess.Expansion;
0012:        import newprocess.Expression;
0013:        import newprocess.Globals;
0014:        import newprocess.Listener;
0015:        import newprocess.Loader;
0016:        import newprocess.Message;
0017:        import newprocess.NewprocessPackage;
0018:        import newprocess.OrOperator;
0019:        import newprocess.Process;
0020:        import newprocess.Root;
0021:        import newprocess.SyncActivity;
0022:
0023:        import newprocess.diagram.edit.parts.ActorEditPart;
0024:        import newprocess.diagram.edit.parts.ActorNameEditPart;
0025:        import newprocess.diagram.edit.parts.AndOperatorEditPart;
0026:        import newprocess.diagram.edit.parts.AsyncActivity2EditPart;
0027:        import newprocess.diagram.edit.parts.AsyncActivityAsyncActivityPostconditionCompartment2EditPart;
0028:        import newprocess.diagram.edit.parts.AsyncActivityAsyncActivityPostconditionCompartmentEditPart;
0029:        import newprocess.diagram.edit.parts.AsyncActivityAsyncActivityPreconditionCompartment2EditPart;
0030:        import newprocess.diagram.edit.parts.AsyncActivityAsyncActivityPreconditionCompartmentEditPart;
0031:        import newprocess.diagram.edit.parts.AsyncActivityEditPart;
0032:        import newprocess.diagram.edit.parts.AsyncActivityName2EditPart;
0033:        import newprocess.diagram.edit.parts.AsyncActivityNameEditPart;
0034:        import newprocess.diagram.edit.parts.ConclusionConclusionPostconditionCompartmentEditPart;
0035:        import newprocess.diagram.edit.parts.ConclusionEditPart;
0036:        import newprocess.diagram.edit.parts.ConclusionNameEditPart;
0037:        import newprocess.diagram.edit.parts.ConditionEditPart;
0038:        import newprocess.diagram.edit.parts.ConditionNameEditPart;
0039:        import newprocess.diagram.edit.parts.ConditionProxyEditPart;
0040:        import newprocess.diagram.edit.parts.ConditionProxyProxyNameEditPart;
0041:        import newprocess.diagram.edit.parts.ConditionTermEditPart;
0042:        import newprocess.diagram.edit.parts.EventEditPart;
0043:        import newprocess.diagram.edit.parts.EventEventPostconditionCompartmentEditPart;
0044:        import newprocess.diagram.edit.parts.EventNameEditPart;
0045:        import newprocess.diagram.edit.parts.ExpansionEditPart;
0046:        import newprocess.diagram.edit.parts.ExpansionExpansionPostconditionCompartmentEditPart;
0047:        import newprocess.diagram.edit.parts.ExpansionNameEditPart;
0048:        import newprocess.diagram.edit.parts.Expression2EditPart;
0049:        import newprocess.diagram.edit.parts.Expression3EditPart;
0050:        import newprocess.diagram.edit.parts.Expression4EditPart;
0051:        import newprocess.diagram.edit.parts.Expression5EditPart;
0052:        import newprocess.diagram.edit.parts.Expression6EditPart;
0053:        import newprocess.diagram.edit.parts.Expression7EditPart;
0054:        import newprocess.diagram.edit.parts.Expression8EditPart;
0055:        import newprocess.diagram.edit.parts.ExpressionEditPart;
0056:        import newprocess.diagram.edit.parts.ExpressionExpressionCompartment2EditPart;
0057:        import newprocess.diagram.edit.parts.ExpressionExpressionCompartment3EditPart;
0058:        import newprocess.diagram.edit.parts.ExpressionExpressionCompartment4EditPart;
0059:        import newprocess.diagram.edit.parts.ExpressionExpressionCompartment5EditPart;
0060:        import newprocess.diagram.edit.parts.ExpressionExpressionCompartment6EditPart;
0061:        import newprocess.diagram.edit.parts.ExpressionExpressionCompartment7EditPart;
0062:        import newprocess.diagram.edit.parts.ExpressionExpressionCompartment8EditPart;
0063:        import newprocess.diagram.edit.parts.ExpressionExpressionCompartmentEditPart;
0064:        import newprocess.diagram.edit.parts.GlobalsEditPart;
0065:        import newprocess.diagram.edit.parts.GlobalsGlobalsConditionCompartmentEditPart;
0066:        import newprocess.diagram.edit.parts.GlobalsGlobalsLoaderCompartmentEditPart;
0067:        import newprocess.diagram.edit.parts.ListenerEditPart;
0068:        import newprocess.diagram.edit.parts.ListenerListenerPreconditionCompartmentEditPart;
0069:        import newprocess.diagram.edit.parts.ListenerNameEditPart;
0070:        import newprocess.diagram.edit.parts.LoaderEditPart;
0071:        import newprocess.diagram.edit.parts.LoaderNameEditPart;
0072:        import newprocess.diagram.edit.parts.MessageEditPart;
0073:        import newprocess.diagram.edit.parts.MessageNameEditPart;
0074:        import newprocess.diagram.edit.parts.OrOperatorEditPart;
0075:        import newprocess.diagram.edit.parts.ProcessEditPart;
0076:        import newprocess.diagram.edit.parts.RootEditPart;
0077:        import newprocess.diagram.edit.parts.SyncActivityEditPart;
0078:        import newprocess.diagram.edit.parts.SyncActivityNameEditPart;
0079:        import newprocess.diagram.edit.parts.SyncActivitySynActivityPostconditionCompartmentEditPart;
0080:        import newprocess.diagram.edit.parts.SyncActivitySynActivityPreconditionCompartmentEditPart;
0081:
0082:        import org.eclipse.core.runtime.Platform;
0083:
0084:        import org.eclipse.emf.ecore.EAnnotation;
0085:        import org.eclipse.emf.ecore.EClass;
0086:        import org.eclipse.emf.ecore.EObject;
0087:
0088:        import org.eclipse.gmf.runtime.notation.Diagram;
0089:        import org.eclipse.gmf.runtime.notation.View;
0090:
0091:        /**
0092:         * This registry is used to determine which type of visual object should be
0093:         * created for the corresponding Diagram, Node, ChildNode or Link represented 
0094:         * by a domain model object.
0095:         *
0096:         * @generated
0097:         */
0098:        public class New_processVisualIDRegistry {
0099:
0100:            /**
0101:             * @generated
0102:             */
0103:            private static final String DEBUG_KEY = New_processDiagramEditorPlugin
0104:                    .getInstance().getBundle().getSymbolicName()
0105:                    + "/debug/visualID"; //$NON-NLS-1$
0106:
0107:            /**
0108:             * @generated
0109:             */
0110:            public static int getVisualID(View view) {
0111:                if (view instanceof  Diagram) {
0112:                    if (ProcessEditPart.MODEL_ID.equals(view.getType())) {
0113:                        return ProcessEditPart.VISUAL_ID;
0114:                    } else {
0115:                        return -1;
0116:                    }
0117:                }
0118:                return getVisualID(view.getType());
0119:            }
0120:
0121:            /**
0122:             * @generated
0123:             */
0124:            public static String getModelID(View view) {
0125:                View diagram = view.getDiagram();
0126:                while (view != diagram) {
0127:                    EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
0128:                    if (annotation != null) {
0129:                        return (String) annotation.getDetails().get("modelID"); //$NON-NLS-1$
0130:                    }
0131:                    view = (View) view.eContainer();
0132:                }
0133:                return diagram != null ? diagram.getType() : null;
0134:            }
0135:
0136:            /**
0137:             * @generated
0138:             */
0139:            public static int getVisualID(String type) {
0140:                try {
0141:                    return Integer.parseInt(type);
0142:                } catch (NumberFormatException e) {
0143:                    if (Boolean.TRUE.toString().equalsIgnoreCase(
0144:                            Platform.getDebugOption(DEBUG_KEY))) {
0145:                        New_processDiagramEditorPlugin.getInstance().logError(
0146:                                "Unable to parse view type as a visualID number: "
0147:                                        + type);
0148:                    }
0149:                }
0150:                return -1;
0151:            }
0152:
0153:            /**
0154:             * @generated
0155:             */
0156:            public static String getType(int visualID) {
0157:                return String.valueOf(visualID);
0158:            }
0159:
0160:            /**
0161:             * @generated
0162:             */
0163:            public static int getDiagramVisualID(EObject domainElement) {
0164:                if (domainElement == null) {
0165:                    return -1;
0166:                }
0167:                EClass domainElementMetaclass = domainElement.eClass();
0168:                return getDiagramVisualID(domainElement, domainElementMetaclass);
0169:            }
0170:
0171:            /**
0172:             * @generated
0173:             */
0174:            private static int getDiagramVisualID(EObject domainElement,
0175:                    EClass domainElementMetaclass) {
0176:                if (NewprocessPackage.eINSTANCE.getProcess().isSuperTypeOf(
0177:                        domainElementMetaclass)
0178:                        && isDiagramProcess_1000((Process) domainElement)) {
0179:                    return ProcessEditPart.VISUAL_ID;
0180:                }
0181:                return getUnrecognizedDiagramID(domainElement);
0182:            }
0183:
0184:            /**
0185:             * @generated
0186:             */
0187:            public static int getNodeVisualID(View containerView,
0188:                    EObject domainElement) {
0189:                if (domainElement == null) {
0190:                    return -1;
0191:                }
0192:                EClass domainElementMetaclass = domainElement.eClass();
0193:                return getNodeVisualID(containerView, domainElement,
0194:                        domainElementMetaclass, null);
0195:            }
0196:
0197:            /**
0198:             * @generated
0199:             */
0200:            public static int getNodeVisualID(View containerView,
0201:                    EObject domainElement, EClass domainElementMetaclass,
0202:                    String semanticHint) {
0203:                String containerModelID = getModelID(containerView);
0204:                if (!ProcessEditPart.MODEL_ID.equals(containerModelID)) {
0205:                    return -1;
0206:                }
0207:                int containerVisualID;
0208:                if (ProcessEditPart.MODEL_ID.equals(containerModelID)) {
0209:                    containerVisualID = getVisualID(containerView);
0210:                } else {
0211:                    if (containerView instanceof  Diagram) {
0212:                        containerVisualID = ProcessEditPart.VISUAL_ID;
0213:                    } else {
0214:                        return -1;
0215:                    }
0216:                }
0217:                int nodeVisualID = semanticHint != null ? getVisualID(semanticHint)
0218:                        : -1;
0219:                switch (containerVisualID) {
0220:                case SyncActivityEditPart.VISUAL_ID:
0221:                    if (SyncActivityNameEditPart.VISUAL_ID == nodeVisualID) {
0222:                        return SyncActivityNameEditPart.VISUAL_ID;
0223:                    }
0224:                    if (SyncActivitySynActivityPreconditionCompartmentEditPart.VISUAL_ID == nodeVisualID) {
0225:                        return SyncActivitySynActivityPreconditionCompartmentEditPart.VISUAL_ID;
0226:                    }
0227:                    if (SyncActivitySynActivityPostconditionCompartmentEditPart.VISUAL_ID == nodeVisualID) {
0228:                        return SyncActivitySynActivityPostconditionCompartmentEditPart.VISUAL_ID;
0229:                    }
0230:                    return getUnrecognizedSyncActivity_2001ChildNodeID(
0231:                            domainElement, semanticHint);
0232:                case ListenerEditPart.VISUAL_ID:
0233:                    if (ListenerNameEditPart.VISUAL_ID == nodeVisualID) {
0234:                        return ListenerNameEditPart.VISUAL_ID;
0235:                    }
0236:                    if (ListenerListenerPreconditionCompartmentEditPart.VISUAL_ID == nodeVisualID) {
0237:                        return ListenerListenerPreconditionCompartmentEditPart.VISUAL_ID;
0238:                    }
0239:                    return getUnrecognizedListener_2002ChildNodeID(
0240:                            domainElement, semanticHint);
0241:                case AsyncActivityEditPart.VISUAL_ID:
0242:                    if (AsyncActivityNameEditPart.VISUAL_ID == nodeVisualID) {
0243:                        return AsyncActivityNameEditPart.VISUAL_ID;
0244:                    }
0245:                    if (AsyncActivityAsyncActivityPreconditionCompartmentEditPart.VISUAL_ID == nodeVisualID) {
0246:                        return AsyncActivityAsyncActivityPreconditionCompartmentEditPart.VISUAL_ID;
0247:                    }
0248:                    if (AsyncActivityAsyncActivityPostconditionCompartmentEditPart.VISUAL_ID == nodeVisualID) {
0249:                        return AsyncActivityAsyncActivityPostconditionCompartmentEditPart.VISUAL_ID;
0250:                    }
0251:                    return getUnrecognizedAsyncActivity_2003ChildNodeID(
0252:                            domainElement, semanticHint);
0253:                case EventEditPart.VISUAL_ID:
0254:                    if (EventNameEditPart.VISUAL_ID == nodeVisualID) {
0255:                        return EventNameEditPart.VISUAL_ID;
0256:                    }
0257:                    if (EventEventPostconditionCompartmentEditPart.VISUAL_ID == nodeVisualID) {
0258:                        return EventEventPostconditionCompartmentEditPart.VISUAL_ID;
0259:                    }
0260:                    return getUnrecognizedEvent_2005ChildNodeID(domainElement,
0261:                            semanticHint);
0262:                case ConditionProxyEditPart.VISUAL_ID:
0263:                    if (ConditionProxyProxyNameEditPart.VISUAL_ID == nodeVisualID) {
0264:                        return ConditionProxyProxyNameEditPart.VISUAL_ID;
0265:                    }
0266:                    return getUnrecognizedConditionProxy_2006ChildNodeID(
0267:                            domainElement, semanticHint);
0268:                case ActorEditPart.VISUAL_ID:
0269:                    if (ActorNameEditPart.VISUAL_ID == nodeVisualID) {
0270:                        return ActorNameEditPart.VISUAL_ID;
0271:                    }
0272:                    return getUnrecognizedActor_2007ChildNodeID(domainElement,
0273:                            semanticHint);
0274:                case MessageEditPart.VISUAL_ID:
0275:                    if (MessageNameEditPart.VISUAL_ID == nodeVisualID) {
0276:                        return MessageNameEditPart.VISUAL_ID;
0277:                    }
0278:                    return getUnrecognizedMessage_2008ChildNodeID(
0279:                            domainElement, semanticHint);
0280:                case ExpansionEditPart.VISUAL_ID:
0281:                    if (ExpansionNameEditPart.VISUAL_ID == nodeVisualID) {
0282:                        return ExpansionNameEditPart.VISUAL_ID;
0283:                    }
0284:                    if (ExpansionExpansionPostconditionCompartmentEditPart.VISUAL_ID == nodeVisualID) {
0285:                        return ExpansionExpansionPostconditionCompartmentEditPart.VISUAL_ID;
0286:                    }
0287:                    return getUnrecognizedExpansion_2009ChildNodeID(
0288:                            domainElement, semanticHint);
0289:                case ConclusionEditPart.VISUAL_ID:
0290:                    if (ConclusionNameEditPart.VISUAL_ID == nodeVisualID) {
0291:                        return ConclusionNameEditPart.VISUAL_ID;
0292:                    }
0293:                    if (ConclusionConclusionPostconditionCompartmentEditPart.VISUAL_ID == nodeVisualID) {
0294:                        return ConclusionConclusionPostconditionCompartmentEditPart.VISUAL_ID;
0295:                    }
0296:                    return getUnrecognizedConclusion_2010ChildNodeID(
0297:                            domainElement, semanticHint);
0298:                case GlobalsEditPart.VISUAL_ID:
0299:                    if (GlobalsGlobalsLoaderCompartmentEditPart.VISUAL_ID == nodeVisualID) {
0300:                        return GlobalsGlobalsLoaderCompartmentEditPart.VISUAL_ID;
0301:                    }
0302:                    if (GlobalsGlobalsConditionCompartmentEditPart.VISUAL_ID == nodeVisualID) {
0303:                        return GlobalsGlobalsConditionCompartmentEditPart.VISUAL_ID;
0304:                    }
0305:                    return getUnrecognizedGlobals_2011ChildNodeID(
0306:                            domainElement, semanticHint);
0307:                case ExpressionEditPart.VISUAL_ID:
0308:                    if (ExpressionExpressionCompartmentEditPart.VISUAL_ID == nodeVisualID) {
0309:                        return ExpressionExpressionCompartmentEditPart.VISUAL_ID;
0310:                    }
0311:                    if ((semanticHint == null || RootEditPart.VISUAL_ID == nodeVisualID)
0312:                            && NewprocessPackage.eINSTANCE.getRoot()
0313:                                    .isSuperTypeOf(domainElementMetaclass)
0314:                            && (domainElement == null || isNodeRoot_3002((Root) domainElement))) {
0315:                        return RootEditPart.VISUAL_ID;
0316:                    }
0317:                    if ((semanticHint == null || ConditionTermEditPart.VISUAL_ID == nodeVisualID)
0318:                            && NewprocessPackage.eINSTANCE.getConditionTerm()
0319:                                    .isSuperTypeOf(domainElementMetaclass)
0320:                            && (domainElement == null || isNodeConditionTerm_3005((ConditionTerm) domainElement))) {
0321:                        return ConditionTermEditPart.VISUAL_ID;
0322:                    }
0323:                    return getUnrecognizedExpression_3001ChildNodeID(
0324:                            domainElement, semanticHint);
0325:                case RootEditPart.VISUAL_ID:
0326:                    return getUnrecognizedRoot_3002ChildNodeID(domainElement,
0327:                            semanticHint);
0328:                case OrOperatorEditPart.VISUAL_ID:
0329:                    return getUnrecognizedOrOperator_3003ChildNodeID(
0330:                            domainElement, semanticHint);
0331:                case AndOperatorEditPart.VISUAL_ID:
0332:                    return getUnrecognizedAndOperator_3004ChildNodeID(
0333:                            domainElement, semanticHint);
0334:                case ConditionTermEditPart.VISUAL_ID:
0335:                    return getUnrecognizedConditionTerm_3005ChildNodeID(
0336:                            domainElement, semanticHint);
0337:                case Expression2EditPart.VISUAL_ID:
0338:                    if (ExpressionExpressionCompartment2EditPart.VISUAL_ID == nodeVisualID) {
0339:                        return ExpressionExpressionCompartment2EditPart.VISUAL_ID;
0340:                    }
0341:                    if ((semanticHint == null || RootEditPart.VISUAL_ID == nodeVisualID)
0342:                            && NewprocessPackage.eINSTANCE.getRoot()
0343:                                    .isSuperTypeOf(domainElementMetaclass)
0344:                            && (domainElement == null || isNodeRoot_3002((Root) domainElement))) {
0345:                        return RootEditPart.VISUAL_ID;
0346:                    }
0347:                    if ((semanticHint == null || ConditionTermEditPart.VISUAL_ID == nodeVisualID)
0348:                            && NewprocessPackage.eINSTANCE.getConditionTerm()
0349:                                    .isSuperTypeOf(domainElementMetaclass)
0350:                            && (domainElement == null || isNodeConditionTerm_3005((ConditionTerm) domainElement))) {
0351:                        return ConditionTermEditPart.VISUAL_ID;
0352:                    }
0353:                    return getUnrecognizedExpression_3006ChildNodeID(
0354:                            domainElement, semanticHint);
0355:                case Expression3EditPart.VISUAL_ID:
0356:                    if (ExpressionExpressionCompartment3EditPart.VISUAL_ID == nodeVisualID) {
0357:                        return ExpressionExpressionCompartment3EditPart.VISUAL_ID;
0358:                    }
0359:                    if ((semanticHint == null || RootEditPart.VISUAL_ID == nodeVisualID)
0360:                            && NewprocessPackage.eINSTANCE.getRoot()
0361:                                    .isSuperTypeOf(domainElementMetaclass)
0362:                            && (domainElement == null || isNodeRoot_3002((Root) domainElement))) {
0363:                        return RootEditPart.VISUAL_ID;
0364:                    }
0365:                    if ((semanticHint == null || ConditionTermEditPart.VISUAL_ID == nodeVisualID)
0366:                            && NewprocessPackage.eINSTANCE.getConditionTerm()
0367:                                    .isSuperTypeOf(domainElementMetaclass)
0368:                            && (domainElement == null || isNodeConditionTerm_3005((ConditionTerm) domainElement))) {
0369:                        return ConditionTermEditPart.VISUAL_ID;
0370:                    }
0371:                    return getUnrecognizedExpression_3007ChildNodeID(
0372:                            domainElement, semanticHint);
0373:                case Expression4EditPart.VISUAL_ID:
0374:                    if (ExpressionExpressionCompartment4EditPart.VISUAL_ID == nodeVisualID) {
0375:                        return ExpressionExpressionCompartment4EditPart.VISUAL_ID;
0376:                    }
0377:                    if ((semanticHint == null || RootEditPart.VISUAL_ID == nodeVisualID)
0378:                            && NewprocessPackage.eINSTANCE.getRoot()
0379:                                    .isSuperTypeOf(domainElementMetaclass)
0380:                            && (domainElement == null || isNodeRoot_3002((Root) domainElement))) {
0381:                        return RootEditPart.VISUAL_ID;
0382:                    }
0383:                    if ((semanticHint == null || ConditionTermEditPart.VISUAL_ID == nodeVisualID)
0384:                            && NewprocessPackage.eINSTANCE.getConditionTerm()
0385:                                    .isSuperTypeOf(domainElementMetaclass)
0386:                            && (domainElement == null || isNodeConditionTerm_3005((ConditionTerm) domainElement))) {
0387:                        return ConditionTermEditPart.VISUAL_ID;
0388:                    }
0389:                    return getUnrecognizedExpression_3008ChildNodeID(
0390:                            domainElement, semanticHint);
0391:                case Expression5EditPart.VISUAL_ID:
0392:                    if (ExpressionExpressionCompartment5EditPart.VISUAL_ID == nodeVisualID) {
0393:                        return ExpressionExpressionCompartment5EditPart.VISUAL_ID;
0394:                    }
0395:                    if ((semanticHint == null || RootEditPart.VISUAL_ID == nodeVisualID)
0396:                            && NewprocessPackage.eINSTANCE.getRoot()
0397:                                    .isSuperTypeOf(domainElementMetaclass)
0398:                            && (domainElement == null || isNodeRoot_3002((Root) domainElement))) {
0399:                        return RootEditPart.VISUAL_ID;
0400:                    }
0401:                    if ((semanticHint == null || ConditionTermEditPart.VISUAL_ID == nodeVisualID)
0402:                            && NewprocessPackage.eINSTANCE.getConditionTerm()
0403:                                    .isSuperTypeOf(domainElementMetaclass)
0404:                            && (domainElement == null || isNodeConditionTerm_3005((ConditionTerm) domainElement))) {
0405:                        return ConditionTermEditPart.VISUAL_ID;
0406:                    }
0407:                    return getUnrecognizedExpression_3009ChildNodeID(
0408:                            domainElement, semanticHint);
0409:                case Expression6EditPart.VISUAL_ID:
0410:                    if (ExpressionExpressionCompartment6EditPart.VISUAL_ID == nodeVisualID) {
0411:                        return ExpressionExpressionCompartment6EditPart.VISUAL_ID;
0412:                    }
0413:                    if ((semanticHint == null || RootEditPart.VISUAL_ID == nodeVisualID)
0414:                            && NewprocessPackage.eINSTANCE.getRoot()
0415:                                    .isSuperTypeOf(domainElementMetaclass)
0416:                            && (domainElement == null || isNodeRoot_3002((Root) domainElement))) {
0417:                        return RootEditPart.VISUAL_ID;
0418:                    }
0419:                    if ((semanticHint == null || ConditionTermEditPart.VISUAL_ID == nodeVisualID)
0420:                            && NewprocessPackage.eINSTANCE.getConditionTerm()
0421:                                    .isSuperTypeOf(domainElementMetaclass)
0422:                            && (domainElement == null || isNodeConditionTerm_3005((ConditionTerm) domainElement))) {
0423:                        return ConditionTermEditPart.VISUAL_ID;
0424:                    }
0425:                    return getUnrecognizedExpression_3010ChildNodeID(
0426:                            domainElement, semanticHint);
0427:                case Expression7EditPart.VISUAL_ID:
0428:                    if (ExpressionExpressionCompartment7EditPart.VISUAL_ID == nodeVisualID) {
0429:                        return ExpressionExpressionCompartment7EditPart.VISUAL_ID;
0430:                    }
0431:                    if ((semanticHint == null || RootEditPart.VISUAL_ID == nodeVisualID)
0432:                            && NewprocessPackage.eINSTANCE.getRoot()
0433:                                    .isSuperTypeOf(domainElementMetaclass)
0434:                            && (domainElement == null || isNodeRoot_3002((Root) domainElement))) {
0435:                        return RootEditPart.VISUAL_ID;
0436:                    }
0437:                    if ((semanticHint == null || ConditionTermEditPart.VISUAL_ID == nodeVisualID)
0438:                            && NewprocessPackage.eINSTANCE.getConditionTerm()
0439:                                    .isSuperTypeOf(domainElementMetaclass)
0440:                            && (domainElement == null || isNodeConditionTerm_3005((ConditionTerm) domainElement))) {
0441:                        return ConditionTermEditPart.VISUAL_ID;
0442:                    }
0443:                    return getUnrecognizedExpression_3011ChildNodeID(
0444:                            domainElement, semanticHint);
0445:                case Expression8EditPart.VISUAL_ID:
0446:                    if (ExpressionExpressionCompartment8EditPart.VISUAL_ID == nodeVisualID) {
0447:                        return ExpressionExpressionCompartment8EditPart.VISUAL_ID;
0448:                    }
0449:                    if ((semanticHint == null || RootEditPart.VISUAL_ID == nodeVisualID)
0450:                            && NewprocessPackage.eINSTANCE.getRoot()
0451:                                    .isSuperTypeOf(domainElementMetaclass)
0452:                            && (domainElement == null || isNodeRoot_3002((Root) domainElement))) {
0453:                        return RootEditPart.VISUAL_ID;
0454:                    }
0455:                    if ((semanticHint == null || ConditionTermEditPart.VISUAL_ID == nodeVisualID)
0456:                            && NewprocessPackage.eINSTANCE.getConditionTerm()
0457:                                    .isSuperTypeOf(domainElementMetaclass)
0458:                            && (domainElement == null || isNodeConditionTerm_3005((ConditionTerm) domainElement))) {
0459:                        return ConditionTermEditPart.VISUAL_ID;
0460:                    }
0461:                    return getUnrecognizedExpression_3012ChildNodeID(
0462:                            domainElement, semanticHint);
0463:                case LoaderEditPart.VISUAL_ID:
0464:                    if (LoaderNameEditPart.VISUAL_ID == nodeVisualID) {
0465:                        return LoaderNameEditPart.VISUAL_ID;
0466:                    }
0467:                    return getUnrecognizedLoader_3013ChildNodeID(domainElement,
0468:                            semanticHint);
0469:                case ConditionEditPart.VISUAL_ID:
0470:                    if (ConditionNameEditPart.VISUAL_ID == nodeVisualID) {
0471:                        return ConditionNameEditPart.VISUAL_ID;
0472:                    }
0473:                    return getUnrecognizedCondition_3014ChildNodeID(
0474:                            domainElement, semanticHint);
0475:                case SyncActivitySynActivityPreconditionCompartmentEditPart.VISUAL_ID:
0476:                    if ((semanticHint == null || ExpressionEditPart.VISUAL_ID == nodeVisualID)
0477:                            && NewprocessPackage.eINSTANCE.getExpression()
0478:                                    .isSuperTypeOf(domainElementMetaclass)
0479:                            && (domainElement == null || isNodeExpression_3001((Expression) domainElement))) {
0480:                        return ExpressionEditPart.VISUAL_ID;
0481:                    }
0482:                    return getUnrecognizedSyncActivitySynActivityPreconditionCompartment_7001ChildNodeID(
0483:                            domainElement, semanticHint);
0484:                case SyncActivitySynActivityPostconditionCompartmentEditPart.VISUAL_ID:
0485:                    if ((semanticHint == null || Expression2EditPart.VISUAL_ID == nodeVisualID)
0486:                            && NewprocessPackage.eINSTANCE.getExpression()
0487:                                    .isSuperTypeOf(domainElementMetaclass)
0488:                            && (domainElement == null || isNodeExpression_3006((Expression) domainElement))) {
0489:                        return Expression2EditPart.VISUAL_ID;
0490:                    }
0491:                    return getUnrecognizedSyncActivitySynActivityPostconditionCompartment_7002ChildNodeID(
0492:                            domainElement, semanticHint);
0493:                case ExpressionExpressionCompartmentEditPart.VISUAL_ID:
0494:                    if ((semanticHint == null || OrOperatorEditPart.VISUAL_ID == nodeVisualID)
0495:                            && NewprocessPackage.eINSTANCE.getOrOperator()
0496:                                    .isSuperTypeOf(domainElementMetaclass)
0497:                            && (domainElement == null || isNodeOrOperator_3003((OrOperator) domainElement))) {
0498:                        return OrOperatorEditPart.VISUAL_ID;
0499:                    }
0500:                    if ((semanticHint == null || AndOperatorEditPart.VISUAL_ID == nodeVisualID)
0501:                            && NewprocessPackage.eINSTANCE.getAndOperator()
0502:                                    .isSuperTypeOf(domainElementMetaclass)
0503:                            && (domainElement == null || isNodeAndOperator_3004((AndOperator) domainElement))) {
0504:                        return AndOperatorEditPart.VISUAL_ID;
0505:                    }
0506:                    return getUnrecognizedExpressionExpressionCompartment_7003ChildNodeID(
0507:                            domainElement, semanticHint);
0508:                case ExpressionExpressionCompartment2EditPart.VISUAL_ID:
0509:                    if ((semanticHint == null || OrOperatorEditPart.VISUAL_ID == nodeVisualID)
0510:                            && NewprocessPackage.eINSTANCE.getOrOperator()
0511:                                    .isSuperTypeOf(domainElementMetaclass)
0512:                            && (domainElement == null || isNodeOrOperator_3003((OrOperator) domainElement))) {
0513:                        return OrOperatorEditPart.VISUAL_ID;
0514:                    }
0515:                    if ((semanticHint == null || AndOperatorEditPart.VISUAL_ID == nodeVisualID)
0516:                            && NewprocessPackage.eINSTANCE.getAndOperator()
0517:                                    .isSuperTypeOf(domainElementMetaclass)
0518:                            && (domainElement == null || isNodeAndOperator_3004((AndOperator) domainElement))) {
0519:                        return AndOperatorEditPart.VISUAL_ID;
0520:                    }
0521:                    return getUnrecognizedExpressionExpressionCompartment_7004ChildNodeID(
0522:                            domainElement, semanticHint);
0523:                case ListenerListenerPreconditionCompartmentEditPart.VISUAL_ID:
0524:                    if ((semanticHint == null || Expression3EditPart.VISUAL_ID == nodeVisualID)
0525:                            && NewprocessPackage.eINSTANCE.getExpression()
0526:                                    .isSuperTypeOf(domainElementMetaclass)
0527:                            && (domainElement == null || isNodeExpression_3007((Expression) domainElement))) {
0528:                        return Expression3EditPart.VISUAL_ID;
0529:                    }
0530:                    return getUnrecognizedListenerListenerPreconditionCompartment_7005ChildNodeID(
0531:                            domainElement, semanticHint);
0532:                case ExpressionExpressionCompartment3EditPart.VISUAL_ID:
0533:                    if ((semanticHint == null || OrOperatorEditPart.VISUAL_ID == nodeVisualID)
0534:                            && NewprocessPackage.eINSTANCE.getOrOperator()
0535:                                    .isSuperTypeOf(domainElementMetaclass)
0536:                            && (domainElement == null || isNodeOrOperator_3003((OrOperator) domainElement))) {
0537:                        return OrOperatorEditPart.VISUAL_ID;
0538:                    }
0539:                    if ((semanticHint == null || AndOperatorEditPart.VISUAL_ID == nodeVisualID)
0540:                            && NewprocessPackage.eINSTANCE.getAndOperator()
0541:                                    .isSuperTypeOf(domainElementMetaclass)
0542:                            && (domainElement == null || isNodeAndOperator_3004((AndOperator) domainElement))) {
0543:                        return AndOperatorEditPart.VISUAL_ID;
0544:                    }
0545:                    return getUnrecognizedExpressionExpressionCompartment_7006ChildNodeID(
0546:                            domainElement, semanticHint);
0547:                case AsyncActivityAsyncActivityPreconditionCompartmentEditPart.VISUAL_ID:
0548:                    if ((semanticHint == null || Expression4EditPart.VISUAL_ID == nodeVisualID)
0549:                            && NewprocessPackage.eINSTANCE.getExpression()
0550:                                    .isSuperTypeOf(domainElementMetaclass)
0551:                            && (domainElement == null || isNodeExpression_3008((Expression) domainElement))) {
0552:                        return Expression4EditPart.VISUAL_ID;
0553:                    }
0554:                    return getUnrecognizedAsyncActivityAsyncActivityPreconditionCompartment_7007ChildNodeID(
0555:                            domainElement, semanticHint);
0556:                case AsyncActivityAsyncActivityPostconditionCompartmentEditPart.VISUAL_ID:
0557:                    if ((semanticHint == null || Expression5EditPart.VISUAL_ID == nodeVisualID)
0558:                            && NewprocessPackage.eINSTANCE.getExpression()
0559:                                    .isSuperTypeOf(domainElementMetaclass)
0560:                            && (domainElement == null || isNodeExpression_3009((Expression) domainElement))) {
0561:                        return Expression5EditPart.VISUAL_ID;
0562:                    }
0563:                    return getUnrecognizedAsyncActivityAsyncActivityPostconditionCompartment_7008ChildNodeID(
0564:                            domainElement, semanticHint);
0565:                case ExpressionExpressionCompartment4EditPart.VISUAL_ID:
0566:                    if ((semanticHint == null || OrOperatorEditPart.VISUAL_ID == nodeVisualID)
0567:                            && NewprocessPackage.eINSTANCE.getOrOperator()
0568:                                    .isSuperTypeOf(domainElementMetaclass)
0569:                            && (domainElement == null || isNodeOrOperator_3003((OrOperator) domainElement))) {
0570:                        return OrOperatorEditPart.VISUAL_ID;
0571:                    }
0572:                    if ((semanticHint == null || AndOperatorEditPart.VISUAL_ID == nodeVisualID)
0573:                            && NewprocessPackage.eINSTANCE.getAndOperator()
0574:                                    .isSuperTypeOf(domainElementMetaclass)
0575:                            && (domainElement == null || isNodeAndOperator_3004((AndOperator) domainElement))) {
0576:                        return AndOperatorEditPart.VISUAL_ID;
0577:                    }
0578:                    return getUnrecognizedExpressionExpressionCompartment_7009ChildNodeID(
0579:                            domainElement, semanticHint);
0580:                case ExpressionExpressionCompartment5EditPart.VISUAL_ID:
0581:                    if ((semanticHint == null || OrOperatorEditPart.VISUAL_ID == nodeVisualID)
0582:                            && NewprocessPackage.eINSTANCE.getOrOperator()
0583:                                    .isSuperTypeOf(domainElementMetaclass)
0584:                            && (domainElement == null || isNodeOrOperator_3003((OrOperator) domainElement))) {
0585:                        return OrOperatorEditPart.VISUAL_ID;
0586:                    }
0587:                    if ((semanticHint == null || AndOperatorEditPart.VISUAL_ID == nodeVisualID)
0588:                            && NewprocessPackage.eINSTANCE.getAndOperator()
0589:                                    .isSuperTypeOf(domainElementMetaclass)
0590:                            && (domainElement == null || isNodeAndOperator_3004((AndOperator) domainElement))) {
0591:                        return AndOperatorEditPart.VISUAL_ID;
0592:                    }
0593:                    return getUnrecognizedExpressionExpressionCompartment_7010ChildNodeID(
0594:                            domainElement, semanticHint);
0595:                case EventEventPostconditionCompartmentEditPart.VISUAL_ID:
0596:                    if ((semanticHint == null || Expression6EditPart.VISUAL_ID == nodeVisualID)
0597:                            && NewprocessPackage.eINSTANCE.getExpression()
0598:                                    .isSuperTypeOf(domainElementMetaclass)
0599:                            && (domainElement == null || isNodeExpression_3010((Expression) domainElement))) {
0600:                        return Expression6EditPart.VISUAL_ID;
0601:                    }
0602:                    return getUnrecognizedEventEventPostconditionCompartment_7013ChildNodeID(
0603:                            domainElement, semanticHint);
0604:                case ExpressionExpressionCompartment6EditPart.VISUAL_ID:
0605:                    if ((semanticHint == null || OrOperatorEditPart.VISUAL_ID == nodeVisualID)
0606:                            && NewprocessPackage.eINSTANCE.getOrOperator()
0607:                                    .isSuperTypeOf(domainElementMetaclass)
0608:                            && (domainElement == null || isNodeOrOperator_3003((OrOperator) domainElement))) {
0609:                        return OrOperatorEditPart.VISUAL_ID;
0610:                    }
0611:                    if ((semanticHint == null || AndOperatorEditPart.VISUAL_ID == nodeVisualID)
0612:                            && NewprocessPackage.eINSTANCE.getAndOperator()
0613:                                    .isSuperTypeOf(domainElementMetaclass)
0614:                            && (domainElement == null || isNodeAndOperator_3004((AndOperator) domainElement))) {
0615:                        return AndOperatorEditPart.VISUAL_ID;
0616:                    }
0617:                    return getUnrecognizedExpressionExpressionCompartment_7014ChildNodeID(
0618:                            domainElement, semanticHint);
0619:                case ExpansionExpansionPostconditionCompartmentEditPart.VISUAL_ID:
0620:                    if ((semanticHint == null || Expression7EditPart.VISUAL_ID == nodeVisualID)
0621:                            && NewprocessPackage.eINSTANCE.getExpression()
0622:                                    .isSuperTypeOf(domainElementMetaclass)
0623:                            && (domainElement == null || isNodeExpression_3011((Expression) domainElement))) {
0624:                        return Expression7EditPart.VISUAL_ID;
0625:                    }
0626:                    return getUnrecognizedExpansionExpansionPostconditionCompartment_7015ChildNodeID(
0627:                            domainElement, semanticHint);
0628:                case ExpressionExpressionCompartment7EditPart.VISUAL_ID:
0629:                    if ((semanticHint == null || OrOperatorEditPart.VISUAL_ID == nodeVisualID)
0630:                            && NewprocessPackage.eINSTANCE.getOrOperator()
0631:                                    .isSuperTypeOf(domainElementMetaclass)
0632:                            && (domainElement == null || isNodeOrOperator_3003((OrOperator) domainElement))) {
0633:                        return OrOperatorEditPart.VISUAL_ID;
0634:                    }
0635:                    if ((semanticHint == null || AndOperatorEditPart.VISUAL_ID == nodeVisualID)
0636:                            && NewprocessPackage.eINSTANCE.getAndOperator()
0637:                                    .isSuperTypeOf(domainElementMetaclass)
0638:                            && (domainElement == null || isNodeAndOperator_3004((AndOperator) domainElement))) {
0639:                        return AndOperatorEditPart.VISUAL_ID;
0640:                    }
0641:                    return getUnrecognizedExpressionExpressionCompartment_7016ChildNodeID(
0642:                            domainElement, semanticHint);
0643:                case ConclusionConclusionPostconditionCompartmentEditPart.VISUAL_ID:
0644:                    if ((semanticHint == null || Expression8EditPart.VISUAL_ID == nodeVisualID)
0645:                            && NewprocessPackage.eINSTANCE.getExpression()
0646:                                    .isSuperTypeOf(domainElementMetaclass)
0647:                            && (domainElement == null || isNodeExpression_3012((Expression) domainElement))) {
0648:                        return Expression8EditPart.VISUAL_ID;
0649:                    }
0650:                    return getUnrecognizedConclusionConclusionPostconditionCompartment_7017ChildNodeID(
0651:                            domainElement, semanticHint);
0652:                case ExpressionExpressionCompartment8EditPart.VISUAL_ID:
0653:                    if ((semanticHint == null || OrOperatorEditPart.VISUAL_ID == nodeVisualID)
0654:                            && NewprocessPackage.eINSTANCE.getOrOperator()
0655:                                    .isSuperTypeOf(domainElementMetaclass)
0656:                            && (domainElement == null || isNodeOrOperator_3003((OrOperator) domainElement))) {
0657:                        return OrOperatorEditPart.VISUAL_ID;
0658:                    }
0659:                    if ((semanticHint == null || AndOperatorEditPart.VISUAL_ID == nodeVisualID)
0660:                            && NewprocessPackage.eINSTANCE.getAndOperator()
0661:                                    .isSuperTypeOf(domainElementMetaclass)
0662:                            && (domainElement == null || isNodeAndOperator_3004((AndOperator) domainElement))) {
0663:                        return AndOperatorEditPart.VISUAL_ID;
0664:                    }
0665:                    return getUnrecognizedExpressionExpressionCompartment_7018ChildNodeID(
0666:                            domainElement, semanticHint);
0667:                case GlobalsGlobalsLoaderCompartmentEditPart.VISUAL_ID:
0668:                    if ((semanticHint == null || LoaderEditPart.VISUAL_ID == nodeVisualID)
0669:                            && NewprocessPackage.eINSTANCE.getLoader()
0670:                                    .isSuperTypeOf(domainElementMetaclass)
0671:                            && (domainElement == null || isNodeLoader_3013((Loader) domainElement))) {
0672:                        return LoaderEditPart.VISUAL_ID;
0673:                    }
0674:                    return getUnrecognizedGlobalsGlobalsLoaderCompartment_7019ChildNodeID(
0675:                            domainElement, semanticHint);
0676:                case GlobalsGlobalsConditionCompartmentEditPart.VISUAL_ID:
0677:                    if ((semanticHint == null || ConditionEditPart.VISUAL_ID == nodeVisualID)
0678:                            && NewprocessPackage.eINSTANCE.getCondition()
0679:                                    .isSuperTypeOf(domainElementMetaclass)
0680:                            && (domainElement == null || isNodeCondition_3014((Condition) domainElement))) {
0681:                        return ConditionEditPart.VISUAL_ID;
0682:                    }
0683:                    return getUnrecognizedGlobalsGlobalsConditionCompartment_7020ChildNodeID(
0684:                            domainElement, semanticHint);
0685:                case ProcessEditPart.VISUAL_ID:
0686:                    if ((semanticHint == null || SyncActivityEditPart.VISUAL_ID == nodeVisualID)
0687:                            && NewprocessPackage.eINSTANCE.getSyncActivity()
0688:                                    .isSuperTypeOf(domainElementMetaclass)
0689:                            && (domainElement == null || isNodeSyncActivity_2001((SyncActivity) domainElement))) {
0690:                        return SyncActivityEditPart.VISUAL_ID;
0691:                    }
0692:                    if ((semanticHint == null || ListenerEditPart.VISUAL_ID == nodeVisualID)
0693:                            && NewprocessPackage.eINSTANCE.getListener()
0694:                                    .isSuperTypeOf(domainElementMetaclass)
0695:                            && (domainElement == null || isNodeListener_2002((Listener) domainElement))) {
0696:                        return ListenerEditPart.VISUAL_ID;
0697:                    }
0698:                    if ((semanticHint == null || AsyncActivityEditPart.VISUAL_ID == nodeVisualID)
0699:                            && NewprocessPackage.eINSTANCE.getAsyncActivity()
0700:                                    .isSuperTypeOf(domainElementMetaclass)
0701:                            && (domainElement == null || isNodeAsyncActivity_2003((AsyncActivity) domainElement))) {
0702:                        return AsyncActivityEditPart.VISUAL_ID;
0703:                    }
0704:                    if ((semanticHint == null || EventEditPart.VISUAL_ID == nodeVisualID)
0705:                            && NewprocessPackage.eINSTANCE.getEvent()
0706:                                    .isSuperTypeOf(domainElementMetaclass)
0707:                            && (domainElement == null || isNodeEvent_2005((Event) domainElement))) {
0708:                        return EventEditPart.VISUAL_ID;
0709:                    }
0710:                    if ((semanticHint == null || ConditionProxyEditPart.VISUAL_ID == nodeVisualID)
0711:                            && NewprocessPackage.eINSTANCE.getConditionProxy()
0712:                                    .isSuperTypeOf(domainElementMetaclass)
0713:                            && (domainElement == null || isNodeConditionProxy_2006((ConditionProxy) domainElement))) {
0714:                        return ConditionProxyEditPart.VISUAL_ID;
0715:                    }
0716:                    if ((semanticHint == null || ActorEditPart.VISUAL_ID == nodeVisualID)
0717:                            && NewprocessPackage.eINSTANCE.getActor()
0718:                                    .isSuperTypeOf(domainElementMetaclass)
0719:                            && (domainElement == null || isNodeActor_2007((Actor) domainElement))) {
0720:                        return ActorEditPart.VISUAL_ID;
0721:                    }
0722:                    if ((semanticHint == null || MessageEditPart.VISUAL_ID == nodeVisualID)
0723:                            && NewprocessPackage.eINSTANCE.getMessage()
0724:                                    .isSuperTypeOf(domainElementMetaclass)
0725:                            && (domainElement == null || isNodeMessage_2008((Message) domainElement))) {
0726:                        return MessageEditPart.VISUAL_ID;
0727:                    }
0728:                    if ((semanticHint == null || ExpansionEditPart.VISUAL_ID == nodeVisualID)
0729:                            && NewprocessPackage.eINSTANCE.getExpansion()
0730:                                    .isSuperTypeOf(domainElementMetaclass)
0731:                            && (domainElement == null || isNodeExpansion_2009((Expansion) domainElement))) {
0732:                        return ExpansionEditPart.VISUAL_ID;
0733:                    }
0734:                    if ((semanticHint == null || ConclusionEditPart.VISUAL_ID == nodeVisualID)
0735:                            && NewprocessPackage.eINSTANCE.getConclusion()
0736:                                    .isSuperTypeOf(domainElementMetaclass)
0737:                            && (domainElement == null || isNodeConclusion_2010((Conclusion) domainElement))) {
0738:                        return ConclusionEditPart.VISUAL_ID;
0739:                    }
0740:                    if ((semanticHint == null || GlobalsEditPart.VISUAL_ID == nodeVisualID)
0741:                            && NewprocessPackage.eINSTANCE.getGlobals()
0742:                                    .isSuperTypeOf(domainElementMetaclass)
0743:                            && (domainElement == null || isNodeGlobals_2011((Globals) domainElement))) {
0744:                        return GlobalsEditPart.VISUAL_ID;
0745:                    }
0746:                    return getUnrecognizedProcess_1000ChildNodeID(
0747:                            domainElement, semanticHint);
0748:                }
0749:                return -1;
0750:            }
0751:
0752:            /**
0753:             * @generated
0754:             */
0755:            public static int getLinkWithClassVisualID(EObject domainElement) {
0756:                if (domainElement == null) {
0757:                    return -1;
0758:                }
0759:                EClass domainElementMetaclass = domainElement.eClass();
0760:                return getLinkWithClassVisualID(domainElement,
0761:                        domainElementMetaclass);
0762:            }
0763:
0764:            /**
0765:             * @generated
0766:             */
0767:            public static int getLinkWithClassVisualID(EObject domainElement,
0768:                    EClass domainElementMetaclass) {
0769:                {
0770:                    return getUnrecognizedLinkWithClassID(domainElement);
0771:                }
0772:            }
0773:
0774:            /**
0775:             * User can change implementation of this method to check some additional 
0776:             * conditions here.
0777:             *
0778:             * @generated
0779:             */
0780:            private static boolean isDiagramProcess_1000(Process element) {
0781:                return true;
0782:            }
0783:
0784:            /**
0785:             * User can change implementation of this method to handle some specific
0786:             * situations not covered by default logic.
0787:             *
0788:             * @generated
0789:             */
0790:            private static int getUnrecognizedDiagramID(EObject domainElement) {
0791:                return -1;
0792:            }
0793:
0794:            /**
0795:             * User can change implementation of this method to check some additional 
0796:             * conditions here.
0797:             *
0798:             * @generated
0799:             */
0800:            private static boolean isNodeSyncActivity_2001(SyncActivity element) {
0801:                return true;
0802:            }
0803:
0804:            /**
0805:             * User can change implementation of this method to check some additional 
0806:             * conditions here.
0807:             *
0808:             * @generated
0809:             */
0810:            private static boolean isNodeListener_2002(Listener element) {
0811:                return true;
0812:            }
0813:
0814:            /**
0815:             * User can change implementation of this method to check some additional 
0816:             * conditions here.
0817:             *
0818:             * @generated
0819:             */
0820:            private static boolean isNodeAsyncActivity_2003(
0821:                    AsyncActivity element) {
0822:                return true;
0823:            }
0824:
0825:            /**
0826:             * User can change implementation of this method to check some additional 
0827:             * conditions here.
0828:             *
0829:             * @generated
0830:             */
0831:            private static boolean isNodeEvent_2005(Event element) {
0832:                return true;
0833:            }
0834:
0835:            /**
0836:             * User can change implementation of this method to check some additional 
0837:             * conditions here.
0838:             *
0839:             * @generated
0840:             */
0841:            private static boolean isNodeConditionProxy_2006(
0842:                    ConditionProxy element) {
0843:                return true;
0844:            }
0845:
0846:            /**
0847:             * User can change implementation of this method to check some additional 
0848:             * conditions here.
0849:             *
0850:             * @generated
0851:             */
0852:            private static boolean isNodeActor_2007(Actor element) {
0853:                return true;
0854:            }
0855:
0856:            /**
0857:             * User can change implementation of this method to check some additional 
0858:             * conditions here.
0859:             *
0860:             * @generated
0861:             */
0862:            private static boolean isNodeMessage_2008(Message element) {
0863:                return true;
0864:            }
0865:
0866:            /**
0867:             * User can change implementation of this method to check some additional 
0868:             * conditions here.
0869:             *
0870:             * @generated
0871:             */
0872:            private static boolean isNodeExpansion_2009(Expansion element) {
0873:                return true;
0874:            }
0875:
0876:            /**
0877:             * User can change implementation of this method to check some additional 
0878:             * conditions here.
0879:             *
0880:             * @generated
0881:             */
0882:            private static boolean isNodeConclusion_2010(Conclusion element) {
0883:                return true;
0884:            }
0885:
0886:            /**
0887:             * User can change implementation of this method to check some additional 
0888:             * conditions here.
0889:             *
0890:             * @generated
0891:             */
0892:            private static boolean isNodeGlobals_2011(Globals element) {
0893:                return true;
0894:            }
0895:
0896:            /**
0897:             * User can change implementation of this method to check some additional 
0898:             * conditions here.
0899:             *
0900:             * @generated
0901:             */
0902:            private static boolean isNodeExpression_3001(Expression element) {
0903:                return true;
0904:            }
0905:
0906:            /**
0907:             * User can change implementation of this method to check some additional 
0908:             * conditions here.
0909:             *
0910:             * @generated
0911:             */
0912:            private static boolean isNodeRoot_3002(Root element) {
0913:                return true;
0914:            }
0915:
0916:            /**
0917:             * User can change implementation of this method to check some additional 
0918:             * conditions here.
0919:             *
0920:             * @generated
0921:             */
0922:            private static boolean isNodeOrOperator_3003(OrOperator element) {
0923:                return true;
0924:            }
0925:
0926:            /**
0927:             * User can change implementation of this method to check some additional 
0928:             * conditions here.
0929:             *
0930:             * @generated
0931:             */
0932:            private static boolean isNodeAndOperator_3004(AndOperator element) {
0933:                return true;
0934:            }
0935:
0936:            /**
0937:             * User can change implementation of this method to check some additional 
0938:             * conditions here.
0939:             *
0940:             * @generated
0941:             */
0942:            private static boolean isNodeConditionTerm_3005(
0943:                    ConditionTerm element) {
0944:                return true;
0945:            }
0946:
0947:            /**
0948:             * User can change implementation of this method to check some additional 
0949:             * conditions here.
0950:             *
0951:             * @generated
0952:             */
0953:            private static boolean isNodeExpression_3006(Expression element) {
0954:                return true;
0955:            }
0956:
0957:            /**
0958:             * User can change implementation of this method to check some additional 
0959:             * conditions here.
0960:             *
0961:             * @generated
0962:             */
0963:            private static boolean isNodeExpression_3007(Expression element) {
0964:                return true;
0965:            }
0966:
0967:            /**
0968:             * User can change implementation of this method to check some additional 
0969:             * conditions here.
0970:             *
0971:             * @generated
0972:             */
0973:            private static boolean isNodeExpression_3008(Expression element) {
0974:                return true;
0975:            }
0976:
0977:            /**
0978:             * User can change implementation of this method to check some additional 
0979:             * conditions here.
0980:             *
0981:             * @generated
0982:             */
0983:            private static boolean isNodeExpression_3009(Expression element) {
0984:                return true;
0985:            }
0986:
0987:            /**
0988:             * User can change implementation of this method to check some additional 
0989:             * conditions here.
0990:             *
0991:             * @generated
0992:             */
0993:            private static boolean isNodeExpression_3010(Expression element) {
0994:                return true;
0995:            }
0996:
0997:            /**
0998:             * User can change implementation of this method to check some additional 
0999:             * conditions here.
1000:             *
1001:             * @generated
1002:             */
1003:            private static boolean isNodeExpression_3011(Expression element) {
1004:                return true;
1005:            }
1006:
1007:            /**
1008:             * User can change implementation of this method to check some additional 
1009:             * conditions here.
1010:             *
1011:             * @generated
1012:             */
1013:            private static boolean isNodeExpression_3012(Expression element) {
1014:                return true;
1015:            }
1016:
1017:            /**
1018:             * User can change implementation of this method to check some additional 
1019:             * conditions here.
1020:             *
1021:             * @generated
1022:             */
1023:            private static boolean isNodeLoader_3013(Loader element) {
1024:                return true;
1025:            }
1026:
1027:            /**
1028:             * User can change implementation of this method to check some additional 
1029:             * conditions here.
1030:             *
1031:             * @generated
1032:             */
1033:            private static boolean isNodeCondition_3014(Condition element) {
1034:                return true;
1035:            }
1036:
1037:            /**
1038:             * User can change implementation of this method to handle some specific
1039:             * situations not covered by default logic.
1040:             *
1041:             * @generated
1042:             */
1043:            private static int getUnrecognizedSyncActivity_2001ChildNodeID(
1044:                    EObject domainElement, String semanticHint) {
1045:                return -1;
1046:            }
1047:
1048:            /**
1049:             * User can change implementation of this method to handle some specific
1050:             * situations not covered by default logic.
1051:             *
1052:             * @generated
1053:             */
1054:            private static int getUnrecognizedListener_2002ChildNodeID(
1055:                    EObject domainElement, String semanticHint) {
1056:                return -1;
1057:            }
1058:
1059:            /**
1060:             * User can change implementation of this method to handle some specific
1061:             * situations not covered by default logic.
1062:             *
1063:             * @generated
1064:             */
1065:            private static int getUnrecognizedAsyncActivity_2003ChildNodeID(
1066:                    EObject domainElement, String semanticHint) {
1067:                return -1;
1068:            }
1069:
1070:            /**
1071:             * User can change implementation of this method to handle some specific
1072:             * situations not covered by default logic.
1073:             *
1074:             * @generated
1075:             */
1076:            private static int getUnrecognizedEvent_2005ChildNodeID(
1077:                    EObject domainElement, String semanticHint) {
1078:                return -1;
1079:            }
1080:
1081:            /**
1082:             * User can change implementation of this method to handle some specific
1083:             * situations not covered by default logic.
1084:             *
1085:             * @generated
1086:             */
1087:            private static int getUnrecognizedConditionProxy_2006ChildNodeID(
1088:                    EObject domainElement, String semanticHint) {
1089:                return -1;
1090:            }
1091:
1092:            /**
1093:             * User can change implementation of this method to handle some specific
1094:             * situations not covered by default logic.
1095:             *
1096:             * @generated
1097:             */
1098:            private static int getUnrecognizedActor_2007ChildNodeID(
1099:                    EObject domainElement, String semanticHint) {
1100:                return -1;
1101:            }
1102:
1103:            /**
1104:             * User can change implementation of this method to handle some specific
1105:             * situations not covered by default logic.
1106:             *
1107:             * @generated
1108:             */
1109:            private static int getUnrecognizedMessage_2008ChildNodeID(
1110:                    EObject domainElement, String semanticHint) {
1111:                return -1;
1112:            }
1113:
1114:            /**
1115:             * User can change implementation of this method to handle some specific
1116:             * situations not covered by default logic.
1117:             *
1118:             * @generated
1119:             */
1120:            private static int getUnrecognizedExpansion_2009ChildNodeID(
1121:                    EObject domainElement, String semanticHint) {
1122:                return -1;
1123:            }
1124:
1125:            /**
1126:             * User can change implementation of this method to handle some specific
1127:             * situations not covered by default logic.
1128:             *
1129:             * @generated
1130:             */
1131:            private static int getUnrecognizedConclusion_2010ChildNodeID(
1132:                    EObject domainElement, String semanticHint) {
1133:                return -1;
1134:            }
1135:
1136:            /**
1137:             * User can change implementation of this method to handle some specific
1138:             * situations not covered by default logic.
1139:             *
1140:             * @generated
1141:             */
1142:            private static int getUnrecognizedGlobals_2011ChildNodeID(
1143:                    EObject domainElement, String semanticHint) {
1144:                return -1;
1145:            }
1146:
1147:            /**
1148:             * User can change implementation of this method to handle some specific
1149:             * situations not covered by default logic.
1150:             *
1151:             * @generated
1152:             */
1153:            private static int getUnrecognizedExpression_3001ChildNodeID(
1154:                    EObject domainElement, String semanticHint) {
1155:                return -1;
1156:            }
1157:
1158:            /**
1159:             * User can change implementation of this method to handle some specific
1160:             * situations not covered by default logic.
1161:             *
1162:             * @generated
1163:             */
1164:            private static int getUnrecognizedRoot_3002ChildNodeID(
1165:                    EObject domainElement, String semanticHint) {
1166:                return -1;
1167:            }
1168:
1169:            /**
1170:             * User can change implementation of this method to handle some specific
1171:             * situations not covered by default logic.
1172:             *
1173:             * @generated
1174:             */
1175:            private static int getUnrecognizedOrOperator_3003ChildNodeID(
1176:                    EObject domainElement, String semanticHint) {
1177:                return -1;
1178:            }
1179:
1180:            /**
1181:             * User can change implementation of this method to handle some specific
1182:             * situations not covered by default logic.
1183:             *
1184:             * @generated
1185:             */
1186:            private static int getUnrecognizedAndOperator_3004ChildNodeID(
1187:                    EObject domainElement, String semanticHint) {
1188:                return -1;
1189:            }
1190:
1191:            /**
1192:             * User can change implementation of this method to handle some specific
1193:             * situations not covered by default logic.
1194:             *
1195:             * @generated
1196:             */
1197:            private static int getUnrecognizedConditionTerm_3005ChildNodeID(
1198:                    EObject domainElement, String semanticHint) {
1199:                return -1;
1200:            }
1201:
1202:            /**
1203:             * User can change implementation of this method to handle some specific
1204:             * situations not covered by default logic.
1205:             *
1206:             * @generated
1207:             */
1208:            private static int getUnrecognizedExpression_3006ChildNodeID(
1209:                    EObject domainElement, String semanticHint) {
1210:                return -1;
1211:            }
1212:
1213:            /**
1214:             * User can change implementation of this method to handle some specific
1215:             * situations not covered by default logic.
1216:             *
1217:             * @generated
1218:             */
1219:            private static int getUnrecognizedExpression_3007ChildNodeID(
1220:                    EObject domainElement, String semanticHint) {
1221:                return -1;
1222:            }
1223:
1224:            /**
1225:             * User can change implementation of this method to handle some specific
1226:             * situations not covered by default logic.
1227:             *
1228:             * @generated
1229:             */
1230:            private static int getUnrecognizedExpression_3008ChildNodeID(
1231:                    EObject domainElement, String semanticHint) {
1232:                return -1;
1233:            }
1234:
1235:            /**
1236:             * User can change implementation of this method to handle some specific
1237:             * situations not covered by default logic.
1238:             *
1239:             * @generated
1240:             */
1241:            private static int getUnrecognizedExpression_3009ChildNodeID(
1242:                    EObject domainElement, String semanticHint) {
1243:                return -1;
1244:            }
1245:
1246:            /**
1247:             * User can change implementation of this method to handle some specific
1248:             * situations not covered by default logic.
1249:             *
1250:             * @generated
1251:             */
1252:            private static int getUnrecognizedExpression_3010ChildNodeID(
1253:                    EObject domainElement, String semanticHint) {
1254:                return -1;
1255:            }
1256:
1257:            /**
1258:             * User can change implementation of this method to handle some specific
1259:             * situations not covered by default logic.
1260:             *
1261:             * @generated
1262:             */
1263:            private static int getUnrecognizedExpression_3011ChildNodeID(
1264:                    EObject domainElement, String semanticHint) {
1265:                return -1;
1266:            }
1267:
1268:            /**
1269:             * User can change implementation of this method to handle some specific
1270:             * situations not covered by default logic.
1271:             *
1272:             * @generated
1273:             */
1274:            private static int getUnrecognizedExpression_3012ChildNodeID(
1275:                    EObject domainElement, String semanticHint) {
1276:                return -1;
1277:            }
1278:
1279:            /**
1280:             * User can change implementation of this method to handle some specific
1281:             * situations not covered by default logic.
1282:             *
1283:             * @generated
1284:             */
1285:            private static int getUnrecognizedLoader_3013ChildNodeID(
1286:                    EObject domainElement, String semanticHint) {
1287:                return -1;
1288:            }
1289:
1290:            /**
1291:             * User can change implementation of this method to handle some specific
1292:             * situations not covered by default logic.
1293:             *
1294:             * @generated
1295:             */
1296:            private static int getUnrecognizedCondition_3014ChildNodeID(
1297:                    EObject domainElement, String semanticHint) {
1298:                return -1;
1299:            }
1300:
1301:            /**
1302:             * User can change implementation of this method to handle some specific
1303:             * situations not covered by default logic.
1304:             *
1305:             * @generated
1306:             */
1307:            private static int getUnrecognizedSyncActivitySynActivityPreconditionCompartment_7001ChildNodeID(
1308:                    EObject domainElement, String semanticHint) {
1309:                return -1;
1310:            }
1311:
1312:            /**
1313:             * User can change implementation of this method to handle some specific
1314:             * situations not covered by default logic.
1315:             *
1316:             * @generated
1317:             */
1318:            private static int getUnrecognizedSyncActivitySynActivityPostconditionCompartment_7002ChildNodeID(
1319:                    EObject domainElement, String semanticHint) {
1320:                return -1;
1321:            }
1322:
1323:            /**
1324:             * User can change implementation of this method to handle some specific
1325:             * situations not covered by default logic.
1326:             *
1327:             * @generated
1328:             */
1329:            private static int getUnrecognizedExpressionExpressionCompartment_7003ChildNodeID(
1330:                    EObject domainElement, String semanticHint) {
1331:                return -1;
1332:            }
1333:
1334:            /**
1335:             * User can change implementation of this method to handle some specific
1336:             * situations not covered by default logic.
1337:             *
1338:             * @generated
1339:             */
1340:            private static int getUnrecognizedExpressionExpressionCompartment_7004ChildNodeID(
1341:                    EObject domainElement, String semanticHint) {
1342:                return -1;
1343:            }
1344:
1345:            /**
1346:             * User can change implementation of this method to handle some specific
1347:             * situations not covered by default logic.
1348:             *
1349:             * @generated
1350:             */
1351:            private static int getUnrecognizedListenerListenerPreconditionCompartment_7005ChildNodeID(
1352:                    EObject domainElement, String semanticHint) {
1353:                return -1;
1354:            }
1355:
1356:            /**
1357:             * User can change implementation of this method to handle some specific
1358:             * situations not covered by default logic.
1359:             *
1360:             * @generated
1361:             */
1362:            private static int getUnrecognizedExpressionExpressionCompartment_7006ChildNodeID(
1363:                    EObject domainElement, String semanticHint) {
1364:                return -1;
1365:            }
1366:
1367:            /**
1368:             * User can change implementation of this method to handle some specific
1369:             * situations not covered by default logic.
1370:             *
1371:             * @generated
1372:             */
1373:            private static int getUnrecognizedAsyncActivityAsyncActivityPreconditionCompartment_7007ChildNodeID(
1374:                    EObject domainElement, String semanticHint) {
1375:                return -1;
1376:            }
1377:
1378:            /**
1379:             * User can change implementation of this method to handle some specific
1380:             * situations not covered by default logic.
1381:             *
1382:             * @generated
1383:             */
1384:            private static int getUnrecognizedAsyncActivityAsyncActivityPostconditionCompartment_7008ChildNodeID(
1385:                    EObject domainElement, String semanticHint) {
1386:                return -1;
1387:            }
1388:
1389:            /**
1390:             * User can change implementation of this method to handle some specific
1391:             * situations not covered by default logic.
1392:             *
1393:             * @generated
1394:             */
1395:            private static int getUnrecognizedExpressionExpressionCompartment_7009ChildNodeID(
1396:                    EObject domainElement, String semanticHint) {
1397:                return -1;
1398:            }
1399:
1400:            /**
1401:             * User can change implementation of this method to handle some specific
1402:             * situations not covered by default logic.
1403:             *
1404:             * @generated
1405:             */
1406:            private static int getUnrecognizedExpressionExpressionCompartment_7010ChildNodeID(
1407:                    EObject domainElement, String semanticHint) {
1408:                return -1;
1409:            }
1410:
1411:            /**
1412:             * User can change implementation of this method to handle some specific
1413:             * situations not covered by default logic.
1414:             *
1415:             * @generated
1416:             */
1417:            private static int getUnrecognizedEventEventPostconditionCompartment_7013ChildNodeID(
1418:                    EObject domainElement, String semanticHint) {
1419:                return -1;
1420:            }
1421:
1422:            /**
1423:             * User can change implementation of this method to handle some specific
1424:             * situations not covered by default logic.
1425:             *
1426:             * @generated
1427:             */
1428:            private static int getUnrecognizedExpressionExpressionCompartment_7014ChildNodeID(
1429:                    EObject domainElement, String semanticHint) {
1430:                return -1;
1431:            }
1432:
1433:            /**
1434:             * User can change implementation of this method to handle some specific
1435:             * situations not covered by default logic.
1436:             *
1437:             * @generated
1438:             */
1439:            private static int getUnrecognizedExpansionExpansionPostconditionCompartment_7015ChildNodeID(
1440:                    EObject domainElement, String semanticHint) {
1441:                return -1;
1442:            }
1443:
1444:            /**
1445:             * User can change implementation of this method to handle some specific
1446:             * situations not covered by default logic.
1447:             *
1448:             * @generated
1449:             */
1450:            private static int getUnrecognizedExpressionExpressionCompartment_7016ChildNodeID(
1451:                    EObject domainElement, String semanticHint) {
1452:                return -1;
1453:            }
1454:
1455:            /**
1456:             * User can change implementation of this method to handle some specific
1457:             * situations not covered by default logic.
1458:             *
1459:             * @generated
1460:             */
1461:            private static int getUnrecognizedConclusionConclusionPostconditionCompartment_7017ChildNodeID(
1462:                    EObject domainElement, String semanticHint) {
1463:                return -1;
1464:            }
1465:
1466:            /**
1467:             * User can change implementation of this method to handle some specific
1468:             * situations not covered by default logic.
1469:             *
1470:             * @generated
1471:             */
1472:            private static int getUnrecognizedExpressionExpressionCompartment_7018ChildNodeID(
1473:                    EObject domainElement, String semanticHint) {
1474:                return -1;
1475:            }
1476:
1477:            /**
1478:             * User can change implementation of this method to handle some specific
1479:             * situations not covered by default logic.
1480:             *
1481:             * @generated
1482:             */
1483:            private static int getUnrecognizedGlobalsGlobalsLoaderCompartment_7019ChildNodeID(
1484:                    EObject domainElement, String semanticHint) {
1485:                return -1;
1486:            }
1487:
1488:            /**
1489:             * User can change implementation of this method to handle some specific
1490:             * situations not covered by default logic.
1491:             *
1492:             * @generated
1493:             */
1494:            private static int getUnrecognizedGlobalsGlobalsConditionCompartment_7020ChildNodeID(
1495:                    EObject domainElement, String semanticHint) {
1496:                return -1;
1497:            }
1498:
1499:            /**
1500:             * User can change implementation of this method to handle some specific
1501:             * situations not covered by default logic.
1502:             *
1503:             * @generated
1504:             */
1505:            private static int getUnrecognizedProcess_1000ChildNodeID(
1506:                    EObject domainElement, String semanticHint) {
1507:                return -1;
1508:            }
1509:
1510:            /**
1511:             * User can change implementation of this method to handle some specific
1512:             * situations not covered by default logic.
1513:             *
1514:             * @generated
1515:             */
1516:            private static int getUnrecognizedLinkWithClassID(
1517:                    EObject domainElement) {
1518:                return -1;
1519:            }
1520:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.