|
||||||||||
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
public class XMLScrollingGraphicalViewer
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.gef.EditPartViewer |
---|
org.eclipse.gef.EditPartViewer.Conditional |
Field Summary | |
---|---|
protected List<IDOMSelectionChangedListener> |
selectionChangedListeners
|
Fields inherited from class org.eclipse.gef.ui.parts.AbstractEditPartViewer |
---|
constantSelection, focusPart, selectionListeners |
Constructor Summary | |
---|---|
XMLScrollingGraphicalViewer(XMLEditor editor)
|
Method Summary | |
---|---|
void |
addSelectionChangedListener(IDOMSelectionChangedListener listener)
Adds a listener for selection changes in this selection provider. |
void |
deselect(org.eclipse.gef.EditPart editpart)
|
protected void |
fireSelectionChanged()
This is called when new editpart is selected or deselected |
sk.baka.ikslibs.interval.DOMIntervalSet |
getDOMSelection()
Returns copy of the current selection of provider. |
sk.baka.ikslibs.interval.DOMIntervalSet |
getLocalSelection()
|
void |
removeSelectionChangedListener(IDOMSelectionChangedListener listener)
Removes the given selection change listener from this selection provider. |
void |
select(org.eclipse.gef.EditPart editpart)
|
void |
selectionChanged(DOMSelectionChangedEvent event)
Effect is same as using setSelection |
void |
setSelection(sk.baka.ikslibs.interval.DOMIntervalSet selection)
Deselects editparts with Ids, that were in previous selection and select editparts that are in DOMIntervalSet and sends this selection to IDOMSelectionListeners |
void |
showSelection(sk.baka.ikslibs.interval.DOMIntervalSet selection)
Deselects editparts with Ids, that were in previous selection and select editparts that are in DOMIntervalSet and sends this selection to IDOMSelectionListeners |
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, deselectAll, 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, deselectAll, 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 |
Field Detail |
---|
protected List<IDOMSelectionChangedListener> selectionChangedListeners
Constructor Detail |
---|
public XMLScrollingGraphicalViewer(XMLEditor editor)
editor
- XMLEditor that uses this GraphicalViewer to show his stateMethod Detail |
---|
public void showSelection(sk.baka.ikslibs.interval.DOMIntervalSet selection)
showSelection
in interface IXMLGraphicalViewer
selection
- DOMIntervalSet containing DOMInetervals, that have to be selectedpublic void addSelectionChangedListener(IDOMSelectionChangedListener listener)
IDOMSelectionProvider
addSelectionChangedListener
in interface IDOMSelectionProvider
listener
- new listener to be add from selectionChangedListenerspublic void removeSelectionChangedListener(IDOMSelectionChangedListener listener)
IDOMSelectionProvider
removeSelectionChangedListener
in interface IDOMSelectionProvider
listener
- listener to be removed from selectionChangedListenerspublic sk.baka.ikslibs.interval.DOMIntervalSet getDOMSelection()
IDOMSelectionProvider
getDOMSelection
in interface IDOMSelectionProvider
public void setSelection(sk.baka.ikslibs.interval.DOMIntervalSet selection)
setSelection
in interface IDOMSelectionProvider
selection
- DOMIntervalSet containing DOMInetervals, that have to be selectedpublic void selectionChanged(DOMSelectionChangedEvent event)
selectionChanged
in interface IDOMSelectionChangedListener
event
- DOMSelectionChangedEvent that contains source of new selction, that should be
some XMLEditor and DOMIntervalSet as selectionprotected void fireSelectionChanged()
fireSelectionChanged
in class org.eclipse.gef.ui.parts.AbstractEditPartViewer
public void select(org.eclipse.gef.EditPart editpart)
select
in interface org.eclipse.gef.EditPartViewer
select
in class org.eclipse.gef.ui.parts.AbstractEditPartViewer
editpart
- EditPart that is going to be selectedpublic void deselect(org.eclipse.gef.EditPart editpart)
deselect
in interface org.eclipse.gef.EditPartViewer
deselect
in class org.eclipse.gef.ui.parts.AbstractEditPartViewer
editpart
- EditPart that is going to be deselectedEditPart#setSelected(EditPart.SELECTED_NONE)
public sk.baka.ikslibs.interval.DOMIntervalSet getLocalSelection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |