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.extension;
005    
006    import graphlab.platform.core.BlackBoard;
007    import graphlab.plugins.main.GraphData;
008    import graphlab.ui.AbstractExtensionAction;
009    
010    /**
011     * @author azin azadi
012    
013     */
014    public class GraphActionExtensionAction extends AbstractExtensionAction {
015        private GraphActionExtension ga;
016        private GraphData gd;
017    
018        public GraphActionExtensionAction(BlackBoard bb, GraphActionExtension ga) {
019            super(bb, ga);
020            this.ga = ga;
021            gd = new GraphData(blackboard);
022        }
023    
024        public String getParentMenuName() {
025            return "Actions";
026        }
027    
028        public void performExtension() {
029            ga.action(gd);
030        }
031    
032    }