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.automaticupdator; 006 007 import graphlab.plugins.automaticupdator.net.interdirected.autoupdate.AutomatedUpdate; 008 import graphlab.plugins.main.GraphData; 009 import graphlab.plugins.main.extension.GraphActionExtension; 010 011 /** 012 * @author Azin Azadi 013 */ 014 public class AutomaticUpdatorAction extends AutomatedUpdate implements GraphActionExtension { 015 public String getName() { 016 return "Check for Updates..."; 017 } 018 019 public String getDescription() { 020 return "Checks for and downloads application updates."; 021 } 022 023 public void action(GraphData gd) { 024 new Thread() { 025 public void run() { 026 AutomaticUpdatorAction.run(null); 027 } 028 }.start(); 029 } 030 }