Search in sources :

Example 1 with DashboardContainer

use of org.jkiss.dbeaver.ui.dashboard.model.DashboardContainer in project dbeaver by serge-rider.

the class HandlerDashboardViewItem method execute.

@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
    DashboardView view = getActiveDashboardView(event);
    if (view != null) {
        DashboardContainer selectedDashboard = getSelectedDashboard(view);
        if (selectedDashboard != null) {
            DashboardItemViewDialog viewDialog = new DashboardItemViewDialog(view.getDashboardListViewer(), (DashboardItem) selectedDashboard);
            viewDialog.open();
        }
    }
    return null;
}
Also used : DashboardContainer(org.jkiss.dbeaver.ui.dashboard.model.DashboardContainer)

Example 2 with DashboardContainer

use of org.jkiss.dbeaver.ui.dashboard.model.DashboardContainer in project dbeaver by dbeaver.

the class HandlerDashboardViewItem method execute.

@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
    DashboardView view = getActiveDashboardView(event);
    if (view != null) {
        DashboardContainer selectedDashboard = getSelectedDashboard(view);
        if (selectedDashboard != null) {
            DashboardItemViewDialog viewDialog = new DashboardItemViewDialog(view.getDashboardListViewer(), (DashboardItem) selectedDashboard);
            viewDialog.open();
        }
    }
    return null;
}
Also used : DashboardContainer(org.jkiss.dbeaver.ui.dashboard.model.DashboardContainer)

Aggregations

DashboardContainer (org.jkiss.dbeaver.ui.dashboard.model.DashboardContainer)2