Bugfix
(User-visible)
If a right-click is performed in the model tree (Administration > Development > Model Editor), this leads to a ClassCastException:
Caused by: java.lang.ClassCastException: class com.top_logic.element.meta.PersistentClass cannot be cast to class com.top_logic.layout.tree.model.TLTreeNode (com.top_logic.element.meta.PersistentClass and com.top_logic.layout.tree.model.TLTreeNode are in unnamed module of loader 'app') at com.top_logic.layout.table.tree.TreeTableContextMenuFactory$Provider.mapContextObject(TreeTableContextMenuFactory.java:51) at com.top_logic.layout.basic.contextmenu.component.factory.TypeBasedContextMenuFactory$Provider.mapContext(TypeBasedContextMenuFactory.java:162) at com.top_logic.layout.table.tree.TreeTableContextMenuFactory$Provider.mapContextObject(TreeTableContextMenuFactory.java:51) at com.top_logic.layout.basic.contextmenu.component.factory.TypeBasedContextMenuFactory$Provider.mapContext(TypeBasedContextMenuFactory.java:162) at com.top_logic.layout.basic.contextmenu.component.factory.TypeBasedContextMenuFactory$Provider.getContextMenu(TypeBasedContextMenuFactory.java:144) at com.top_logic.layout.basic.contextmenu.component.factory.adapter.TypeBasedContextMenuProvider.getContextMenu(TypeBasedContextMenuProvider.java:74) at com.top_logic.layout.table.control.TableControl.createContextMenu(TableControl.java:447) at com.top_logic.layout.basic.contextmenu.control.ContextMenuOpener.execute(ContextMenuOpener.java:62) at com.top_logic.layout.basic.AbstractControlBase.executeCommand(AbstractControlBase.java:981)
Test
Navigate to the model editor and right-click on the model tree. A context menu should open.