ScopeActions.java

Go to the documentation of this file.
00001 
00004 package edu.rice.cs.hpc.viewer.scope;
00005 
00006 import org.eclipse.jface.preference.IPreferenceStore;
00007 import org.eclipse.swt.widgets.Composite;
00008 import org.eclipse.swt.widgets.Shell;
00009 import org.eclipse.swt.widgets.CoolBar;
00010 
00011 import edu.rice.cs.hpc.data.experiment.Experiment;
00012 import edu.rice.cs.hpc.data.experiment.scope.RootScope;
00013 import edu.rice.cs.hpc.viewer.framework.Activator;
00014 import edu.rice.cs.hpc.viewer.util.PreferenceConstants;
00015 
00020 public abstract class  ScopeActions {
00021     // public preference
00022     static public double fTHRESHOLD = 0.6; 
00023     protected IScopeActionsGUI objActionsGUI;
00024     protected Composite parent;
00025     protected Shell             objShell;
00026 
00027     public ScopeActions(Shell shell, Composite parent, CoolBar coolbar) {
00028         IPreferenceStore objPref = Activator.getDefault().getPreferenceStore();
00029         double fDefaultThreshold = objPref.getDouble(PreferenceConstants.P_THRESHOLD);
00030         if(fDefaultThreshold > 0.0)
00031             ScopeActions.fTHRESHOLD= fDefaultThreshold;
00032         this.parent = parent;
00033         this.objShell = shell;
00034     }
00035     
00036     public void setColumnStatus(boolean []status) {
00037         this.objActionsGUI.setColumnsStatus(status);
00038     }
00044     protected abstract Composite createGUI(Composite parent, CoolBar coolbar);
00052     public abstract void updateContent(Experiment exp, RootScope scope);
00053     
00057     public abstract void resizeColumns();
00058     
00059     
00065     public abstract void checkNodeButtons();
00066     
00071     public abstract void setTreeViewer(ScopeTreeViewer tree);
00072 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1