private static void openEntityEditor(Object node, IWorkbenchWindow window, Map<?, ?> parameters) throws DBException {
        if (node instanceof DBNObjectNode objectNode) {
            INavigatorObjectManager objectManager = GeneralUtils.adapt(objectNode.getNodeObject(), INavigatorObjectManager.class);
            if (objectManager != null) {
                if (((objectManager.getSupportedFeatures() & INavigatorObjectManager.FEATURE_OPEN)) != 0) {
                    objectManager.openObjectEditor(window, objectNode);
                }
                return;
            }
        }
        Object activePage = parameters == null ? null : parameters.get(MultiPageDatabaseEditor.PARAMETER_ACTIVE_PAGE);
        NavigatorHandlerObjectOpen.openEntityEditor(
            (DBNNode) node,
            CommonUtils.toString(activePage, null),
            window);
    }
Find selected node for specified UI element
@param element ui element
@return node or null
plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/NavigatorUtils.java