use of au.gov.asd.tac.constellation.plugins.reporting.GraphReport in project constellation by constellation-app.
the class NotesViewPane method setGraphReport.
/**
* Set the plugin reports that have executed on the current graph report.
*/
protected void setGraphReport(final NotesViewController controller) {
final Graph activeGraph = GraphManager.getDefault().getActiveGraph();
if (activeGraph != null) {
final GraphReport currentGraphReport = GraphReportManager.getGraphReport(activeGraph.getId());
if (currentGraphReport != null) {
// Iterates the list of currently executed plugins.
currentGraphReport.getPluginReports().forEach(pluginReport -> {
// Omit low level plugins which are not useful as notes.
if (!pluginReport.hasLowLevelTag()) {
addPluginReport(pluginReport);
}
});
SwingUtilities.invokeLater(() -> {
final TopComponent tc = WindowManager.getDefault().findTopComponent(NotesViewTopComponent.class.getSimpleName());
if (tc != null && tc.isOpened()) {
// Update the Notes View UI.
updateNotesUI();
updateFilters();
}
});
controller.writeState(activeGraph);
}
}
}
Aggregations