/** @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); } }
private void showTimeIntervalSelectorDialog(final String logName) { if (fLogOne.equals(logName)) { if (fTimeIntervalOne != null) { TimeIntervalSelectorDialog dlg = new TimeIntervalSelectorDialog(fViewContainer, fTimeIntervalOne); UIUtils.centerDialogAndShow(fViewContainer.getAppFrame(), dlg); BoundedTimeInterval ti = dlg.getResult(); if (ti != null) { fTimeIntervalOne = ti; } } } }
/** @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); } }