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.commonplugin.help.actions; 006 007 import graphlab.plugins.commonplugin.reporter.ReporterPluginMethods; 008 import graphlab.plugins.main.GraphData; 009 import graphlab.plugins.main.extension.GraphActionExtension; 010 011 import java.net.MalformedURLException; 012 import java.net.URL; 013 014 public class VisitGraphLabHomePage implements GraphActionExtension { 015 public void action(GraphData gd) { 016 try { 017 new ReporterPluginMethods().browse(new URL("http://graphlab.sharif.ir")); 018 } catch (MalformedURLException e) { 019 e.printStackTrace(); 020 } 021 } 022 023 public String getName() { 024 return "GraphLab Homepage"; 025 026 } 027 028 public String getDescription() { 029 return "Visits GraphLab homepage"; 030 } 031 }