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.commandline; 006 007 import graphlab.graph.ui.HyperlinkHandler; 008 import graphlab.platform.core.BlackBoard; 009 010 import java.net.URL; 011 012 /** 013 * @author Azin Azadi 014 * @see graphlab.graph.ui.GHTMLPageComponent 015 */ 016 public class ShellHyperlinkHandler implements HyperlinkHandler { 017 public ShellHyperlinkHandler(Shell shell) { 018 this.shell = shell; 019 } 020 021 Shell shell; 022 023 public void handle(String command, BlackBoard b, URL currentURL) { 024 shell.evaluate(command); 025 } 026 }