sk.uniba.euromath.editor.textEditor.commands
Class SwitchEditModeCommand
java.lang.Object
org.eclipse.gef.commands.Command
sk.uniba.euromath.editor.textEditor.commands.SwitchEditModeCommand
public class SwitchEditModeCommand
- extends org.eclipse.gef.commands.Command
- Author:
- TV, refactored by Martin Kollar
10.6.2005
Switches the active tool to TextTool
Methods inherited from class org.eclipse.gef.commands.Command |
canUndo, chain, dispose, getDebugLabel, getLabel, redo, setDebugLabel, setLabel, undo |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwitchEditModeCommand
public SwitchEditModeCommand(ITextPieceKeeper origin,
int caretOffset,
CaretManager cManager,
org.eclipse.gef.EditDomain domain)
- Parameters:
origin
- EditPart which calls this commandcaretOffset
- is offset where to activate Caret in origin
ITextPieceKeepercManager
- CaretManagerdomain
- EditDomain on that new Tool will be instaled
canExecute
public boolean canExecute()
- Overrides:
canExecute
in class org.eclipse.gef.commands.Command
- Returns:
true
if it was created in EditPart implementing ITextPieceKeeper
execute
public void execute()
- Swithes tool to TextTool
- Overrides:
execute
in class org.eclipse.gef.commands.Command
getEditingTool
protected org.eclipse.gef.Tool getEditingTool()
Copyright © 2003-2006 null. All Rights Reserved.