UndoableOperationContext.java

Go to the documentation of this file.
00001 package edu.rice.cs.hpc.traceviewer.operation;
00002 
00003 import org.eclipse.core.commands.operations.IUndoContext;
00004 
00005 /***********************************************************************
00006  * 
00007  * Operation context for any undoable operations
00008  * 
00009  * $Id: UndoableOperationContext.java 1557 2013-01-02 21:12:28Z laksono $
00010  *
00011  ***********************************************************************/
00012 
00013 public class UndoableOperationContext implements IUndoContext {
00014 
00015     private final static String label = "UndoableOperationContext";
00016 
00017     @Override
00018     public String getLabel() {
00019         return label;
00020     }
00021 
00022     @Override
00023     public boolean matches(IUndoContext context) {
00024         return context.getLabel() == label;
00025     }
00026 
00027 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1