/** @see com.ixora.rms.ui.artefacts.ArtefactSelectorPanel#handleAddArtefact() */ protected void handleAddArtefact() { try { DashboardEditorDialog editor = new DashboardEditorDialog( fViewContainer, fTreeExplorer, fDashboardRepository, fEventHandlef); editor.setModal(true); editor.edit(fSessionData, fContext, fAllSUOVersions, null); UIUtils.centerDialogAndShow(fViewContainer.getAppFrame(), editor); } catch (Exception ex) { UIExceptionMgr.userException(ex); } }
/** @see com.ixora.rms.ui.artefacts.ArtefactSelectorPanel#handleEditArtefact() */ protected void handleEditArtefact() { try { JTable table = getJTableArtefacts(); int sel = table.getSelectedRow(); if (sel < 0) { return; } DashboardInfo cd = (DashboardInfo) table.getModel().getValueAt(sel, 1); DashboardEditorDialog editor = new DashboardEditorDialog( fViewContainer, fTreeExplorer, fDashboardRepository, fEventHandlef); editor.setModal(true); editor.edit(fSessionData, fContext, fAllSUOVersions, cd.getDashboard()); UIUtils.centerDialogAndShow(fViewContainer.getAppFrame(), editor); } catch (Exception ex) { UIExceptionMgr.userException(ex); } }