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 package graphlab.plugins.main.select; 005 006 import graphlab.platform.core.BlackBoard; 007 import graphlab.ui.UI; 008 009 import java.io.IOException; 010 011 /** 012 * @author Reza Mohammadi 013 */ 014 public class Init implements graphlab.platform.plugin.PluginInterface { 015 016 public void init(BlackBoard blackboard) { 017 UI ui = (UI) blackboard.getData(UI.name); 018 try { 019 ui.addXML("/graphlab/plugins/main/select/SelectUI.xml", getClass()); 020 021 } catch (IOException e) { 022 e.printStackTrace(); 023 System.out.println("xml file was not found , or IO error"); 024 } catch (Exception e) { 025 e.printStackTrace(); 026 } 027 } 028 }