|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.gef.ui.parts.AbstractEditPartViewer org.eclipse.gef.ui.parts.GraphicalViewerImpl org.eclipse.gef.ui.parts.ScrollingGraphicalViewer sk.uniba.euromath.editor.xmlEditor.viewers.XMLScrollingGraphicalViewer sk.uniba.euromath.editor.textEditor.viewers.TextScrollingGraphicalViewer
public class TextScrollingGraphicalViewer
Overrides selection funcionality of ScrollingGraphicalViewer. Selection is represented by DOMIntervalSet. Converts DOMIntervals from DOMIntervalSet to EditParts and start offset and end offset in this EditParts
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.gef.EditPartViewer |
---|
org.eclipse.gef.EditPartViewer.Conditional |
Field Summary |
---|
Fields inherited from class sk.uniba.euromath.editor.xmlEditor.viewers.XMLScrollingGraphicalViewer |
---|
selection |
Fields inherited from class org.eclipse.gef.ui.parts.AbstractEditPartViewer |
---|
constantSelection, focusPart, selectionListeners |
Constructor Summary | |
---|---|
TextScrollingGraphicalViewer(TextEditor editor)
Contructor. |
Method Summary | |
---|---|
void |
deselect(org.eclipse.gef.EditPart editpart)
Deselects edit part. |
void |
deselectAll()
Deselects all selected editparts. |
void |
select(org.eclipse.gef.EditPart editpart)
Selecting whole EditPart. |
void |
select(ITextPieceKeeper keeper,
int startIndex,
int endIndex)
Selects text of keeper according to indexes. |
void |
setSelection(DOMIntervalSet selection)
Deselects editparts with Ids, that were in previous selection and select editparts that are in DOMIntervalSet |
Methods inherited from class sk.uniba.euromath.editor.xmlEditor.viewers.XMLScrollingGraphicalViewer |
---|
addSelectionChangedListener, fireSelectionChanged, getDOMSelection, getIDManager, getXMLAccess, removeSelectionChangedListener, selectionChanged, startSelectionListening, stopSelectionListening |
Methods inherited from class org.eclipse.gef.ui.parts.ScrollingGraphicalViewer |
---|
createControl, getFigureCanvas, reveal, setRootFigure |
Methods inherited from class org.eclipse.gef.ui.parts.GraphicalViewerImpl |
---|
createDefaultRoot, createLightweightSystem, findHandleAt, findObjectAtExcluding, flush, getEventDispatcher, getLayerManager, getLightweightSystem, getRootFigure, handleDispose, handleFocusGained, handleFocusLost, hookControl, hookDropTarget, registerAccessibleEditPart, setContextMenu, setCursor, setDragSource, setEditDomain, setRootEditPart, setRouteEventsToEditDomain, unhookControl, unregisterAccessibleEditPart |
Methods inherited from class org.eclipse.gef.ui.parts.AbstractEditPartViewer |
---|
addDragSourceListener, addDragSourceListener, addDropTargetListener, addDropTargetListener, addPropertyChangeListener, addSelectionChangedListener, appendSelection, findObjectAt, findObjectAtExcluding, getContents, getContextMenu, getControl, getDelegatingDragAdapter, getDelegatingDropAdapter, getDragSource, getDropTarget, getEditDomain, getEditPartFactory, getEditPartRegistry, getFocusEditPart, getKeyHandler, getProperty, getRootEditPart, getSelectedEditParts, getSelection, getSelectionManager, getVisualPartMap, hookDragSource, init, primGetSelectedEditParts, refreshDragSourceAdapter, refreshDropTargetAdapter, removeDragSourceListener, removeDragSourceListener, removeDropTargetListener, removeDropTargetListener, removePropertyChangeListener, removeSelectionChangedListener, setContents, setContents, setControl, setDropTarget, setEditPartFactory, setFocus, setKeyHandler, setProperty, setSelection, setSelectionManager |
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.GraphicalViewer |
---|
findHandleAt |
Methods inherited from interface org.eclipse.gef.EditPartViewer |
---|
addDragSourceListener, addDragSourceListener, addDropTargetListener, addDropTargetListener, addPropertyChangeListener, appendSelection, createControl, findObjectAt, findObjectAtExcluding, findObjectAtExcluding, flush, getContents, getContextMenu, getControl, getEditDomain, getEditPartFactory, getEditPartRegistry, getFocusEditPart, getKeyHandler, getProperty, getRootEditPart, getSelectedEditParts, getSelection, getSelectionManager, getVisualPartMap, registerAccessibleEditPart, removeDragSourceListener, removeDragSourceListener, removeDropTargetListener, removeDropTargetListener, removePropertyChangeListener, reveal, setContents, setContents, setContextMenu, setControl, setCursor, setEditDomain, setEditPartFactory, setFocus, setKeyHandler, setProperty, setRootEditPart, setRouteEventsToEditDomain, setSelectionManager, unregisterAccessibleEditPart |
Methods inherited from interface org.eclipse.jface.viewers.ISelectionProvider |
---|
addSelectionChangedListener, removeSelectionChangedListener, setSelection |
Constructor Detail |
---|
public TextScrollingGraphicalViewer(TextEditor editor)
editor
- text editor that uses this GraphicalViewerMethod Detail |
---|
public void setSelection(DOMIntervalSet selection)
setSelection
in interface IDOMSelectionProvider
setSelection
in class XMLScrollingGraphicalViewer
selection
- DOMIntervalSet containing DOMInetervals, that have to
be selectedpublic void select(org.eclipse.gef.EditPart editpart)
select
in interface org.eclipse.gef.EditPartViewer
select
in class XMLScrollingGraphicalViewer
editpart
- EditPart that is going to be selectedpublic void select(ITextPieceKeeper keeper, int startIndex, int endIndex)
keeper
- target for selectionstartIndex
- index in rendered text where start to select from,
if has value -1, then is set to 0endIndex
- index of first char not to select in rendered text,
if has value -1, then set to one behind keeper's
rendered textpublic void deselect(org.eclipse.gef.EditPart editpart)
deselect
in interface org.eclipse.gef.EditPartViewer
deselect
in class XMLScrollingGraphicalViewer
editpart
- EditPart that is going to be deselectedpublic void deselectAll()
deselectAll
in interface org.eclipse.gef.EditPartViewer
deselectAll
in class org.eclipse.gef.ui.parts.AbstractEditPartViewer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |