Skip to content

Commit

Permalink
Update insurance metamodel edit code
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoKlare committed Dec 17, 2021
1 parent 7b066e6 commit 775ea4f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ _UI_Unknown_type = Object

_UI_Unknown_datatype= Value

_UI_InsuranceDatabase_insuranceclient_feature = Insuranceclient
_UI_InsuranceDatabase_insuranceclient_feature = Insurance Client
_UI_InsuranceClient_name_feature = Name
_UI_InsuranceClient_socialSecurityNumber_feature = Social Security Number
_UI_Unknown_feature = Unspecified

_UI_Sex_MALE_literal = MALE
_UI_Sex_FEMALE_literal = FEMALE
_UI_InsuranceClient_gender_feature = Gender
_UI_Gender_MALE_literal = MALE
_UI_Gender_FEMALE_literal = FEMALE
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {

addNamePropertyDescriptor(object);
addSocialSecurityNumberPropertyDescriptor(object);
addGenderPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
Expand Down Expand Up @@ -91,6 +92,22 @@ protected void addSocialSecurityNumberPropertyDescriptor(Object object) {
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}

/**
* This adds a property descriptor for the Gender feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addGenderPropertyDescriptor(Object object) {
itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_InsuranceClient_gender_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_InsuranceClient_gender_feature",
"_UI_InsuranceClient_type"),
InsurancePackage.Literals.INSURANCE_CLIENT__GENDER, true, false, false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
}

/**
* This returns InsuranceClient.gif.
* <!-- begin-user-doc -->
Expand Down Expand Up @@ -139,6 +156,7 @@ public void notifyChanged(Notification notification) {
switch (notification.getFeatureID(InsuranceClient.class)) {
case InsurancePackage.INSURANCE_CLIENT__NAME:
case InsurancePackage.INSURANCE_CLIENT__SOCIAL_SECURITY_NUMBER:
case InsurancePackage.INSURANCE_CLIENT__GENDER:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
}
Expand Down

0 comments on commit 775ea4f

Please sign in to comment.