sk.uniba.euromath.editor.textEditor.requests.editTextRequests
Class ActivateTextEditingRequest

java.lang.Object
  extended by org.eclipse.gef.Request
      extended by sk.uniba.euromath.editor.textEditor.requests.editTextRequests.EditTextRequest
          extended by sk.uniba.euromath.editor.textEditor.requests.editTextRequests.ActivateTextEditingRequest
All Implemented Interfaces:
IRequestSpecialization

public class ActivateTextEditingRequest
extends EditTextRequest
implements IRequestSpecialization

Used when activating TextTool

Author:
Martin Kollar

Constructor Summary
ActivateTextEditingRequest(ITextPieceKeeper source, int caretOffset, org.eclipse.gef.EditDomain domain)
           
 
Method Summary
 int getCaretOffset()
           
 org.eclipse.gef.EditDomain getDomain()
           
 String getSpecialization()
          TODO Kollar ocakavam navrhy na zmenu mena tejto metody, ale getAction sa mi zda byt metuce, lebo od getAction() by som cakal ze vrati nejaku akciu.
 
Methods inherited from class sk.uniba.euromath.editor.textEditor.requests.editTextRequests.EditTextRequest
getDestination, getSource, setDestination
 
Methods inherited from class org.eclipse.gef.Request
getExtendedData, getType, setExtendedData, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivateTextEditingRequest

public ActivateTextEditingRequest(ITextPieceKeeper source,
                                  int caretOffset,
                                  org.eclipse.gef.EditDomain domain)
Parameters:
source - ITextPieceKeeper where the Caret is going to be activated
caretOffset - index from start of TextPiece before that Caret is going to be activated
Method Detail

getDomain

public org.eclipse.gef.EditDomain getDomain()

getCaretOffset

public int getCaretOffset()
Returns:
index from start of TextPiece before that Caret is going to be activated

getSpecialization

public String getSpecialization()
Description copied from interface: IRequestSpecialization
TODO Kollar ocakavam navrhy na zmenu mena tejto metody, ale getAction sa mi zda byt metuce, lebo od getAction() by som cakal ze vrati nejaku akciu. Ak suhlasis s menom tejto metody, staci ze zmazes toto TODO Return request specialization unique string.

Specified by:
getSpecialization in interface IRequestSpecialization
Returns:
request specialization string


Copyright © 2003-2006 null. All Rights Reserved.