コード例 #1
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__LABEL:
       setLabel(LABEL_EDEFAULT);
       return;
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__ICON_URI:
       setIconURI(ICON_URI_EDEFAULT);
       return;
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__TOOLTIP:
       setTooltip(TOOLTIP_EDEFAULT);
       return;
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__HANDLERS:
       getHandlers().clear();
       return;
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__BINDING_CONTEXTS:
       getBindingContexts().clear();
       return;
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__CONTRIBUTION_URI:
       setContributionURI(CONTRIBUTION_URI_EDEFAULT);
       return;
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__FILEEXTENSIONS:
       getFileextensions().clear();
       return;
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__CONTENTTYPES:
       getContenttypes().clear();
       return;
   }
   super.eUnset(featureID);
 }
コード例 #2
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @SuppressWarnings("unchecked")
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__LABEL:
       setLabel((String) newValue);
       return;
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__ICON_URI:
       setIconURI((String) newValue);
       return;
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__TOOLTIP:
       setTooltip((String) newValue);
       return;
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__HANDLERS:
       getHandlers().clear();
       getHandlers().addAll((Collection<? extends MHandler>) newValue);
       return;
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__BINDING_CONTEXTS:
       getBindingContexts().clear();
       getBindingContexts().addAll((Collection<? extends MBindingContext>) newValue);
       return;
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__CONTRIBUTION_URI:
       setContributionURI((String) newValue);
       return;
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__FILEEXTENSIONS:
       getFileextensions().clear();
       getFileextensions().addAll((Collection<? extends String>) newValue);
       return;
     case SimpleidePackageImpl.EDITOR_PART_DESCRIPTOR__CONTENTTYPES:
       getContenttypes().clear();
       getContenttypes().addAll((Collection<? extends String>) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }