001: package net.refractions.udig.project.internal.util;
002:
003: import net.refractions.udig.catalog.IResolveChangeListener;
004: import net.refractions.udig.core.IBlockingAdaptable;
005: import net.refractions.udig.project.IAbstractContext;
006: import net.refractions.udig.project.IBlackboard;
007: import net.refractions.udig.project.IEditManager;
008: import net.refractions.udig.project.ILayer;
009: import net.refractions.udig.project.IMap;
010: import net.refractions.udig.project.IProject;
011: import net.refractions.udig.project.IProjectElement;
012: import net.refractions.udig.project.internal.AbstractContext;
013: import net.refractions.udig.project.internal.Blackboard;
014: import net.refractions.udig.project.internal.BlackboardEntry;
015: import net.refractions.udig.project.internal.ContextModel;
016: import net.refractions.udig.project.internal.EditManager;
017: import net.refractions.udig.project.internal.Layer;
018: import net.refractions.udig.project.internal.LayerFactory;
019: import net.refractions.udig.project.internal.Map;
020: import net.refractions.udig.project.internal.PicoBlackboard;
021: import net.refractions.udig.project.internal.Project;
022: import net.refractions.udig.project.internal.ProjectElement;
023: import net.refractions.udig.project.internal.ProjectPackage;
024: import net.refractions.udig.project.internal.ProjectRegistry;
025: import net.refractions.udig.project.internal.StyleBlackboard;
026: import net.refractions.udig.project.internal.StyleEntry;
027: import net.refractions.udig.project.render.IRenderManager;
028: import net.refractions.udig.project.render.IViewportModel;
029:
030: import org.eclipse.core.runtime.IAdaptable;
031: import org.eclipse.emf.common.notify.Adapter;
032: import org.eclipse.emf.common.notify.Notifier;
033: import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
034: import org.eclipse.emf.ecore.EObject;
035:
036: /**
037: * TODO Purpose of net.refractions.udig.project.internal.util
038: * <p>
039: * </p>
040: *
041: * @author Jesse
042: * @since 1.0.0
043: * @generated
044: */
045: public class ProjectAdapterFactory extends AdapterFactoryImpl {
046: /**
047: * <!-- begin-user-doc --> <!-- end-user-doc -->
048: * @generated
049: */
050: public static final String copyright = "uDig - User Friendly Desktop Internet GIS client http://udig.refractions.net (C) 2004, Refractions Research Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details."; //$NON-NLS-1$
051:
052: /**
053: * The cached model package.
054: * <!-- begin-user-doc --> <!-- end-user-doc -->
055: * @generated NOT
056: */
057: static ProjectPackage modelPackage;
058:
059: /**
060: * Creates an instance of the adapter factory.
061: * <!-- begin-user-doc --> <!-- end-user-doc -->
062: * @generated
063: */
064: public ProjectAdapterFactory() {
065: if (modelPackage == null) {
066: modelPackage = ProjectPackage.eINSTANCE;
067: }
068: }
069:
070: /**
071: * Returns whether this factory is applicable for the type of the object.
072: * <!-- begin-user-doc
073: * --> This implementation returns <code>true</code> if the object is either the model's
074: * package or is an instance object of the model. <!-- end-user-doc -->
075: * @return whether this factory is applicable for the type of the object.
076: * @generated
077: */
078: public boolean isFactoryForType(Object object) {
079: if (object == modelPackage) {
080: return true;
081: }
082: if (object instanceof EObject) {
083: return ((EObject) object).eClass().getEPackage() == modelPackage;
084: }
085: return false;
086: }
087:
088: /**
089: * The switch the delegates to the <code>createXXX</code> methods.
090: * <!-- begin-user-doc -->
091: * <!-- end-user-doc -->
092: * @generated
093: */
094: protected ProjectSwitch modelSwitch = new ProjectSwitch() {
095: public Object caseComparable(Comparable object) {
096: return createComparableAdapter();
097: }
098:
099: public Object caseIMap(IMap object) {
100: return createIMapAdapter();
101: }
102:
103: public Object caseILayer(ILayer object) {
104: return createILayerAdapter();
105: }
106:
107: public Object caseIEditManager(IEditManager object) {
108: return createIEditManagerAdapter();
109: }
110:
111: public Object caseIProject(IProject object) {
112: return createIProjectAdapter();
113: }
114:
115: public Object caseIAbstractContext(IAbstractContext object) {
116: return createIAbstractContextAdapter();
117: }
118:
119: public Object caseIBlackboard(IBlackboard object) {
120: return createIBlackboardAdapter();
121: }
122:
123: public Object caseIProjectElement(IProjectElement object) {
124: return createIProjectElementAdapter();
125: }
126:
127: public Object caseIRenderManager(IRenderManager object) {
128: return createIRenderManagerAdapter();
129: }
130:
131: public Object caseIViewportModel(IViewportModel object) {
132: return createIViewportModelAdapter();
133: }
134:
135: public Object caseAbstractContext(AbstractContext object) {
136: return createAbstractContextAdapter();
137: }
138:
139: public Object caseContextModel(ContextModel object) {
140: return createContextModelAdapter();
141: }
142:
143: public Object caseEditManager(EditManager object) {
144: return createEditManagerAdapter();
145: }
146:
147: public Object caseLayer(Layer object) {
148: return createLayerAdapter();
149: }
150:
151: public Object caseMap(Map object) {
152: return createMapAdapter();
153: }
154:
155: public Object caseProject(Project object) {
156: return createProjectAdapter();
157: }
158:
159: public Object caseProjectElement(ProjectElement object) {
160: return createProjectElementAdapter();
161: }
162:
163: public Object caseProjectRegistry(ProjectRegistry object) {
164: return createProjectRegistryAdapter();
165: }
166:
167: public Object caseStyleBlackboard(StyleBlackboard object) {
168: return createStyleBlackboardAdapter();
169: }
170:
171: public Object caseStyleEntry(StyleEntry object) {
172: return createStyleEntryAdapter();
173: }
174:
175: public Object caseCloneable(Cloneable object) {
176: return createCloneableAdapter();
177: }
178:
179: public Object caseLayerFactory(LayerFactory object) {
180: return createLayerFactoryAdapter();
181: }
182:
183: public Object caseIAdaptable(IAdaptable object) {
184: return createIAdaptableAdapter();
185: }
186:
187: public Object caseIBlockingAdaptable(IBlockingAdaptable object) {
188: return createIBlockingAdaptableAdapter();
189: }
190:
191: public Object casePicoBlackboard(PicoBlackboard object) {
192: return createPicoBlackboardAdapter();
193: }
194:
195: public Object caseBlackboard(Blackboard object) {
196: return createBlackboardAdapter();
197: }
198:
199: public Object caseBlackboardEntry(BlackboardEntry object) {
200: return createBlackboardEntryAdapter();
201: }
202:
203: public Object caseIResolveChangeListener(
204: IResolveChangeListener object) {
205: return createIResolveChangeListenerAdapter();
206: }
207:
208: public Object defaultCase(EObject object) {
209: return createEObjectAdapter();
210: }
211: };
212:
213: /**
214: * Creates an adapter for the <code>target</code>. <!-- begin-user-doc --> <!-- end-user-doc
215: * -->
216: *
217: * @param target the object to adapt.
218: * @return the adapter for the <code>target</code>.
219: * @generated
220: */
221: public Adapter createAdapter(Notifier target) {
222: return (Adapter) modelSwitch.doSwitch((EObject) target);
223: }
224:
225: /**
226: * Creates a new adapter for an object of class '
227: * {@link net.refractions.udig.project.ContextModel <em>Context Model</em>}'. <!--
228: * begin-user-doc --> This default implementation returns null so that we can easily ignore
229: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
230: * end-user-doc -->
231: *
232: * @return the new adapter.
233: * @see net.refractions.udig.project.internal.ContextModel
234: * @generated
235: */
236: public Adapter createContextModelAdapter() {
237: return null;
238: }
239:
240: /**
241: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.internal.Layer <em>Layer</em>}'.
242: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
243: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
244: * end-user-doc -->
245: * @return the new adapter.
246: * @see net.refractions.udig.project.internal.Layer
247: * @generated
248: */
249: public Adapter createLayerAdapter() {
250: return null;
251: }
252:
253: /**
254: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.internal.Map <em>Map</em>}'.
255: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
256: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
257: * end-user-doc -->
258: * @return the new adapter.
259: * @see net.refractions.udig.project.internal.Map
260: * @generated
261: */
262: public Adapter createMapAdapter() {
263: return null;
264: }
265:
266: /**
267: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.internal.Project <em>Project</em>}'.
268: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
269: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
270: * end-user-doc -->
271: * @return the new adapter.
272: * @see net.refractions.udig.project.internal.Project
273: * @generated
274: */
275: public Adapter createProjectAdapter() {
276: return null;
277: }
278:
279: /**
280: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.internal.ProjectElement <em>Element</em>}'.
281: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
282: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
283: * end-user-doc -->
284: * @return the new adapter.
285: * @see net.refractions.udig.project.internal.ProjectElement
286: * @generated
287: */
288: public Adapter createProjectElementAdapter() {
289: return null;
290: }
291:
292: /**
293: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.internal.ProjectRegistry <em>Registry</em>}'.
294: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
295: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
296: * end-user-doc -->
297: * @return the new adapter.
298: * @see net.refractions.udig.project.internal.ProjectRegistry
299: * @generated
300: */
301: public Adapter createProjectRegistryAdapter() {
302: return null;
303: }
304:
305: /**
306: * Creates a new adapter for an object of class '{@link Cloneable <em>Cloneable</em>}'. <!--
307: * begin-user-doc --> This default implementation returns null so that we can easily ignore
308: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
309: * end-user-doc -->
310: *
311: * @return the new adapter.
312: * @see Cloneable
313: * @generated
314: */
315: public Adapter createCloneableAdapter() {
316: return null;
317: }
318:
319: /**
320: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.internal.LayerFactory <em>Layer Factory</em>}'.
321: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
322: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
323: * end-user-doc -->
324: * @return the new adapter.
325: * @see net.refractions.udig.project.internal.LayerFactory
326: * @generated
327: */
328: public Adapter createLayerFactoryAdapter() {
329: return null;
330: }
331:
332: /**
333: * Creates a new adapter for an object of class '{@link org.eclipse.core.runtime.IAdaptable <em>IAdaptable</em>}'.
334: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
335: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
336: * end-user-doc -->
337: * @return the new adapter.
338: * @see org.eclipse.core.runtime.IAdaptable
339: * @generated
340: */
341: public Adapter createIAdaptableAdapter() {
342: return null;
343: }
344:
345: /**
346: * Creates a new adapter for an object of class '{@link net.refractions.udig.core.IBlockingAdaptable <em>IBlocking Adaptable</em>}'.
347: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
348: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
349: * end-user-doc -->
350: * @return the new adapter.
351: * @see net.refractions.udig.core.IBlockingAdaptable
352: * @generated
353: */
354: public Adapter createIBlockingAdaptableAdapter() {
355: return null;
356: }
357:
358: /**
359: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.internal.PicoBlackboard <em>Pico Blackboard</em>}'.
360: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
361: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
362: * end-user-doc -->
363: * @return the new adapter.
364: * @see net.refractions.udig.project.internal.PicoBlackboard
365: * @generated
366: */
367: public Adapter createPicoBlackboardAdapter() {
368: return null;
369: }
370:
371: /**
372: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.internal.Blackboard <em>Blackboard</em>}'.
373: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
374: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
375: * end-user-doc -->
376: * @return the new adapter.
377: * @see net.refractions.udig.project.internal.Blackboard
378: * @generated
379: */
380: public Adapter createBlackboardAdapter() {
381: return null;
382: }
383:
384: /**
385: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.internal.BlackboardEntry <em>Blackboard Entry</em>}'.
386: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
387: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
388: * end-user-doc -->
389: * @return the new adapter.
390: * @see net.refractions.udig.project.internal.BlackboardEntry
391: * @generated
392: */
393: public Adapter createBlackboardEntryAdapter() {
394: return null;
395: }
396:
397: /**
398: * Creates a new adapter for an object of class '{@link net.refractions.udig.catalog.IResolveChangeListener <em>IResolve Change Listener</em>}'.
399: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
400: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
401: * end-user-doc -->
402: * @return the new adapter.
403: * @see net.refractions.udig.catalog.IResolveChangeListener
404: * @generated
405: */
406: public Adapter createIResolveChangeListenerAdapter() {
407: return null;
408: }
409:
410: /**
411: * Creates a new adapter for an object of class '
412: * {@link net.refractions.udig.project.AbstractContext <em>Abstract Context</em>}'. <!--
413: * begin-user-doc --> This default implementation returns null so that we can easily ignore
414: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
415: * end-user-doc -->
416: *
417: * @return the new adapter.
418: * @see net.refractions.udig.project.internal.AbstractContext
419: * @generated
420: */
421: public Adapter createAbstractContextAdapter() {
422: return null;
423: }
424:
425: /**
426: * Creates a new adapter for an object of class '
427: * {@link net.refractions.udig.project.IProjectElement <em>IProject Element</em>}'. <!--
428: * begin-user-doc --> This default implementation returns null so that we can easily ignore
429: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
430: * end-user-doc -->
431: *
432: * @return the new adapter.
433: * @see net.refractions.udig.project.internal.ProjectElement
434: * @generated
435: */
436: public Adapter createIProjectElementAdapter() {
437: return null;
438: }
439:
440: /**
441: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.render.IRenderManager <em>IRender Manager</em>}'.
442: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
443: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
444: * end-user-doc -->
445: * @return the new adapter.
446: * @see net.refractions.udig.project.render.IRenderManager
447: * @generated
448: */
449: public Adapter createIRenderManagerAdapter() {
450: return null;
451: }
452:
453: /**
454: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.render.IViewportModel <em>IViewport Model</em>}'.
455: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
456: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
457: * end-user-doc -->
458: * @return the new adapter.
459: * @see net.refractions.udig.project.render.IViewportModel
460: * @generated
461: */
462: public Adapter createIViewportModelAdapter() {
463: return null;
464: }
465:
466: /**
467: * Creates a new adapter for an object of class '
468: * {@link net.refractions.udig.project.StyleBlackboard <em>Style Blackboard</em>}'. <!--
469: * begin-user-doc --> This default implementation returns null so that we can easily ignore
470: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
471: * end-user-doc -->
472: *
473: * @return the new adapter.
474: * @see net.refractions.udig.project.internal.StyleBlackboard
475: * @generated
476: */
477: public Adapter createStyleBlackboardAdapter() {
478: return null;
479: }
480:
481: /**
482: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.internal.StyleEntry <em>Style Entry</em>}'.
483: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
484: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
485: * end-user-doc -->
486: * @return the new adapter.
487: * @see net.refractions.udig.project.internal.StyleEntry
488: * @generated
489: */
490: public Adapter createStyleEntryAdapter() {
491: return null;
492: }
493:
494: /**
495: * Creates a new adapter for an object of class '{@link Comparable <em>Comparable</em>}'. <!--
496: * begin-user-doc --> This default implementation returns null so that we can easily ignore
497: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
498: * end-user-doc -->
499: *
500: * @return the new adapter.
501: * @see Comparable
502: * @generated
503: */
504: public Adapter createComparableAdapter() {
505: return null;
506: }
507:
508: /**
509: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.IMap <em>IMap</em>}'.
510: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
511: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
512: * end-user-doc -->
513: * @return the new adapter.
514: * @see net.refractions.udig.project.IMap
515: * @generated
516: */
517: public Adapter createIMapAdapter() {
518: return null;
519: }
520:
521: /**
522: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.internal.EditManager <em>Edit Manager</em>}'.
523: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
524: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
525: * end-user-doc -->
526: * @return the new adapter.
527: * @see net.refractions.udig.project.internal.EditManager
528: * @generated
529: */
530: public Adapter createEditManagerAdapter() {
531: return null;
532: }
533:
534: /**
535: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.ILayer <em>ILayer</em>}'.
536: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
537: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
538: * end-user-doc -->
539: * @return the new adapter.
540: * @see net.refractions.udig.project.ILayer
541: * @generated
542: */
543: public Adapter createILayerAdapter() {
544: return null;
545: }
546:
547: /**
548: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.IEditManager <em>IEdit Manager</em>}'.
549: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
550: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
551: * end-user-doc -->
552: * @return the new adapter.
553: * @see net.refractions.udig.project.IEditManager
554: * @generated
555: */
556: public Adapter createIEditManagerAdapter() {
557: return null;
558: }
559:
560: /**
561: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.IProject <em>IProject</em>}'.
562: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
563: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
564: * end-user-doc -->
565: * @return the new adapter.
566: * @see net.refractions.udig.project.IProject
567: * @generated
568: */
569: public Adapter createIProjectAdapter() {
570: return null;
571: }
572:
573: /**
574: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.IAbstractContext <em>IAbstract Context</em>}'.
575: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
576: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
577: * end-user-doc -->
578: * @return the new adapter.
579: * @see net.refractions.udig.project.IAbstractContext
580: * @generated
581: */
582: public Adapter createIAbstractContextAdapter() {
583: return null;
584: }
585:
586: /**
587: * Creates a new adapter for an object of class '{@link net.refractions.udig.project.IBlackboard <em>IBlackboard</em>}'.
588: * <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore
589: * cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
590: * end-user-doc -->
591: * @return the new adapter.
592: * @see net.refractions.udig.project.IBlackboard
593: * @generated
594: */
595: public Adapter createIBlackboardAdapter() {
596: return null;
597: }
598:
599: /**
600: * Creates a new adapter for the default case.
601: * <!-- begin-user-doc --> This default
602: * implementation returns null. <!-- end-user-doc -->
603: * @return the new adapter.
604: * @generated
605: */
606: public Adapter createEObjectAdapter() {
607: return null;
608: }
609:
610: } // ProjectAdapterFactory
|