KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Olj > provider > LoaderJobTypeItemProvider


1 /**
2  * <copyright>
3  * </copyright>
4  *
5  * $Id$
6  */

7 package Olj.provider;
8
9
10 import Olj.LoaderJobType;
11 import Olj.OljFactory;
12 import Olj.OljPackage;
13
14 import java.util.Collection JavaDoc;
15 import java.util.List JavaDoc;
16
17 import org.eclipse.emf.common.notify.AdapterFactory;
18 import org.eclipse.emf.common.notify.Notification;
19
20 import org.eclipse.emf.common.util.ResourceLocator;
21
22 import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
23 import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
24 import org.eclipse.emf.edit.provider.IItemLabelProvider;
25 import org.eclipse.emf.edit.provider.IItemPropertySource;
26 import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
27 import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
28 import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
29 import org.eclipse.emf.edit.provider.ItemProviderAdapter;
30 import org.eclipse.emf.edit.provider.ViewerNotification;
31
32 /**
33  * This is the item provider adpater for a {@link Olj.LoaderJobType} object.
34  * <!-- begin-user-doc -->
35  * <!-- end-user-doc -->
36  * @generated
37  */

38 public class LoaderJobTypeItemProvider
39     extends ItemProviderAdapter
40     implements
41         IEditingDomainItemProvider,
42         IStructuredItemContentProvider,
43         ITreeItemContentProvider,
44         IItemLabelProvider,
45         IItemPropertySource {
46     /**
47      * This constructs an instance from a factory and a notifier.
48      * <!-- begin-user-doc -->
49      * <!-- end-user-doc -->
50      * @generated
51      */

52     public LoaderJobTypeItemProvider(AdapterFactory adapterFactory) {
53         super(adapterFactory);
54     }
55
56     /**
57      * This returns the property descriptors for the adapted class.
58      * <!-- begin-user-doc -->
59      * <!-- end-user-doc -->
60      * @generated
61      */

62     public List JavaDoc getPropertyDescriptors(Object JavaDoc object) {
63         if (itemPropertyDescriptors == null) {
64             super.getPropertyDescriptors(object);
65
66             addCommitPropertyDescriptor(object);
67             addCommitCountPropertyDescriptor(object);
68             addDataCutOffPropertyDescriptor(object);
69             addLogClassNamePropertyDescriptor(object);
70             addLogColumnNamePropertyDescriptor(object);
71             addLogDirPropertyDescriptor(object);
72             addLogFilePropertyDescriptor(object);
73             addLogImportDefinitionNamePropertyDescriptor(object);
74             addLogModePropertyDescriptor(object);
75             addLogNewValuePropertyDescriptor(object);
76             addLogOperationNamePropertyDescriptor(object);
77             addLogOriginalValuePropertyDescriptor(object);
78             addLogRowNumberPropertyDescriptor(object);
79             addLogTablePropertyDescriptor(object);
80             addLogTableNamePropertyDescriptor(object);
81             addLogTypeNamePropertyDescriptor(object);
82             addObjectIDAutoCreatePropertyDescriptor(object);
83             addObjectIDColumnNamePropertyDescriptor(object);
84             addObjectIDIncrementPropertyDescriptor(object);
85             addObjectIDNameColumnNamePropertyDescriptor(object);
86             addObjectIDNameColumnValuePropertyDescriptor(object);
87             addObjectIDStartValuePropertyDescriptor(object);
88             addObjectIDTableNamePropertyDescriptor(object);
89             addOidLogicPropertyDescriptor(object);
90             addOnErrorContinuePropertyDescriptor(object);
91             addPathToLoggerConfPropertyDescriptor(object);
92             addReturnCodePropertyDescriptor(object);
93             addSetCursorNamePropertyDescriptor(object);
94             addSetFetchSizePropertyDescriptor(object);
95             addTableModePropertyDescriptor(object);
96             addUserIDPropertyDescriptor(object);
97             addVendorConfigPropertyDescriptor(object);
98         }
99         return itemPropertyDescriptors;
100     }
101
102     /**
103      * This adds a property descriptor for the Commit feature.
104      * <!-- begin-user-doc -->
105      * <!-- end-user-doc -->
106      * @generated
107      */

108     protected void addCommitPropertyDescriptor(Object JavaDoc object) {
109         itemPropertyDescriptors.add
110             (new ItemPropertyDescriptor
111                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
112                  getResourceLocator(),
113                  getString("_UI_LoaderJobType_commit_feature"),
114                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_commit_feature", "_UI_LoaderJobType_type"),
115                  OljPackage.eINSTANCE.getLoaderJobType_Commit(),
116                  true,
117                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
118     }
119
120     /**
121      * This adds a property descriptor for the Commit Count feature.
122      * <!-- begin-user-doc -->
123      * <!-- end-user-doc -->
124      * @generated
125      */

126     protected void addCommitCountPropertyDescriptor(Object JavaDoc object) {
127         itemPropertyDescriptors.add
128             (new ItemPropertyDescriptor
129                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
130                  getResourceLocator(),
131                  getString("_UI_LoaderJobType_commitCount_feature"),
132                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_commitCount_feature", "_UI_LoaderJobType_type"),
133                  OljPackage.eINSTANCE.getLoaderJobType_CommitCount(),
134                  true,
135                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
136     }
137
138     /**
139      * This adds a property descriptor for the Data Cut Off feature.
140      * <!-- begin-user-doc -->
141      * <!-- end-user-doc -->
142      * @generated
143      */

144     protected void addDataCutOffPropertyDescriptor(Object JavaDoc object) {
145         itemPropertyDescriptors.add
146             (new ItemPropertyDescriptor
147                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
148                  getResourceLocator(),
149                  getString("_UI_LoaderJobType_dataCutOff_feature"),
150                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_dataCutOff_feature", "_UI_LoaderJobType_type"),
151                  OljPackage.eINSTANCE.getLoaderJobType_DataCutOff(),
152                  true,
153                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
154     }
155
156     /**
157      * This adds a property descriptor for the Log Class Name feature.
158      * <!-- begin-user-doc -->
159      * <!-- end-user-doc -->
160      * @generated
161      */

162     protected void addLogClassNamePropertyDescriptor(Object JavaDoc object) {
163         itemPropertyDescriptors.add
164             (new ItemPropertyDescriptor
165                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
166                  getResourceLocator(),
167                  getString("_UI_LoaderJobType_logClassName_feature"),
168                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_logClassName_feature", "_UI_LoaderJobType_type"),
169                  OljPackage.eINSTANCE.getLoaderJobType_LogClassName(),
170                  true,
171                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
172     }
173
174     /**
175      * This adds a property descriptor for the Log Column Name feature.
176      * <!-- begin-user-doc -->
177      * <!-- end-user-doc -->
178      * @generated
179      */

180     protected void addLogColumnNamePropertyDescriptor(Object JavaDoc object) {
181         itemPropertyDescriptors.add
182             (new ItemPropertyDescriptor
183                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
184                  getResourceLocator(),
185                  getString("_UI_LoaderJobType_logColumnName_feature"),
186                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_logColumnName_feature", "_UI_LoaderJobType_type"),
187                  OljPackage.eINSTANCE.getLoaderJobType_LogColumnName(),
188                  true,
189                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
190     }
191
192     /**
193      * This adds a property descriptor for the Log Dir feature.
194      * <!-- begin-user-doc -->
195      * <!-- end-user-doc -->
196      * @generated
197      */

198     protected void addLogDirPropertyDescriptor(Object JavaDoc object) {
199         itemPropertyDescriptors.add
200             (new ItemPropertyDescriptor
201                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
202                  getResourceLocator(),
203                  getString("_UI_LoaderJobType_logDir_feature"),
204                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_logDir_feature", "_UI_LoaderJobType_type"),
205                  OljPackage.eINSTANCE.getLoaderJobType_LogDir(),
206                  true,
207                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
208     }
209
210     /**
211      * This adds a property descriptor for the Log File feature.
212      * <!-- begin-user-doc -->
213      * <!-- end-user-doc -->
214      * @generated
215      */

216     protected void addLogFilePropertyDescriptor(Object JavaDoc object) {
217         itemPropertyDescriptors.add
218             (new ItemPropertyDescriptor
219                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
220                  getResourceLocator(),
221                  getString("_UI_LoaderJobType_logFile_feature"),
222                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_logFile_feature", "_UI_LoaderJobType_type"),
223                  OljPackage.eINSTANCE.getLoaderJobType_LogFile(),
224                  true,
225                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
226     }
227
228     /**
229      * This adds a property descriptor for the Log Import Definition Name feature.
230      * <!-- begin-user-doc -->
231      * <!-- end-user-doc -->
232      * @generated
233      */

234     protected void addLogImportDefinitionNamePropertyDescriptor(Object JavaDoc object) {
235         itemPropertyDescriptors.add
236             (new ItemPropertyDescriptor
237                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
238                  getResourceLocator(),
239                  getString("_UI_LoaderJobType_logImportDefinitionName_feature"),
240                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_logImportDefinitionName_feature", "_UI_LoaderJobType_type"),
241                  OljPackage.eINSTANCE.getLoaderJobType_LogImportDefinitionName(),
242                  true,
243                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
244     }
245
246     /**
247      * This adds a property descriptor for the Log Mode feature.
248      * <!-- begin-user-doc -->
249      * <!-- end-user-doc -->
250      * @generated
251      */

252     protected void addLogModePropertyDescriptor(Object JavaDoc object) {
253         itemPropertyDescriptors.add
254             (new ItemPropertyDescriptor
255                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
256                  getResourceLocator(),
257                  getString("_UI_LoaderJobType_logMode_feature"),
258                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_logMode_feature", "_UI_LoaderJobType_type"),
259                  OljPackage.eINSTANCE.getLoaderJobType_LogMode(),
260                  true,
261                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
262     }
263
264     /**
265      * This adds a property descriptor for the Log New Value feature.
266      * <!-- begin-user-doc -->
267      * <!-- end-user-doc -->
268      * @generated
269      */

270     protected void addLogNewValuePropertyDescriptor(Object JavaDoc object) {
271         itemPropertyDescriptors.add
272             (new ItemPropertyDescriptor
273                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
274                  getResourceLocator(),
275                  getString("_UI_LoaderJobType_logNewValue_feature"),
276                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_logNewValue_feature", "_UI_LoaderJobType_type"),
277                  OljPackage.eINSTANCE.getLoaderJobType_LogNewValue(),
278                  true,
279                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
280     }
281
282     /**
283      * This adds a property descriptor for the Log Operation Name feature.
284      * <!-- begin-user-doc -->
285      * <!-- end-user-doc -->
286      * @generated
287      */

288     protected void addLogOperationNamePropertyDescriptor(Object JavaDoc object) {
289         itemPropertyDescriptors.add
290             (new ItemPropertyDescriptor
291                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
292                  getResourceLocator(),
293                  getString("_UI_LoaderJobType_logOperationName_feature"),
294                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_logOperationName_feature", "_UI_LoaderJobType_type"),
295                  OljPackage.eINSTANCE.getLoaderJobType_LogOperationName(),
296                  true,
297                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
298     }
299
300     /**
301      * This adds a property descriptor for the Log Original Value feature.
302      * <!-- begin-user-doc -->
303      * <!-- end-user-doc -->
304      * @generated
305      */

306     protected void addLogOriginalValuePropertyDescriptor(Object JavaDoc object) {
307         itemPropertyDescriptors.add
308             (new ItemPropertyDescriptor
309                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
310                  getResourceLocator(),
311                  getString("_UI_LoaderJobType_logOriginalValue_feature"),
312                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_logOriginalValue_feature", "_UI_LoaderJobType_type"),
313                  OljPackage.eINSTANCE.getLoaderJobType_LogOriginalValue(),
314                  true,
315                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
316     }
317
318     /**
319      * This adds a property descriptor for the Log Row Number feature.
320      * <!-- begin-user-doc -->
321      * <!-- end-user-doc -->
322      * @generated
323      */

324     protected void addLogRowNumberPropertyDescriptor(Object JavaDoc object) {
325         itemPropertyDescriptors.add
326             (new ItemPropertyDescriptor
327                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
328                  getResourceLocator(),
329                  getString("_UI_LoaderJobType_logRowNumber_feature"),
330                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_logRowNumber_feature", "_UI_LoaderJobType_type"),
331                  OljPackage.eINSTANCE.getLoaderJobType_LogRowNumber(),
332                  true,
333                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
334     }
335
336     /**
337      * This adds a property descriptor for the Log Table feature.
338      * <!-- begin-user-doc -->
339      * <!-- end-user-doc -->
340      * @generated
341      */

342     protected void addLogTablePropertyDescriptor(Object JavaDoc object) {
343         itemPropertyDescriptors.add
344             (new ItemPropertyDescriptor
345                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
346                  getResourceLocator(),
347                  getString("_UI_LoaderJobType_logTable_feature"),
348                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_logTable_feature", "_UI_LoaderJobType_type"),
349                  OljPackage.eINSTANCE.getLoaderJobType_LogTable(),
350                  true,
351                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
352     }
353
354     /**
355      * This adds a property descriptor for the Log Table Name feature.
356      * <!-- begin-user-doc -->
357      * <!-- end-user-doc -->
358      * @generated
359      */

360     protected void addLogTableNamePropertyDescriptor(Object JavaDoc object) {
361         itemPropertyDescriptors.add
362             (new ItemPropertyDescriptor
363                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
364                  getResourceLocator(),
365                  getString("_UI_LoaderJobType_logTableName_feature"),
366                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_logTableName_feature", "_UI_LoaderJobType_type"),
367                  OljPackage.eINSTANCE.getLoaderJobType_LogTableName(),
368                  true,
369                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
370     }
371
372     /**
373      * This adds a property descriptor for the Log Type Name feature.
374      * <!-- begin-user-doc -->
375      * <!-- end-user-doc -->
376      * @generated
377      */

378     protected void addLogTypeNamePropertyDescriptor(Object JavaDoc object) {
379         itemPropertyDescriptors.add
380             (new ItemPropertyDescriptor
381                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
382                  getResourceLocator(),
383                  getString("_UI_LoaderJobType_logTypeName_feature"),
384                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_logTypeName_feature", "_UI_LoaderJobType_type"),
385                  OljPackage.eINSTANCE.getLoaderJobType_LogTypeName(),
386                  true,
387                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
388     }
389
390     /**
391      * This adds a property descriptor for the Object ID Auto Create feature.
392      * <!-- begin-user-doc -->
393      * <!-- end-user-doc -->
394      * @generated
395      */

396     protected void addObjectIDAutoCreatePropertyDescriptor(Object JavaDoc object) {
397         itemPropertyDescriptors.add
398             (new ItemPropertyDescriptor
399                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
400                  getResourceLocator(),
401                  getString("_UI_LoaderJobType_objectIDAutoCreate_feature"),
402                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_objectIDAutoCreate_feature", "_UI_LoaderJobType_type"),
403                  OljPackage.eINSTANCE.getLoaderJobType_ObjectIDAutoCreate(),
404                  true,
405                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
406     }
407
408     /**
409      * This adds a property descriptor for the Object ID Column Name feature.
410      * <!-- begin-user-doc -->
411      * <!-- end-user-doc -->
412      * @generated
413      */

414     protected void addObjectIDColumnNamePropertyDescriptor(Object JavaDoc object) {
415         itemPropertyDescriptors.add
416             (new ItemPropertyDescriptor
417                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
418                  getResourceLocator(),
419                  getString("_UI_LoaderJobType_objectIDColumnName_feature"),
420                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_objectIDColumnName_feature", "_UI_LoaderJobType_type"),
421                  OljPackage.eINSTANCE.getLoaderJobType_ObjectIDColumnName(),
422                  true,
423                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
424     }
425
426     /**
427      * This adds a property descriptor for the Object ID Increment feature.
428      * <!-- begin-user-doc -->
429      * <!-- end-user-doc -->
430      * @generated
431      */

432     protected void addObjectIDIncrementPropertyDescriptor(Object JavaDoc object) {
433         itemPropertyDescriptors.add
434             (new ItemPropertyDescriptor
435                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
436                  getResourceLocator(),
437                  getString("_UI_LoaderJobType_objectIDIncrement_feature"),
438                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_objectIDIncrement_feature", "_UI_LoaderJobType_type"),
439                  OljPackage.eINSTANCE.getLoaderJobType_ObjectIDIncrement(),
440                  true,
441                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
442     }
443
444     /**
445      * This adds a property descriptor for the Object ID Name Column Name feature.
446      * <!-- begin-user-doc -->
447      * <!-- end-user-doc -->
448      * @generated
449      */

450     protected void addObjectIDNameColumnNamePropertyDescriptor(Object JavaDoc object) {
451         itemPropertyDescriptors.add
452             (new ItemPropertyDescriptor
453                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
454                  getResourceLocator(),
455                  getString("_UI_LoaderJobType_objectIDNameColumnName_feature"),
456                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_objectIDNameColumnName_feature", "_UI_LoaderJobType_type"),
457                  OljPackage.eINSTANCE.getLoaderJobType_ObjectIDNameColumnName(),
458                  true,
459                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
460     }
461
462     /**
463      * This adds a property descriptor for the Object ID Name Column Value feature.
464      * <!-- begin-user-doc -->
465      * <!-- end-user-doc -->
466      * @generated
467      */

468     protected void addObjectIDNameColumnValuePropertyDescriptor(Object JavaDoc object) {
469         itemPropertyDescriptors.add
470             (new ItemPropertyDescriptor
471                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
472                  getResourceLocator(),
473                  getString("_UI_LoaderJobType_objectIDNameColumnValue_feature"),
474                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_objectIDNameColumnValue_feature", "_UI_LoaderJobType_type"),
475                  OljPackage.eINSTANCE.getLoaderJobType_ObjectIDNameColumnValue(),
476                  true,
477                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
478     }
479
480     /**
481      * This adds a property descriptor for the Object ID Start Value feature.
482      * <!-- begin-user-doc -->
483      * <!-- end-user-doc -->
484      * @generated
485      */

486     protected void addObjectIDStartValuePropertyDescriptor(Object JavaDoc object) {
487         itemPropertyDescriptors.add
488             (new ItemPropertyDescriptor
489                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
490                  getResourceLocator(),
491                  getString("_UI_LoaderJobType_objectIDStartValue_feature"),
492                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_objectIDStartValue_feature", "_UI_LoaderJobType_type"),
493                  OljPackage.eINSTANCE.getLoaderJobType_ObjectIDStartValue(),
494                  true,
495                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
496     }
497
498     /**
499      * This adds a property descriptor for the Object ID Table Name feature.
500      * <!-- begin-user-doc -->
501      * <!-- end-user-doc -->
502      * @generated
503      */

504     protected void addObjectIDTableNamePropertyDescriptor(Object JavaDoc object) {
505         itemPropertyDescriptors.add
506             (new ItemPropertyDescriptor
507                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
508                  getResourceLocator(),
509                  getString("_UI_LoaderJobType_objectIDTableName_feature"),
510                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_objectIDTableName_feature", "_UI_LoaderJobType_type"),
511                  OljPackage.eINSTANCE.getLoaderJobType_ObjectIDTableName(),
512                  true,
513                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
514     }
515
516     /**
517      * This adds a property descriptor for the Oid Logic feature.
518      * <!-- begin-user-doc -->
519      * <!-- end-user-doc -->
520      * @generated
521      */

522     protected void addOidLogicPropertyDescriptor(Object JavaDoc object) {
523         itemPropertyDescriptors.add
524             (new ItemPropertyDescriptor
525                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
526                  getResourceLocator(),
527                  getString("_UI_LoaderJobType_oidLogic_feature"),
528                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_oidLogic_feature", "_UI_LoaderJobType_type"),
529                  OljPackage.eINSTANCE.getLoaderJobType_OidLogic(),
530                  true,
531                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
532     }
533
534     /**
535      * This adds a property descriptor for the On Error Continue feature.
536      * <!-- begin-user-doc -->
537      * <!-- end-user-doc -->
538      * @generated
539      */

540     protected void addOnErrorContinuePropertyDescriptor(Object JavaDoc object) {
541         itemPropertyDescriptors.add
542             (new ItemPropertyDescriptor
543                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
544                  getResourceLocator(),
545                  getString("_UI_LoaderJobType_onErrorContinue_feature"),
546                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_onErrorContinue_feature", "_UI_LoaderJobType_type"),
547                  OljPackage.eINSTANCE.getLoaderJobType_OnErrorContinue(),
548                  true,
549                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
550     }
551
552     /**
553      * This adds a property descriptor for the Path To Logger Conf feature.
554      * <!-- begin-user-doc -->
555      * <!-- end-user-doc -->
556      * @generated
557      */

558     protected void addPathToLoggerConfPropertyDescriptor(Object JavaDoc object) {
559         itemPropertyDescriptors.add
560             (new ItemPropertyDescriptor
561                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
562                  getResourceLocator(),
563                  getString("_UI_LoaderJobType_pathToLoggerConf_feature"),
564                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_pathToLoggerConf_feature", "_UI_LoaderJobType_type"),
565                  OljPackage.eINSTANCE.getLoaderJobType_PathToLoggerConf(),
566                  true,
567                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
568     }
569
570     /**
571      * This adds a property descriptor for the Return Code feature.
572      * <!-- begin-user-doc -->
573      * <!-- end-user-doc -->
574      * @generated
575      */

576     protected void addReturnCodePropertyDescriptor(Object JavaDoc object) {
577         itemPropertyDescriptors.add
578             (new ItemPropertyDescriptor
579                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
580                  getResourceLocator(),
581                  getString("_UI_LoaderJobType_returnCode_feature"),
582                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_returnCode_feature", "_UI_LoaderJobType_type"),
583                  OljPackage.eINSTANCE.getLoaderJobType_ReturnCode(),
584                  true,
585                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
586     }
587
588     /**
589      * This adds a property descriptor for the Set Cursor Name feature.
590      * <!-- begin-user-doc -->
591      * <!-- end-user-doc -->
592      * @generated
593      */

594     protected void addSetCursorNamePropertyDescriptor(Object JavaDoc object) {
595         itemPropertyDescriptors.add
596             (new ItemPropertyDescriptor
597                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
598                  getResourceLocator(),
599                  getString("_UI_LoaderJobType_setCursorName_feature"),
600                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_setCursorName_feature", "_UI_LoaderJobType_type"),
601                  OljPackage.eINSTANCE.getLoaderJobType_SetCursorName(),
602                  true,
603                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
604     }
605
606     /**
607      * This adds a property descriptor for the Set Fetch Size feature.
608      * <!-- begin-user-doc -->
609      * <!-- end-user-doc -->
610      * @generated
611      */

612     protected void addSetFetchSizePropertyDescriptor(Object JavaDoc object) {
613         itemPropertyDescriptors.add
614             (new ItemPropertyDescriptor
615                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
616                  getResourceLocator(),
617                  getString("_UI_LoaderJobType_setFetchSize_feature"),
618                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_setFetchSize_feature", "_UI_LoaderJobType_type"),
619                  OljPackage.eINSTANCE.getLoaderJobType_SetFetchSize(),
620                  true,
621                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
622     }
623
624     /**
625      * This adds a property descriptor for the Table Mode feature.
626      * <!-- begin-user-doc -->
627      * <!-- end-user-doc -->
628      * @generated
629      */

630     protected void addTableModePropertyDescriptor(Object JavaDoc object) {
631         itemPropertyDescriptors.add
632             (new ItemPropertyDescriptor
633                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
634                  getResourceLocator(),
635                  getString("_UI_LoaderJobType_tableMode_feature"),
636                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_tableMode_feature", "_UI_LoaderJobType_type"),
637                  OljPackage.eINSTANCE.getLoaderJobType_TableMode(),
638                  true,
639                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
640     }
641
642     /**
643      * This adds a property descriptor for the User ID feature.
644      * <!-- begin-user-doc -->
645      * <!-- end-user-doc -->
646      * @generated
647      */

648     protected void addUserIDPropertyDescriptor(Object JavaDoc object) {
649         itemPropertyDescriptors.add
650             (new ItemPropertyDescriptor
651                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
652                  getResourceLocator(),
653                  getString("_UI_LoaderJobType_userID_feature"),
654                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_userID_feature", "_UI_LoaderJobType_type"),
655                  OljPackage.eINSTANCE.getLoaderJobType_UserID(),
656                  true,
657                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
658     }
659
660     /**
661      * This adds a property descriptor for the Vendor Config feature.
662      * <!-- begin-user-doc -->
663      * <!-- end-user-doc -->
664      * @generated
665      */

666     protected void addVendorConfigPropertyDescriptor(Object JavaDoc object) {
667         itemPropertyDescriptors.add
668             (new ItemPropertyDescriptor
669                 (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
670                  getResourceLocator(),
671                  getString("_UI_LoaderJobType_vendorConfig_feature"),
672                  getString("_UI_PropertyDescriptor_description", "_UI_LoaderJobType_vendorConfig_feature", "_UI_LoaderJobType_type"),
673                  OljPackage.eINSTANCE.getLoaderJobType_VendorConfig(),
674                  true,
675                  ItemPropertyDescriptor.GENERIC_VALUE_IMAGE));
676     }
677
678     /**
679      * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
680      * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
681      * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
682      * <!-- begin-user-doc -->
683      * <!-- end-user-doc -->
684      * @generated
685      */

686     public Collection JavaDoc getChildrenFeatures(Object JavaDoc object) {
687         if (childrenFeatures == null) {
688             super.getChildrenFeatures(object);
689             childrenFeatures.add(OljPackage.eINSTANCE.getLoaderJobType_Group());
690         }
691         return childrenFeatures;
692     }
693
694     /**
695      * This returns LoaderJobType.gif.
696      * <!-- begin-user-doc -->
697      * <!-- end-user-doc -->
698      * @generated
699      */

700     public Object JavaDoc getImage(Object JavaDoc object) {
701         return getResourceLocator().getImage("full/obj16/LoaderJobType");
702     }
703
704     /**
705      * This returns the label text for the adapted class.
706      * <!-- begin-user-doc -->
707      * <!-- end-user-doc -->
708      * @generated
709      */

710     public String JavaDoc getText(Object JavaDoc object) {
711         String JavaDoc label = ((LoaderJobType)object).getLogClassName();
712         return label == null || label.length() == 0 ?
713             getString("_UI_LoaderJobType_type") :
714             getString("_UI_LoaderJobType_type") + " " + label;
715     }
716
717     /**
718      * This handles model notifications by calling {@link #updateChildren} to update any cached
719      * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
720      * <!-- begin-user-doc -->
721      * <!-- end-user-doc -->
722      * @generated
723      */

724     public void notifyChanged(Notification notification) {
725         updateChildren(notification);
726
727         switch (notification.getFeatureID(LoaderJobType.class)) {
728             case OljPackage.LOADER_JOB_TYPE__COMMIT:
729             case OljPackage.LOADER_JOB_TYPE__COMMIT_COUNT:
730             case OljPackage.LOADER_JOB_TYPE__DATA_CUT_OFF:
731             case OljPackage.LOADER_JOB_TYPE__LOG_CLASS_NAME:
732             case OljPackage.LOADER_JOB_TYPE__LOG_COLUMN_NAME:
733             case OljPackage.LOADER_JOB_TYPE__LOG_DIR:
734             case OljPackage.LOADER_JOB_TYPE__LOG_FILE:
735             case OljPackage.LOADER_JOB_TYPE__LOG_IMPORT_DEFINITION_NAME:
736             case OljPackage.LOADER_JOB_TYPE__LOG_MODE:
737             case OljPackage.LOADER_JOB_TYPE__LOG_NEW_VALUE:
738             case OljPackage.LOADER_JOB_TYPE__LOG_OPERATION_NAME:
739             case OljPackage.LOADER_JOB_TYPE__LOG_ORIGINAL_VALUE:
740             case OljPackage.LOADER_JOB_TYPE__LOG_ROW_NUMBER:
741             case OljPackage.LOADER_JOB_TYPE__LOG_TABLE:
742             case OljPackage.LOADER_JOB_TYPE__LOG_TABLE_NAME:
743             case OljPackage.LOADER_JOB_TYPE__LOG_TYPE_NAME:
744             case OljPackage.LOADER_JOB_TYPE__OBJECT_ID_AUTO_CREATE:
745             case OljPackage.LOADER_JOB_TYPE__OBJECT_ID_COLUMN_NAME:
746             case OljPackage.LOADER_JOB_TYPE__OBJECT_ID_INCREMENT:
747             case OljPackage.LOADER_JOB_TYPE__OBJECT_ID_NAME_COLUMN_NAME:
748             case OljPackage.LOADER_JOB_TYPE__OBJECT_ID_NAME_COLUMN_VALUE:
749             case OljPackage.LOADER_JOB_TYPE__OBJECT_ID_START_VALUE:
750             case OljPackage.LOADER_JOB_TYPE__OBJECT_ID_TABLE_NAME:
751             case OljPackage.LOADER_JOB_TYPE__OID_LOGIC:
752             case OljPackage.LOADER_JOB_TYPE__ON_ERROR_CONTINUE:
753             case OljPackage.LOADER_JOB_TYPE__PATH_TO_LOGGER_CONF:
754             case OljPackage.LOADER_JOB_TYPE__RETURN_CODE:
755             case OljPackage.LOADER_JOB_TYPE__SET_CURSOR_NAME:
756             case OljPackage.LOADER_JOB_TYPE__SET_FETCH_SIZE:
757             case OljPackage.LOADER_JOB_TYPE__TABLE_MODE:
758             case OljPackage.LOADER_JOB_TYPE__USER_ID:
759             case OljPackage.LOADER_JOB_TYPE__VENDOR_CONFIG:
760                 fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
761                 return;
762             case OljPackage.LOADER_JOB_TYPE__GROUP:
763                 fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
764                 return;
765         }
766         super.notifyChanged(notification);
767     }
768
769     /**
770      * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s
771      * describing all of the children that can be created under this object.
772      * <!-- begin-user-doc -->
773      * <!-- end-user-doc -->
774      * @generated
775      */

776     protected void collectNewChildDescriptors(Collection JavaDoc newChildDescriptors, Object JavaDoc object) {
777         super.collectNewChildDescriptors(newChildDescriptors, object);
778
779         newChildDescriptors.add
780             (createChildParameter
781                 (OljPackage.eINSTANCE.getLoaderJobType_Sql(),
782                  OljFactory.eINSTANCE.createSqlType()));
783
784         newChildDescriptors.add
785             (createChildParameter
786                 (OljPackage.eINSTANCE.getLoaderJobType_DefinitionInclude(),
787                  OljFactory.eINSTANCE.createDefinitionIncludeType()));
788
789         newChildDescriptors.add
790             (createChildParameter
791                 (OljPackage.eINSTANCE.getLoaderJobType_ImportDefinition(),
792                  OljFactory.eINSTANCE.createImportDefinitionType()));
793
794         newChildDescriptors.add
795             (createChildParameter
796                 (OljPackage.eINSTANCE.getLoaderJobType_RestartCounter(),
797                  OljFactory.eINSTANCE.createRestartCounterType()));
798
799         newChildDescriptors.add
800             (createChildParameter
801                 (OljPackage.eINSTANCE.getLoaderJobType_Variables(),
802                  OljFactory.eINSTANCE.createVariablesType()));
803
804         newChildDescriptors.add
805             (createChildParameter
806                 (OljPackage.eINSTANCE.getLoaderJobType_JdbcDefaultParameters(),
807                  OljFactory.eINSTANCE.createJdbcDefaultParametersType()));
808
809         newChildDescriptors.add
810             (createChildParameter
811                 (OljPackage.eINSTANCE.getLoaderJobType_Echo(),
812                  OljFactory.eINSTANCE.createEchoType()));
813
814         newChildDescriptors.add
815             (createChildParameter
816                 (OljPackage.eINSTANCE.getLoaderJobType_CopyTable(),
817                  OljFactory.eINSTANCE.createCopyTableType()));
818     }
819
820     /**
821      * Return the resource locator for this item provider's resources.
822      * <!-- begin-user-doc -->
823      * <!-- end-user-doc -->
824      * @generated
825      */

826     public ResourceLocator getResourceLocator() {
827         return OljEditPlugin.INSTANCE;
828     }
829
830 }
831
Popular Tags