ZoomOperation.java

Go to the documentation of this file.
00001 package edu.rice.cs.hpc.traceviewer.operation;
00002 
00003 import org.eclipse.core.commands.ExecutionException;
00004 import org.eclipse.core.runtime.IAdaptable;
00005 import org.eclipse.core.runtime.IProgressMonitor;
00006 import org.eclipse.core.runtime.IStatus;
00007 import org.eclipse.core.runtime.Status;
00008 
00009 import edu.rice.cs.hpc.traceviewer.spaceTimeData.Frame;
00010 
00011 /********************************************
00012  * 
00013  * zoom operation
00014  *
00015  ********************************************/
00016 public class ZoomOperation extends TraceOperation {
00017     
00018     static final public String ActionHome = "Home";
00019     
00020     public ZoomOperation(String label, Frame frame) {
00021         super(label, frame);
00022         addContext(undoableContext);
00023     }
00024 
00025     @Override
00026     public IStatus execute(IProgressMonitor monitor, IAdaptable info)
00027             throws ExecutionException 
00028             {
00029         return Status.OK_STATUS;
00030     }
00031 
00032     @Override
00033     public IStatus redo(IProgressMonitor monitor, IAdaptable info)
00034             throws ExecutionException {
00035         return execute(monitor, info);
00036     }
00037 
00038     @Override
00039     public IStatus undo(IProgressMonitor monitor, IAdaptable info)
00040             throws ExecutionException {
00041         return Status.OK_STATUS;
00042     }
00043 
00044 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1