コード例 #1
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eUnset(int featureID) {
   switch (featureID) {
     case MenuPackageImpl.ITEM__LABEL:
       setLabel(LABEL_EDEFAULT);
       return;
     case MenuPackageImpl.ITEM__ICON_URI:
       setIconURI(ICON_URI_EDEFAULT);
       return;
     case MenuPackageImpl.ITEM__TOOLTIP:
       setTooltip(TOOLTIP_EDEFAULT);
       return;
     case MenuPackageImpl.ITEM__ENABLED:
       setEnabled(ENABLED_EDEFAULT);
       return;
     case MenuPackageImpl.ITEM__SELECTED:
       setSelected(SELECTED_EDEFAULT);
       return;
     case MenuPackageImpl.ITEM__TYPE:
       setType(TYPE_EDEFAULT);
       return;
   }
   super.eUnset(featureID);
 }
コード例 #2
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated
  */
 @Override
 public void eSet(int featureID, Object newValue) {
   switch (featureID) {
     case MenuPackageImpl.ITEM__LABEL:
       setLabel((String) newValue);
       return;
     case MenuPackageImpl.ITEM__ICON_URI:
       setIconURI((String) newValue);
       return;
     case MenuPackageImpl.ITEM__TOOLTIP:
       setTooltip((String) newValue);
       return;
     case MenuPackageImpl.ITEM__ENABLED:
       setEnabled((Boolean) newValue);
       return;
     case MenuPackageImpl.ITEM__SELECTED:
       setSelected((Boolean) newValue);
       return;
     case MenuPackageImpl.ITEM__TYPE:
       setType((ItemType) newValue);
       return;
   }
   super.eSet(featureID, newValue);
 }