Skip to content

Instantly share code, notes, and snippets.

@pvlasov
Last active October 27, 2019 06:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvlasov/82d826fedea4fb7818bda363d4d9d557 to your computer and use it in GitHub Desktop.
Save pvlasov/82d826fedea4fb7818bda363d4d9d557 to your computer and use it in GitHub Desktop.
Shows how to use NasdanikaItemProvider.createItemPropertyDescriptor method
/**
* 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