DepthOperation.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 public class DepthOperation extends TraceOperation {
00010 
00011     int depth;
00012     
00013     public DepthOperation(String label, int depth) {
00014         super(label);
00015         this.depth = depth;
00016     }
00017     
00018     public int getDepth() {
00019         return depth;
00020     }
00021 
00022     @Override
00023     public IStatus execute(IProgressMonitor monitor, IAdaptable info)
00024             throws ExecutionException {
00025         return Status.OK_STATUS;
00026     }
00027 
00028     @Override
00029     public IStatus redo(IProgressMonitor monitor, IAdaptable info)
00030             throws ExecutionException {
00031         return execute(monitor, info);
00032     }
00033 
00034     @Override
00035     public IStatus undo(IProgressMonitor monitor, IAdaptable info)
00036             throws ExecutionException {
00037         return execute(monitor, info);
00038     }
00039 
00040 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1