|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.gef.util.FlagSupport org.eclipse.gef.tools.AbstractTool org.eclipse.gef.tools.TargetingTool org.eclipse.gef.tools.SelectEditPartTracker org.eclipse.gef.tools.DragEditPartsTracker sk.uniba.euromath.editor.textEditor.tools.TextDragTracker
public class TextDragTracker
Works with ITextPieceKeeper and IDOMIntervalSet that represents selection. Supports selecting by mouse. During selecting Caret is deactivated and selection is showed through IXMLGraphicalViewer. After selecting is finished, sets the selection to IXMLGraphicalViewer.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.gef.tools.AbstractTool |
---|
org.eclipse.gef.tools.AbstractTool.Input |
Field Summary |
---|
Fields inherited from class org.eclipse.gef.tools.DragEditPartsTracker |
---|
MAX_FLAG |
Fields inherited from class org.eclipse.gef.tools.SelectEditPartTracker |
---|
FLAG_SELECTION_PERFORMED |
Fields inherited from class org.eclipse.gef.tools.AbstractTool |
---|
MAX_STATE, MOUSE_BUTTON_ANY, MOUSE_BUTTON1, MOUSE_BUTTON2, MOUSE_BUTTON3, PROPERTY_UNLOAD_WHEN_FINISHED, STATE_ACCESSIBLE_DRAG, STATE_ACCESSIBLE_DRAG_IN_PROGRESS, STATE_DRAG, STATE_DRAG_IN_PROGRESS, STATE_INITIAL, STATE_INVALID, STATE_TERMINAL |
Fields inherited from interface org.eclipse.gef.RequestConstants |
---|
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER |
Constructor Summary | |
---|---|
TextDragTracker(org.eclipse.gef.EditPart owner,
org.eclipse.draw2d.geometry.Point startLocation)
|
Method Summary | |
---|---|
protected Collection |
getExclusionSet()
|
TextEditPart |
getTextEditPart()
|
protected XMLAccess |
getXMLAccess()
|
protected IXMLGraphicalViewer |
getXMLGraphicalViewer()
|
protected boolean |
handleButtonDown(int button)
|
protected boolean |
handleButtonUp(int button)
|
protected boolean |
handleDoubleClick(int button)
Activates text editing. |
protected boolean |
handleDrag()
|
protected boolean |
handleDragStarted()
|
protected sk.baka.ikslibs.ptr.DomPointer |
mouseLocationToDomPointer()
|
protected void |
performDrag()
|
protected void |
performInitSelection()
|
protected void |
performSelection()
select editparts depending on events from user |
protected void |
processLocalSelection(boolean commit)
When selection ends, commit should be true |
Methods inherited from class org.eclipse.gef.tools.DragEditPartsTracker |
---|
commitDrag, createOperationSet, createTargetRequest, deactivate, eraseSourceFeedback, getCommand, getCommandName, getDebugName, getDefaultCursor, handleAutoexpose, handleDragInProgress, handleHover, handleInvalidInput, handleKeyDown, handleKeyUp, isCloneActive, isMove, repairStartLocation, setAutoexposeHelper, setCloneActive, setState, setTargetEditPart, showSourceFeedback, updateTargetRequest |
Methods inherited from class org.eclipse.gef.tools.SelectEditPartTracker |
---|
calculateCursor, getSourceEditPart, hasSelectionOccurred, performConditionalSelection, performDirectEdit, performOpen, resetFlags, setSourceEditPart |
Methods inherited from class org.eclipse.gef.tools.TargetingTool |
---|
doAutoexpose, eraseTargetFeedback, getTargetEditPart, getTargetingConditional, getTargetRequest, handleEnteredEditPart, handleExitingEditPart, handleHoverStop, handleLeavingEditPart, handleViewerExited, isShowingTargetFeedback, isTargetLocked, lockTargetEditPart, setTargetRequest, showTargetFeedback, unlockTargetEditPart, updateAutoexposeHelper, updateTargetUnderMouse |
Methods inherited from class org.eclipse.gef.tools.AbstractTool |
---|
activate, addFeedback, applyProperty, debug, executeCommand, executeCurrentCommand, focusGained, focusLost, getCurrentCommand, getCurrentInput, getCurrentViewer, getDebugNameForState, getDisabledCursor, getDomain, getDragMoveDelta, getLocation, getOperationSet, getStartLocation, getState, handleCommandStackChanged, handleFinished, handleFocusGained, handleFocusLost, handleKeyTraversed, handleMove, handleNativeDragFinished, handleNativeDragStarted, handleViewerEntered, isActive, isHoverActive, isInState, isViewerImportant, keyDown, keyTraversed, keyUp, mouseDoubleClick, mouseDown, mouseDrag, mouseHover, mouseMove, mouseUp, mouseWheelScrolled, movedPastThreshold, nativeDragFinished, nativeDragStarted, performViewerMouseWheel, reactivate, refreshCursor, releaseToolCapture, removeFeedback, setCurrentCommand, setCursor, setDefaultCursor, setDisabledCursor, setEditDomain, setHoverActive, setProperties, setStartLocation, setToolCapture, setUnloadWhenFinished, setViewer, stateTransition, unloadWhenFinished, viewerEntered, viewerExited |
Methods inherited from class org.eclipse.gef.util.FlagSupport |
---|
getFlag, setFlag |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.gef.Tool |
---|
activate, focusGained, focusLost, keyDown, keyTraversed, keyUp, mouseDoubleClick, mouseDown, mouseDrag, mouseHover, mouseMove, mouseUp, mouseWheelScrolled, nativeDragFinished, nativeDragStarted, setEditDomain, setProperties, setViewer, viewerEntered, viewerExited |
Constructor Detail |
---|
public TextDragTracker(org.eclipse.gef.EditPart owner, org.eclipse.draw2d.geometry.Point startLocation)
owner
- startLocation
- location where this DragTracker starts it workMethod Detail |
---|
protected boolean handleDoubleClick(int button)
handleDoubleClick
in class org.eclipse.gef.tools.SelectEditPartTracker
button
- which button was double-clickedAbstractTool.handleDoubleClick(int)
protected boolean handleButtonDown(int button)
handleButtonDown
in class org.eclipse.gef.tools.SelectEditPartTracker
protected boolean handleDragStarted()
handleDragStarted
in class org.eclipse.gef.tools.SelectEditPartTracker
AbstractTool.handleDragStarted()
protected Collection getExclusionSet()
getExclusionSet
in class org.eclipse.gef.tools.DragEditPartsTracker
DragEditPartsTracker
protected boolean handleDrag()
handleDrag
in class org.eclipse.gef.tools.AbstractTool
protected void performDrag()
performDrag
in class org.eclipse.gef.tools.DragEditPartsTracker
is called
when the draging ends.
protected void performSelection()
performSelection
in class org.eclipse.gef.tools.SelectEditPartTracker
protected boolean handleButtonUp(int button)
handleButtonUp
in class org.eclipse.gef.tools.DragEditPartsTracker
protected void processLocalSelection(boolean commit)
commit
should be true
commit
- if true
, then sets to GraphicalViewer processed selection
othervise tell GraphicalViewer only to show processed selectionprotected void performInitSelection()
protected sk.baka.ikslibs.ptr.DomPointer mouseLocationToDomPointer()
protected IXMLGraphicalViewer getXMLGraphicalViewer()
protected XMLAccess getXMLAccess()
public TextEditPart getTextEditPart()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |