RefreshOperation.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.commands.operations.AbstractOperation;
00005 import org.eclipse.core.commands.operations.IUndoContext;
00006 import org.eclipse.core.runtime.IAdaptable;
00007 import org.eclipse.core.runtime.IProgressMonitor;
00008 import org.eclipse.core.runtime.IStatus;
00009 import org.eclipse.core.runtime.Status;
00010 
00011 public class RefreshOperation extends AbstractOperation {
00012     
00013     static final public IUndoContext context = new RefreshOperationContext();
00014 
00015     public RefreshOperation(String label) {
00016         super(label);
00017         addContext(context);
00018     }
00019 
00020     @Override
00021     public IStatus execute(IProgressMonitor monitor, IAdaptable info)
00022             throws ExecutionException {
00023         return Status.OK_STATUS;
00024     }
00025 
00026     @Override
00027     public IStatus redo(IProgressMonitor monitor, IAdaptable info)
00028             throws ExecutionException {
00029         return execute(monitor, info);
00030     }
00031 
00032     @Override
00033     public IStatus undo(IProgressMonitor monitor, IAdaptable info)
00034             throws ExecutionException {
00035         return Status.OK_STATUS;
00036     }
00037 
00038 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1