You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case a custom conditional editor is "overriding" an existing one, the next-editor cell seems to duplicate already available conditional editors with lower priorities.
In this example someone created a conditional editor to "override" an already existing one and the result looks like this:
The Inner "border" is the one from the original editor and the outer one is the one from the overriding one.
The text was updated successfully, but these errors were encountered:
arimer
changed the title
de.slisson.mps.conditionalEditor: "nextEditor" duplicates next availavle conditionalEditors with lower priority
de.slisson.mps.conditionalEditor: "nextEditor" duplicates next available conditionalEditors with lower priority
Jun 10, 2024
Idea: Add "overrides" support for conditional editors:
Adding a "overrides" functionality can't be directly implemented on the conditional editor at the moment, because internally conditional editors are just transformed into regular concept editors. Those do not hayve any default "overrides" functionality and therefor it is not supported by the editor framework at all.
We could improve the [next-editor] cell though. It generates to next applicable editor which then calls getCellFactory().createEditorCell(node, excludedEditors). You could call this code directly and add new excluded editors. The only excluded editor at the moment is the current editor but you could reference some more editors in it.
In case a custom conditional editor is "overriding" an existing one, the
next-editor
cell seems to duplicate already available conditional editors with lower priorities.In this example someone created a conditional editor to "override" an already existing one and the result looks like this:
The Inner "border" is the one from the original editor and the outer one is the one from the overriding one.
The text was updated successfully, but these errors were encountered: