edu.cmu.cs.crystal.internal
Class RunCrystalOnCurrentFileHandler

java.lang.Object
  extended by edu.cmu.cs.crystal.internal.RunCrystalOnCurrentFileHandler
All Implemented Interfaces:
org.eclipse.core.commands.IHandler

public class RunCrystalOnCurrentFileHandler
extends Object
implements org.eclipse.core.commands.IHandler

Handler for the CrystalPlugin.runcrystaloncurrent command that runs Crystal on the file in the currently active editor. This means that unsaved changes in the editor will not be considered in the analysis.

Since:
Crystal 3.4.2
Author:
kevin
See Also:
RunCrystalHandler

Constructor Summary
RunCrystalOnCurrentFileHandler()
           
 
Method Summary
 void addHandlerListener(org.eclipse.core.commands.IHandlerListener handlerListener)
           
 void dispose()
           
 Object execute(org.eclipse.core.commands.ExecutionEvent event)
           
 boolean isEnabled()
           
 boolean isHandled()
           
 void removeHandlerListener(org.eclipse.core.commands.IHandlerListener handlerListener)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunCrystalOnCurrentFileHandler

public RunCrystalOnCurrentFileHandler()
Method Detail

execute

public Object execute(org.eclipse.core.commands.ExecutionEvent event)
               throws org.eclipse.core.commands.ExecutionException
Specified by:
execute in interface org.eclipse.core.commands.IHandler
Throws:
org.eclipse.core.commands.ExecutionException

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface org.eclipse.core.commands.IHandler

isHandled

public boolean isHandled()
Specified by:
isHandled in interface org.eclipse.core.commands.IHandler

addHandlerListener

public void addHandlerListener(org.eclipse.core.commands.IHandlerListener handlerListener)
Specified by:
addHandlerListener in interface org.eclipse.core.commands.IHandler

removeHandlerListener

public void removeHandlerListener(org.eclipse.core.commands.IHandlerListener handlerListener)
Specified by:
removeHandlerListener in interface org.eclipse.core.commands.IHandler

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.core.commands.IHandler