|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ui.part.Page sk.uniba.euromath.plugin.views.outline.XMLOutlinePage
public class XMLOutlinePage
Field Summary | |
---|---|
protected XMLOutlineActionContributor |
actionContributor
Outline action contributor. |
Constructor Summary | |
---|---|
XMLOutlinePage(EditorSite site)
|
Method Summary | |
---|---|
void |
addSelectionChangedListener(IDOMSelectionChangedListener listener)
Adds a listener for selection changes in this selection provider. |
void |
addSelectionChangedListener(ISelectionChangedListener listener)
|
protected IStructuredSelection |
convertIXMLSelectionToIStructureSelection(sk.baka.ikslibs.interval.DOMIntervalSet xmlSelection)
|
void |
createControl(Composite parent)
|
protected TreeViewer |
createTreeViewer(Composite parent)
|
protected void |
fireSelectionChangeEvent(sk.baka.ikslibs.interval.DOMIntervalSet xmlSelection)
|
XMLOutlineActionContributor |
getActionContributor()
|
Object |
getAdapter(Class adapter)
|
XMLAccessContentProvider |
getContentProvider()
|
Control |
getControl()
|
sk.baka.ikslibs.interval.DOMIntervalSet |
getDOMSelection()
Returns copy of the current selection of provider. |
protected sk.uniba.euromath.plugin.views.outline.OutlineItemsLabelProvider |
getLabelProvider()
|
protected Node |
getRoot()
Returns a XML node which will be the root of the outline tree. |
ISelection |
getSelection()
|
TreeViewer |
getViewer()
|
XMLAccess |
getXMLAccess()
|
protected IGeneralListener |
getXmlAccessChangeHandler()
|
void |
handleDocumentTransformation(XMLAccess newData)
|
protected boolean |
isShowingTransformed()
|
protected void |
prepareStatusLineManager(IStatusLineManager manager)
|
void |
refresh()
|
void |
refreshViewerData(Node topNode)
|
void |
removeSelectionChangedListener(IDOMSelectionChangedListener listener)
Removes the given selection change listener from this selection provider. |
void |
removeSelectionChangedListener(ISelectionChangedListener listener)
|
void |
selectionChanged(DOMSelectionChangedEvent event)
This should be called from TreeViewer or from EditorSite Selection in the Event can be IStructureSelection or IXMLSelection depending on even source. |
void |
selectionChanged(SelectionChangedEvent event)
|
void |
setActionContributor(XMLOutlineActionContributor actionContributor)
|
void |
setContentProvider(XMLAccessContentProvider contentProvider)
|
void |
setFocus()
|
protected void |
setLabelProvider(sk.uniba.euromath.plugin.views.outline.OutlineItemsLabelProvider labelProvider)
|
void |
setSelection(sk.baka.ikslibs.interval.DOMIntervalSet selection)
Routs information about this new IXMLSelection to SelectionListeners and to TreeViewer |
void |
setSelection(ISelection selection)
|
protected void |
setShowingTransformed(boolean showingTransformed)
|
void |
setShowTransformed(boolean showTrn)
|
protected void |
setStatusLineManager(StatusLineUpdateManager statusLineManager)
|
void |
setViewer(TreeViewer viewer)
|
protected sk.baka.ikslibs.interval.DOMIntervalSet |
synchronizeViewerSelection(IStructuredSelection sSel,
sk.baka.ikslibs.interval.DOMIntervalSet xmlSelection)
Makes IDs from IStructureSelection and IDs from IXMLSelection. |
Methods inherited from class org.eclipse.ui.part.Page |
---|
dispose, getSite, init, makeContributions, setActionBars |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.part.IPage |
---|
dispose, setActionBars |
Field Detail |
---|
protected XMLOutlineActionContributor actionContributor
Constructor Detail |
---|
public XMLOutlinePage(EditorSite site)
Method Detail |
---|
public void createControl(Composite parent)
createControl
in interface IPage
createControl
in class Page
protected Node getRoot()
protected void prepareStatusLineManager(IStatusLineManager manager)
protected TreeViewer createTreeViewer(Composite parent)
public Object getAdapter(Class adapter)
getAdapter
in interface IAdaptable
public Control getControl()
getControl
in interface IPage
getControl
in class Page
public void handleDocumentTransformation(XMLAccess newData)
public void refreshViewerData(Node topNode)
public void refresh()
public void setFocus()
setFocus
in interface IPage
setFocus
in class Page
public sk.baka.ikslibs.interval.DOMIntervalSet getDOMSelection()
IDOMSelectionProvider
getDOMSelection
in interface IDOMSelectionProvider
public void addSelectionChangedListener(IDOMSelectionChangedListener listener)
IDOMSelectionProvider
addSelectionChangedListener
in interface IDOMSelectionProvider
listener
- a DOM selection changed listenerpublic void removeSelectionChangedListener(ISelectionChangedListener listener)
removeSelectionChangedListener
in interface ISelectionProvider
public void setSelection(sk.baka.ikslibs.interval.DOMIntervalSet selection)
setSelection
in interface IDOMSelectionProvider
selection
- IXMLSelection to setpublic void selectionChanged(DOMSelectionChangedEvent event)
selectionChanged
in interface IDOMSelectionChangedListener
event
- Event that contains Selectionprotected void fireSelectionChangeEvent(sk.baka.ikslibs.interval.DOMIntervalSet xmlSelection)
xmlSelection
- IXMLSelection to be routed to selectionListenersprotected sk.baka.ikslibs.interval.DOMIntervalSet synchronizeViewerSelection(IStructuredSelection sSel, sk.baka.ikslibs.interval.DOMIntervalSet xmlSelection)
sSel
- IStructureSelection from TreeViewerxmlSelection
- curent IXMLSelection, that will be updated
protected IStructuredSelection convertIXMLSelectionToIStructureSelection(sk.baka.ikslibs.interval.DOMIntervalSet xmlSelection)
public void setShowTransformed(boolean showTrn)
public TreeViewer getViewer()
public void setViewer(TreeViewer viewer)
viewer
- The viewer to set.public XMLOutlineActionContributor getActionContributor()
public void setActionContributor(XMLOutlineActionContributor actionContributor)
actionContributor
- The actionContributor to set.public XMLAccessContentProvider getContentProvider()
public void setContentProvider(XMLAccessContentProvider contentProvider)
contentProvider
- The contentProvider to set.public XMLAccess getXMLAccess()
protected sk.uniba.euromath.plugin.views.outline.OutlineItemsLabelProvider getLabelProvider()
protected void setLabelProvider(sk.uniba.euromath.plugin.views.outline.OutlineItemsLabelProvider labelProvider)
labelProvider
- The labelProvider to set.protected boolean isShowingTransformed()
protected void setShowingTransformed(boolean showingTransformed)
showingTransformed
- The showingTransformed to set.protected IGeneralListener getXmlAccessChangeHandler()
protected void setStatusLineManager(StatusLineUpdateManager statusLineManager)
statusLineManager
- The statusLineManager to set.public void addSelectionChangedListener(ISelectionChangedListener listener)
addSelectionChangedListener
in interface ISelectionProvider
public ISelection getSelection()
getSelection
in interface ISelectionProvider
public void setSelection(ISelection selection)
setSelection
in interface ISelectionProvider
public void selectionChanged(SelectionChangedEvent event)
selectionChanged
in interface ISelectionChangedListener
public void removeSelectionChangedListener(IDOMSelectionChangedListener listener)
IDOMSelectionProvider
removeSelectionChangedListener
in interface IDOMSelectionProvider
listener
- a DOM selection changed listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |