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.platform.core.BlackBoard; 008 import graphlab.platform.plugin.PluginInterface; 009 import graphlab.ui.UI; 010 import graphlab.ui.UIUtils; 011 import org.xml.sax.SAXException; 012 013 import java.io.IOException; 014 015 /** 016 * This plug in is under developement 017 * 018 * @author Mohammad Ali Rostami 019 */ 020 021 public class Init implements PluginInterface { 022 023 public void init(BlackBoard blackboard) { 024 UI ui = UIUtils.getUI(blackboard); 025 try { 026 ui.addXML("/graphlab/plugins/automaticupdator/config.xml", getClass()); 027 } catch (IOException e) { 028 e.printStackTrace(); 029 System.out.println("xml file was not found , or IO error"); 030 031 } catch (SAXException e) { 032 e.printStackTrace(); 033 } 034 } 035 }