Source Code Cross Referenced for ComponentFlowEditorEditPartFactory.java in  » ESB » cbesb-1.2 » com » bostechcorp » cbesb » ui » componentflow » componentFlowEditor » diagram » edit » parts » 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 » ESB » cbesb 1.2 » com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.diagram.edit.parts 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * ChainBuilder ESB
003:         *          Visual Enterprise Integration
004:         * 
005:         * Copyright (C) 2006 Bostech Corporation
006:         * 
007:         * This program is free software; you can redistribute it and/or modify it 
008:         * under the terms of the GNU General Public License as published by the 
009:         * Free Software Foundation; either version 2 of the License, or (at your option) 
010:         * any later version.
011:         *
012:         * This program is distributed in the hope that it will be useful, 
013:         * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
014:         * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
015:         * for more details.
016:         * 
017:         * You should have received a copy of the GNU General Public License along with 
018:         * this program; if not, write to the Free Software Foundation, Inc., 
019:         * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
020:         *
021:         *
022:         * $Id$
023:         */
024:        package com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.diagram.edit.parts;
025:
026:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.BaseElement;
027:        import com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.diagram.part.ComponentFlowEditorVisualIDRegistry;
028:
029:        import org.eclipse.gef.EditPart;
030:        import org.eclipse.gef.EditPartFactory;
031:
032:        import org.eclipse.gmf.runtime.notation.Diagram;
033:        import org.eclipse.gmf.runtime.notation.View;
034:
035:        /**
036:         * @generated
037:         */
038:        public class ComponentFlowEditorEditPartFactory implements 
039:                EditPartFactory {
040:
041:            /**
042:             * @generated
043:             */
044:            public static final String EXTERNAL_NODE_LABELS_LAYER = "External Node Labels";
045:
046:            /**
047:             * @generated
048:             */
049:            public EditPart createEditPart(EditPart context, Object model) {
050:                if (model instanceof  View) {
051:                    View view = (View) model;
052:                    if (!ComponentFlowEditorDocumentEditPart.MODEL_ID
053:                            .equals(ComponentFlowEditorVisualIDRegistry
054:                                    .getModelID(view))) {
055:                        return null;
056:                    }
057:
058:                    int viewVisualID = ComponentFlowEditorVisualIDRegistry
059:                            .getVisualID(view);
060:                    switch (viewVisualID) {
061:                    case TransformerEditPart.VISUAL_ID:
062:                        return new TransformerEditPart(view);
063:                    case TransformerNameEditPart.VISUAL_ID:
064:                        return new TransformerNameEditPart(view);
065:                    case ParserEditPart.VISUAL_ID:
066:                        return new ParserEditPart(view);
067:                    case ParserNameEditPart.VISUAL_ID:
068:                        return new ParserNameEditPart(view);
069:                    case HTTPEditPart.VISUAL_ID:
070:                        return new HTTPEditPart(view);
071:                    case HTTPNameEditPart.VISUAL_ID:
072:                        return new HTTPNameEditPart(view);
073:                    case XSLTEditPart.VISUAL_ID:
074:                        return new XSLTEditPart(view);
075:                    case XSLTNameEditPart.VISUAL_ID:
076:                        return new XSLTNameEditPart(view);
077:                    case FTPEditPart.VISUAL_ID:
078:                        return new FTPEditPart(view);
079:                    case FTPNameEditPart.VISUAL_ID:
080:                        return new FTPNameEditPart(view);
081:                    case JMSEditPart.VISUAL_ID:
082:                        return new JMSEditPart(view);
083:                    case JMSNameEditPart.VISUAL_ID:
084:                        return new JMSNameEditPart(view);
085:                    case ExternalSystemEditPart.VISUAL_ID:
086:                        return new ExternalSystemEditPart(view);
087:                    case ExternalSystemNameEditPart.VISUAL_ID:
088:                        return new ExternalSystemNameEditPart(view);
089:                    case FileEditPart.VISUAL_ID:
090:                        return new FileEditPart(view);
091:                    case FileNameEditPart.VISUAL_ID:
092:                        return new FileNameEditPart(view);
093:                    case SequencerEditPart.VISUAL_ID:
094:                        return new SequencerEditPart(view);
095:                    case SequencerNameEditPart.VISUAL_ID:
096:                        return new SequencerNameEditPart(view);
097:                    case CBREditPart.VISUAL_ID:
098:                        return new CBREditPart(view);
099:                    case CBRNameEditPart.VISUAL_ID:
100:                        return new CBRNameEditPart(view);
101:                    case JDBCEditPart.VISUAL_ID:
102:                        return new JDBCEditPart(view);
103:                    case JDBCNameEditPart.VISUAL_ID:
104:                        return new JDBCNameEditPart(view);
105:                    case ScriptEditPart.VISUAL_ID:
106:                        return new ScriptEditPart(view);
107:                    case ScriptNameEditPart.VISUAL_ID:
108:                        return new ScriptNameEditPart(view);
109:                    case CommentEditPart.VISUAL_ID:
110:                        return new CommentEditPart(view);
111:                    case CommentDescriptionEditPart.VISUAL_ID:
112:                        return new CommentDescriptionEditPart(view);
113:                    case TCPIPEditPart.VISUAL_ID:
114:                        return new TCPIPEditPart(view);
115:                    case TCPIPNameEditPart.VISUAL_ID:
116:                        return new TCPIPNameEditPart(view);
117:                    case CustomEditPart.VISUAL_ID:
118:                        return new CustomEditPart(view);
119:                    case CustomNameEditPart.VISUAL_ID:
120:                        return new CustomNameEditPart(view);
121:                    case EmailEditPart.VISUAL_ID:
122:                        return new EmailEditPart(view);
123:                    case EmailNameEditPart.VISUAL_ID:
124:                        return new EmailNameEditPart(view);
125:                    case ComponentFlowEditorDocumentEditPart.VISUAL_ID:
126:                        return new ComponentFlowEditorDocumentEditPart(
127:                                (Diagram) view);
128:                    case MessageExchangeEditPart.VISUAL_ID:
129:                        return new MessageExchangeEditPart(view);
130:                    case MessageExchangeLabelEditPart.VISUAL_ID:
131:                        return new MessageExchangeLabelEditPart(view);
132:                    }
133:                }
134:                return createUnrecognizedEditPart(context, model);
135:            }
136:
137:            /**
138:             * @generated
139:             */
140:            private EditPart createUnrecognizedEditPart(EditPart context,
141:                    Object model) {
142:                // Handle creation of unrecognized child node EditParts here
143:                return null;
144:            }
145:
146:            /**
147:             * @generated NOT
148:             */
149:            public static void setModelName(EditPart editor, String name) {
150:                View view = (View) editor.getModel();
151:                BaseElement elment = (BaseElement) (view.getElement());
152:                if (elment.getName().equals("") || elment.getName() == null) {
153:                    elment.setName(name);
154:                }
155:            }
156:
157:        }
ww__w___.__j_a_v__a2s_.___c__o_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.