001 // GraphLab Project: http://graphlab.sharif.edu 002 // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology 003 // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/ 004 005 package graphlab.plugins.reports; 006 007 import graphlab.platform.core.BlackBoard; 008 import graphlab.plugins.main.GraphData; 009 import graphlab.plugins.main.extension.GraphActionExtension; 010 import graphlab.plugins.reports.extension.GraphReportExtensionHandler; 011 import graphlab.plugins.reports.ui.ReportsUI; 012 013 /** 014 * shows the property editor contains all registered report(extensions) 015 * 016 * @author azin azadi 017 018 */ 019 public class ShowReports implements GraphActionExtension { 020 public void action(GraphData gd) { 021 BlackBoard blackboard = gd.getBlackboard(); 022 ReportsUI rui = blackboard.getData(GraphReportExtensionHandler.REPORTS_UI); 023 rui.show(); 024 } 025 026 public String getName() { 027 return "show Reports"; 028 } 029 030 public String getDescription() { 031 return "shows the list of all reports and their values"; 032 } 033 }