1 7 package Olj.provider; 8 9 10 import Olj.LoaderJobType; 11 import Olj.OljFactory; 12 import Olj.OljPackage; 13 14 import java.util.Collection ; 15 import java.util.List ; 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 38 public class LoaderJobTypeItemProvider 39 extends ItemProviderAdapter 40 implements 41 IEditingDomainItemProvider, 42 IStructuredItemContentProvider, 43 ITreeItemContentProvider, 44 IItemLabelProvider, 45 IItemPropertySource { 46 52 public LoaderJobTypeItemProvider(AdapterFactory adapterFactory) { 53 super(adapterFactory); 54 } 55 56 62 public List getPropertyDescriptors(Object 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 108 protected void addCommitPropertyDescriptor(Object 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 126 protected void addCommitCountPropertyDescriptor(Object 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 144 protected void addDataCutOffPropertyDescriptor(Object 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 162 protected void addLogClassNamePropertyDescriptor(Object 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 180 protected void addLogColumnNamePropertyDescriptor(Object 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 198 protected void addLogDirPropertyDescriptor(Object 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 216 protected void addLogFilePropertyDescriptor(Object 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 234 protected void addLogImportDefinitionNamePropertyDescriptor(Object 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 252 protected void addLogModePropertyDescriptor(Object 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 270 protected void addLogNewValuePropertyDescriptor(Object 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 288 protected void addLogOperationNamePropertyDescriptor(Object 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 306 protected void addLogOriginalValuePropertyDescriptor(Object 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 324 protected void addLogRowNumberPropertyDescriptor(Object 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 342 protected void addLogTablePropertyDescriptor(Object 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 360 protected void addLogTableNamePropertyDescriptor(Object 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 378 protected void addLogTypeNamePropertyDescriptor(Object 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 396 protected void addObjectIDAutoCreatePropertyDescriptor(Object 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 414 protected void addObjectIDColumnNamePropertyDescriptor(Object 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 432 protected void addObjectIDIncrementPropertyDescriptor(Object 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 450 protected void addObjectIDNameColumnNamePropertyDescriptor(Object 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 468 protected void addObjectIDNameColumnValuePropertyDescriptor(Object 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 486 protected void addObjectIDStartValuePropertyDescriptor(Object 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 504 protected void addObjectIDTableNamePropertyDescriptor(Object 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 522 protected void addOidLogicPropertyDescriptor(Object 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 540 protected void addOnErrorContinuePropertyDescriptor(Object 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 558 protected void addPathToLoggerConfPropertyDescriptor(Object 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 576 protected void addReturnCodePropertyDescriptor(Object 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 594 protected void addSetCursorNamePropertyDescriptor(Object 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 612 protected void addSetFetchSizePropertyDescriptor(Object 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 630 protected void addTableModePropertyDescriptor(Object 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 648 protected void addUserIDPropertyDescriptor(Object 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 666 protected void addVendorConfigPropertyDescriptor(Object 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 686 public Collection getChildrenFeatures(Object object) { 687 if (childrenFeatures == null) { 688 super.getChildrenFeatures(object); 689 childrenFeatures.add(OljPackage.eINSTANCE.getLoaderJobType_Group()); 690 } 691 return childrenFeatures; 692 } 693 694 700 public Object getImage(Object object) { 701 return getResourceLocator().getImage("full/obj16/LoaderJobType"); 702 } 703 704 710 public String getText(Object object) { 711 String 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 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 776 protected void collectNewChildDescriptors(Collection newChildDescriptors, Object 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 826 public ResourceLocator getResourceLocator() { 827 return OljEditPlugin.INSTANCE; 828 } 829 830 } 831 | Popular Tags |