FlatScopeView.java

Go to the documentation of this file.
00001 
00004 package edu.rice.cs.hpc.viewer.scope.flat;
00005 
00006 import org.eclipse.jface.action.IMenuManager;
00007 import org.eclipse.jface.viewers.CellLabelProvider;
00008 import org.eclipse.swt.widgets.Composite;
00009 import org.eclipse.swt.widgets.CoolBar;
00010 import org.eclipse.swt.widgets.Event;
00011 import org.eclipse.ui.IWorkbenchWindow;
00012 
00013 import edu.rice.cs.hpc.data.experiment.Experiment;
00014 import edu.rice.cs.hpc.data.experiment.scope.Scope;
00015 import edu.rice.cs.hpc.viewer.scope.AbstractContentProvider;
00016 import edu.rice.cs.hpc.viewer.scope.BaseScopeView;
00017 import edu.rice.cs.hpc.viewer.scope.ScopeViewActions;
00018 import edu.rice.cs.hpc.viewer.scope.StyledScopeLabelProvider;
00019 
00026 public class FlatScopeView extends BaseScopeView {
00027     public static final String ID = "edu.rice.cs.hpc.viewer.scope.FlatScopeView";
00028 
00029     protected ScopeViewActions createActions(Composite parent, CoolBar coolbar) {
00030         IWorkbenchWindow window = this.getSite().getWorkbenchWindow();
00031         return new FlatScopeViewActions(this.getViewSite().getShell(), window, parent, coolbar); 
00032     }
00033 
00034     //@Override
00035     protected CellLabelProvider getLabelProvider() {
00036         return new StyledScopeLabelProvider(this.getSite().getWorkbenchWindow());
00037     }
00038 
00039     //@Override
00040     protected void createAdditionalContextMenu(IMenuManager mgr, Scope scope) {
00041         // TODO Auto-generated method stub
00042         
00043     }
00044 
00045     //@Override
00046     protected void mouseDownEvent(Event event) {
00047         // TODO Auto-generated method stub
00048         
00049     }
00050 
00051     @Override
00052     protected AbstractContentProvider getScopeContentProvider() {
00053         return new FlatViewContentProvider();
00054     }
00055 
00056     //@Override
00057     protected void updateDatabase(Experiment newDatabase) {}
00058 
00059 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1