Is there a way to filter the elements which are prepopulated in the dropdowns of a Reference? (in my case, it has a cardinality of [0, 1], if that matters)
I am having a look in the .edit project, and here looks like a good place to start working about that:
protected void addTargetPropertyDescriptor(Object object) {
itemPropertyDescriptors
.add(createItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(),
getResourceLocator(), getString("_UI_Connector_target_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_Connector_target_feature",
"_UI_Connector_type"),
myPackage.Literals.CONNECTOR__TARGET, true, false, true, null, null, null));
}
but I don't see what I could change to only show a subset of the elements which are shown currently (from the whole model) in that "Target" dropdown.
[Updated on: Mon, 10 May 2021 14:27]
Report message to a moderator