net.refractions.udig.core
Interface IFixer


public interface IFixer

Provides a resolution method for fixing a memento item.

Since:
1.1.0
Author:
chorner

Method Summary
 boolean canFix(java.lang.Object object, IMemento memento)
          Determines if the object memento can be handled by this fixer implementation.
 void complete(java.lang.Object object)
          Informs the fixer that the fix was completed successfully.
 void fix(java.lang.Object object, IMemento memento)
          Performs the fix operation.
 

Method Detail

canFix

boolean canFix(java.lang.Object object,
               IMemento memento)
Determines if the object memento can be handled by this fixer implementation.

Parameters:
object - victim
memento - additional tidbits for fixer initialization and saving state.
Returns:

fix

void fix(java.lang.Object object,
         IMemento memento)
Performs the fix operation. This could be a zoom to a feature, or simply firing up a cheat sheet/dialog.

Parameters:
object - victim
memento - additional tidbits for fixer initialization and saving state.

complete

void complete(java.lang.Object object)
Informs the fixer that the fix was completed successfully.

Parameters:
object - victim