Source Code Cross Referenced for New_processParserProvider.java in  » Workflow-Engines » osbl-1_0 » newprocess » diagram » providers » 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.providers 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package newprocess.diagram.providers;
002:
003:        import org.eclipse.core.runtime.IAdaptable;
004:        import org.eclipse.gmf.runtime.common.core.service.AbstractProvider;
005:        import org.eclipse.gmf.runtime.common.core.service.IOperation;
006:        import org.eclipse.gmf.runtime.common.ui.services.parser.GetParserOperation;
007:        import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
008:        import org.eclipse.gmf.runtime.common.ui.services.parser.IParserProvider;
009:        import org.eclipse.gmf.runtime.notation.View;
010:        import newprocess.NewprocessPackage;
011:
012:        import newprocess.diagram.edit.parts.ActorNameEditPart;
013:        import newprocess.diagram.edit.parts.AsyncActivityName2EditPart;
014:        import newprocess.diagram.edit.parts.AsyncActivityNameEditPart;
015:        import newprocess.diagram.edit.parts.ConclusionNameEditPart;
016:        import newprocess.diagram.edit.parts.ConditionNameEditPart;
017:        import newprocess.diagram.edit.parts.ConditionProxyProxyNameEditPart;
018:        import newprocess.diagram.edit.parts.EventNameEditPart;
019:        import newprocess.diagram.edit.parts.ExpansionNameEditPart;
020:        import newprocess.diagram.edit.parts.ListenerNameEditPart;
021:        import newprocess.diagram.edit.parts.LoaderNameEditPart;
022:        import newprocess.diagram.edit.parts.MessageNameEditPart;
023:        import newprocess.diagram.edit.parts.SyncActivityNameEditPart;
024:
025:        import newprocess.diagram.part.New_processVisualIDRegistry;
026:
027:        /**
028:         * @generated
029:         */
030:        public class New_processParserProvider extends AbstractProvider
031:                implements  IParserProvider {
032:
033:            /**
034:             * @generated
035:             */
036:            private IParser loaderLoaderName_5010Parser;
037:
038:            /**
039:             * @generated
040:             */
041:            private IParser getLoaderLoaderName_5010Parser() {
042:                if (loaderLoaderName_5010Parser == null) {
043:                    loaderLoaderName_5010Parser = createLoaderLoaderName_5010Parser();
044:                }
045:                return loaderLoaderName_5010Parser;
046:            }
047:
048:            /**
049:             * @generated
050:             */
051:            protected IParser createLoaderLoaderName_5010Parser() {
052:                New_processStructuralFeatureParser parser = new New_processStructuralFeatureParser(
053:                        NewprocessPackage.eINSTANCE.getElement_Name());
054:                return parser;
055:            }
056:
057:            /**
058:             * @generated
059:             */
060:            private IParser conditionConditionName_5011Parser;
061:
062:            /**
063:             * @generated
064:             */
065:            private IParser getConditionConditionName_5011Parser() {
066:                if (conditionConditionName_5011Parser == null) {
067:                    conditionConditionName_5011Parser = createConditionConditionName_5011Parser();
068:                }
069:                return conditionConditionName_5011Parser;
070:            }
071:
072:            /**
073:             * @generated
074:             */
075:            protected IParser createConditionConditionName_5011Parser() {
076:                New_processStructuralFeatureParser parser = new New_processStructuralFeatureParser(
077:                        NewprocessPackage.eINSTANCE.getElement_Name());
078:                return parser;
079:            }
080:
081:            /**
082:             * @generated
083:             */
084:            private IParser syncActivitySyncActivityName_5001Parser;
085:
086:            /**
087:             * @generated
088:             */
089:            private IParser getSyncActivitySyncActivityName_5001Parser() {
090:                if (syncActivitySyncActivityName_5001Parser == null) {
091:                    syncActivitySyncActivityName_5001Parser = createSyncActivitySyncActivityName_5001Parser();
092:                }
093:                return syncActivitySyncActivityName_5001Parser;
094:            }
095:
096:            /**
097:             * @generated
098:             */
099:            protected IParser createSyncActivitySyncActivityName_5001Parser() {
100:                New_processStructuralFeatureParser parser = new New_processStructuralFeatureParser(
101:                        NewprocessPackage.eINSTANCE.getElement_Name());
102:                return parser;
103:            }
104:
105:            /**
106:             * @generated
107:             */
108:            private IParser listenerListenerName_5002Parser;
109:
110:            /**
111:             * @generated
112:             */
113:            private IParser getListenerListenerName_5002Parser() {
114:                if (listenerListenerName_5002Parser == null) {
115:                    listenerListenerName_5002Parser = createListenerListenerName_5002Parser();
116:                }
117:                return listenerListenerName_5002Parser;
118:            }
119:
120:            /**
121:             * @generated
122:             */
123:            protected IParser createListenerListenerName_5002Parser() {
124:                New_processStructuralFeatureParser parser = new New_processStructuralFeatureParser(
125:                        NewprocessPackage.eINSTANCE.getElement_Name());
126:                return parser;
127:            }
128:
129:            /**
130:             * @generated
131:             */
132:            private IParser asyncActivityAsyncActivityName_5003Parser;
133:
134:            /**
135:             * @generated
136:             */
137:            private IParser getAsyncActivityAsyncActivityName_5003Parser() {
138:                if (asyncActivityAsyncActivityName_5003Parser == null) {
139:                    asyncActivityAsyncActivityName_5003Parser = createAsyncActivityAsyncActivityName_5003Parser();
140:                }
141:                return asyncActivityAsyncActivityName_5003Parser;
142:            }
143:
144:            /**
145:             * @generated
146:             */
147:            protected IParser createAsyncActivityAsyncActivityName_5003Parser() {
148:                New_processStructuralFeatureParser parser = new New_processStructuralFeatureParser(
149:                        NewprocessPackage.eINSTANCE.getElement_Name());
150:                return parser;
151:            }
152:
153:            /**
154:             * @generated
155:             */
156:            private IParser eventEventName_5005Parser;
157:
158:            /**
159:             * @generated
160:             */
161:            private IParser getEventEventName_5005Parser() {
162:                if (eventEventName_5005Parser == null) {
163:                    eventEventName_5005Parser = createEventEventName_5005Parser();
164:                }
165:                return eventEventName_5005Parser;
166:            }
167:
168:            /**
169:             * @generated
170:             */
171:            protected IParser createEventEventName_5005Parser() {
172:                New_processStructuralFeatureParser parser = new New_processStructuralFeatureParser(
173:                        NewprocessPackage.eINSTANCE.getElement_Name());
174:                return parser;
175:            }
176:
177:            /**
178:             * @generated
179:             */
180:            private IParser conditionProxyConditionProxyProxyName_5012Parser;
181:
182:            /**
183:             * @generated
184:             */
185:            private IParser getConditionProxyConditionProxyProxyName_5012Parser() {
186:                if (conditionProxyConditionProxyProxyName_5012Parser == null) {
187:                    conditionProxyConditionProxyProxyName_5012Parser = createConditionProxyConditionProxyProxyName_5012Parser();
188:                }
189:                return conditionProxyConditionProxyProxyName_5012Parser;
190:            }
191:
192:            /**
193:             * @generated
194:             */
195:            protected IParser createConditionProxyConditionProxyProxyName_5012Parser() {
196:                New_processStructuralFeatureParser parser = new New_processStructuralFeatureParser(
197:                        NewprocessPackage.eINSTANCE
198:                                .getConditionProxy_ProxyName());
199:                return parser;
200:            }
201:
202:            /**
203:             * @generated
204:             */
205:            private IParser actorActorName_5006Parser;
206:
207:            /**
208:             * @generated
209:             */
210:            private IParser getActorActorName_5006Parser() {
211:                if (actorActorName_5006Parser == null) {
212:                    actorActorName_5006Parser = createActorActorName_5006Parser();
213:                }
214:                return actorActorName_5006Parser;
215:            }
216:
217:            /**
218:             * @generated
219:             */
220:            protected IParser createActorActorName_5006Parser() {
221:                New_processStructuralFeatureParser parser = new New_processStructuralFeatureParser(
222:                        NewprocessPackage.eINSTANCE.getElement_Name());
223:                return parser;
224:            }
225:
226:            /**
227:             * @generated
228:             */
229:            private IParser messageMessageName_5007Parser;
230:
231:            /**
232:             * @generated
233:             */
234:            private IParser getMessageMessageName_5007Parser() {
235:                if (messageMessageName_5007Parser == null) {
236:                    messageMessageName_5007Parser = createMessageMessageName_5007Parser();
237:                }
238:                return messageMessageName_5007Parser;
239:            }
240:
241:            /**
242:             * @generated
243:             */
244:            protected IParser createMessageMessageName_5007Parser() {
245:                New_processStructuralFeatureParser parser = new New_processStructuralFeatureParser(
246:                        NewprocessPackage.eINSTANCE.getElement_Name());
247:                return parser;
248:            }
249:
250:            /**
251:             * @generated
252:             */
253:            private IParser expansionExpansionName_5008Parser;
254:
255:            /**
256:             * @generated
257:             */
258:            private IParser getExpansionExpansionName_5008Parser() {
259:                if (expansionExpansionName_5008Parser == null) {
260:                    expansionExpansionName_5008Parser = createExpansionExpansionName_5008Parser();
261:                }
262:                return expansionExpansionName_5008Parser;
263:            }
264:
265:            /**
266:             * @generated
267:             */
268:            protected IParser createExpansionExpansionName_5008Parser() {
269:                New_processStructuralFeatureParser parser = new New_processStructuralFeatureParser(
270:                        NewprocessPackage.eINSTANCE.getElement_Name());
271:                return parser;
272:            }
273:
274:            /**
275:             * @generated
276:             */
277:            private IParser conclusionConclusionName_5009Parser;
278:
279:            /**
280:             * @generated
281:             */
282:            private IParser getConclusionConclusionName_5009Parser() {
283:                if (conclusionConclusionName_5009Parser == null) {
284:                    conclusionConclusionName_5009Parser = createConclusionConclusionName_5009Parser();
285:                }
286:                return conclusionConclusionName_5009Parser;
287:            }
288:
289:            /**
290:             * @generated
291:             */
292:            protected IParser createConclusionConclusionName_5009Parser() {
293:                New_processStructuralFeatureParser parser = new New_processStructuralFeatureParser(
294:                        NewprocessPackage.eINSTANCE.getElement_Name());
295:                return parser;
296:            }
297:
298:            /**
299:             * @generated
300:             */
301:            protected IParser getParser(int visualID) {
302:                switch (visualID) {
303:                case LoaderNameEditPart.VISUAL_ID:
304:                    return getLoaderLoaderName_5010Parser();
305:                case ConditionNameEditPart.VISUAL_ID:
306:                    return getConditionConditionName_5011Parser();
307:                case SyncActivityNameEditPart.VISUAL_ID:
308:                    return getSyncActivitySyncActivityName_5001Parser();
309:                case ListenerNameEditPart.VISUAL_ID:
310:                    return getListenerListenerName_5002Parser();
311:                case AsyncActivityNameEditPart.VISUAL_ID:
312:                    return getAsyncActivityAsyncActivityName_5003Parser();
313:                case EventNameEditPart.VISUAL_ID:
314:                    return getEventEventName_5005Parser();
315:                case ConditionProxyProxyNameEditPart.VISUAL_ID:
316:                    return getConditionProxyConditionProxyProxyName_5012Parser();
317:                case ActorNameEditPart.VISUAL_ID:
318:                    return getActorActorName_5006Parser();
319:                case MessageNameEditPart.VISUAL_ID:
320:                    return getMessageMessageName_5007Parser();
321:                case ExpansionNameEditPart.VISUAL_ID:
322:                    return getExpansionExpansionName_5008Parser();
323:                case ConclusionNameEditPart.VISUAL_ID:
324:                    return getConclusionConclusionName_5009Parser();
325:                }
326:                return null;
327:            }
328:
329:            /**
330:             * @generated
331:             */
332:            public IParser getParser(IAdaptable hint) {
333:                String vid = (String) hint.getAdapter(String.class);
334:                if (vid != null) {
335:                    return getParser(New_processVisualIDRegistry
336:                            .getVisualID(vid));
337:                }
338:                View view = (View) hint.getAdapter(View.class);
339:                if (view != null) {
340:                    return getParser(New_processVisualIDRegistry
341:                            .getVisualID(view));
342:                }
343:                return null;
344:            }
345:
346:            /**
347:             * @generated
348:             */
349:            public boolean provides(IOperation operation) {
350:                if (operation instanceof  GetParserOperation) {
351:                    IAdaptable hint = ((GetParserOperation) operation)
352:                            .getHint();
353:                    if (New_processElementTypes.getElement(hint) == null) {
354:                        return false;
355:                    }
356:                    return getParser(hint) != null;
357:                }
358:                return false;
359:            }
360:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.