package sk.stuba.fiit.perconik.eclipse.ltk.core.refactoring.history; import java.util.Set; import org.eclipse.ltk.core.refactoring.history.RefactoringExecutionEvent; import sk.stuba.fiit.perconik.utilities.constant.IntegralConstantSupport; /** * Refactoring execution event types. * * @see RefactoringExecutionEvent * * @author Pavol Zbell * @since 1.0 */ public enum RefactoringExecutionEventType implements RefactoringEventType { /** * @see RefactoringExecutionEvent#ABOUT_TO_PERFORM */ ABOUT_TO_PERFORM(RefactoringExecutionEvent.ABOUT_TO_PERFORM), /** * @see RefactoringExecutionEvent#ABOUT_TO_REDO */ ABOUT_TO_REDO(RefactoringExecutionEvent.ABOUT_TO_REDO), /** * @see RefactoringExecutionEvent#ABOUT_TO_UNDO */ ABOUT_TO_UNDO(RefactoringExecutionEvent.ABOUT_TO_UNDO), /** * @see RefactoringExecutionEvent#PERFORMED */ PERFORMED(RefactoringExecutionEvent.PERFORMED), /** * @see RefactoringExecutionEvent#REDONE */ REDONE(RefactoringExecutionEvent.REDONE), /** * @see RefactoringExecutionEvent#UNDONE */ UNDONE(RefactoringExecutionEvent.UNDONE); private static final IntegralConstantSupport<RefactoringExecutionEventType> integers = IntegralConstantSupport.of(RefactoringExecutionEventType.class); private final int value; private RefactoringExecutionEventType(final int value) { this.value = value; } public static Set<Integer> valuesAsIntegers() { return integers.getIntegers(); } public static RefactoringExecutionEventType valueOf(final int value) { return integers.getConstant(value); } public int getValue() { return this.value; } }