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.main.help;
006    
007    import graphlab.graph.ui.GTabbedGraphPane;
008    import graphlab.platform.core.BlackBoard;
009    import graphlab.ui.extension.UIActionExtension;
010    
011    import java.io.File;
012    import java.net.MalformedURLException;
013    
014    /**
015     * @author Azin Azadi
016     */
017    public class ShowDocumentations implements UIActionExtension {
018    
019    
020        public void actionPerformed(BlackBoard blackBoard) {
021            try {
022                GTabbedGraphPane.getCurrentGHTGhtmlPageComponent(blackBoard).setPage(new File("graphlab/plugins/main/ui/welcome_page.html").toURL());
023            } catch (MalformedURLException e) {
024                e.printStackTrace();
025            }
026        }
027    }
028