Last active
October 27, 2019 06:08
-
-
Save pvlasov/82d826fedea4fb7818bda363d4d9d557 to your computer and use it in GitHub Desktop.
Shows how to use NasdanikaItemProvider.createItemPropertyDescriptor method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This adds a property descriptor for the Color feature. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated NOT | |
*/ | |
protected void addColorPropertyDescriptor(Object object) { | |
itemPropertyDescriptors.add | |
(createItemPropertyDescriptor | |
(getResourceLocator(), | |
getString("_UI_Item_color_feature"), | |
BootstrapPackage.Literals.ITEM__COLOR, | |
true, | |
false, | |
false, | |
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, | |
null, | |
null, | |
Arrays.stream(Color.values()).map(Color::name).collect(Collectors.toList()))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment