BaseScopeViewActions.java

Go to the documentation of this file.
00001 
00004 package edu.rice.cs.hpc.viewer.scope;
00005 
00006 import org.eclipse.swt.widgets.Composite;
00007 import org.eclipse.swt.widgets.CoolBar;
00008 import org.eclipse.swt.widgets.Shell;
00009 import org.eclipse.ui.IWorkbenchWindow;
00010 
00011 import edu.rice.cs.hpc.data.experiment.scope.Scope;
00012 
00017 public class BaseScopeViewActions extends ScopeViewActions {
00018 
00019     public BaseScopeViewActions(Shell shell, IWorkbenchWindow window,
00020             Composite parent, CoolBar coolbar) {
00021         super(shell, window, parent, coolbar);
00022         // TODO Auto-generated constructor stub
00023     }
00024 
00025     public void checkStates(Scope nodeSelected) {
00026         boolean bCanZoomIn = objZoom.canZoomIn(nodeSelected);
00027         objActionsGUI.enableZoomIn( bCanZoomIn );
00028         objActionsGUI.enableHotCallPath( bCanZoomIn );
00029         
00030         checkStates();
00031     }
00032 
00033     public void checkStates() {
00034         objActionsGUI.enableZoomOut( objZoom.canZoomOut() );
00035     }
00036 
00040     protected  Composite createGUI(Composite parent, CoolBar coolbar) {
00041         this.objActionsGUI = new ScopeViewActionsGUI(this.objShell, this.objWindow, parent, this);
00042         return objActionsGUI.buildGUI(parent, coolbar);
00043     }
00044 
00045 
00046     /*
00047      * (non-Javadoc)
00048      * @see edu.rice.cs.hpc.viewer.scope.ScopeViewActions#actionZoom(edu.rice.cs.hpc.viewer.scope.ScopeViewActions.ZoomType)
00049      */
00050     protected void registerAction(IActionType type) {   }
00051 
00052 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1