|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpalmed.edit.selection.AbstractAction
palmed.edit.selection.NewLineInsertion
public final class NewLineInsertion
This class implements an action to replace the selection (if any) with a new line.
Constructor Summary | |
---|---|
NewLineInsertion(ISelection selection,
IText text,
Coordinate insertion)
Create an enter action. |
Method Summary | |
---|---|
boolean |
merge(IAction action)
Merge another action. |
protected void |
onPerform()
Perform the action. |
protected boolean |
onRedo()
Redo the action. |
protected boolean |
onUndo()
Undo the action. |
Methods inherited from class palmed.edit.selection.AbstractAction |
---|
backupData, overwriteFinalState, perform, prependData, redo, restoreData, undo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NewLineInsertion(ISelection selection, IText text, Coordinate insertion)
selection
- the selectiontext
- the textinsertion
- the insertion positionMethod Detail |
---|
protected void onPerform()
onPerform
in class AbstractAction
protected boolean onUndo()
onUndo
in class AbstractAction
protected boolean onRedo()
onRedo
in class AbstractAction
public boolean merge(IAction action)
action
- the action to merge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |