de.cau.cs.kieler.klots.editor
Class HighlightSJInstructionEffect
java.lang.Object
de.cau.cs.kieler.core.kivi.AbstractEffect
de.cau.cs.kieler.klots.editor.HighlightSJInstructionEffect
- All Implemented Interfaces:
- IEffect
public class HighlightSJInstructionEffect
- extends AbstractEffect
- Rating

Method Summary |
HighlightSJInstructionEffect |
clone()
Create a copy of this object, using a shallow copy. |
void |
execute()
Execute the effect. |
boolean |
isMergeable()
Determines whether this effect can be merged with previously scheduled effects. |
void |
undo()
Attempt to undo the effect. |
HighlightSJInstructionEffect
public HighlightSJInstructionEffect(int startOffset,
int textLength,
Color color,
Color backgroundColor,
Color originalColor,
Color originalBackgroundColor,
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor editor)
- Parameters:
startOffset
- textLength
- color
- backgroundColor
- originalColor
- originalBackgroundColor
- editor
-
execute
public void execute()
- Execute the effect.
undo
public void undo()
- Description copied from class:
AbstractEffect
- Attempt to undo the effect.
- Specified by:
undo
in interface IEffect
- Overrides:
undo
in class AbstractEffect
isMergeable
public boolean isMergeable()
- Description copied from class:
AbstractEffect
- Determines whether this effect can be merged with previously scheduled effects.
- Specified by:
isMergeable
in interface IEffect
- Overrides:
isMergeable
in class AbstractEffect
- Returns:
- true if it can be merged, false if no search through the effect queue is necessary
clone
public HighlightSJInstructionEffect clone()
- Description copied from class:
Object
- Create a copy of this object, using a shallow copy.
- Overrides:
clone
in class Object
- Returns:
- The new copy of the Object