|
||||||||||
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 editorSite)
Contructor. |
Method Summary | |
---|---|
void |
addSelectionChangedListener(IDOMSelectionChangedListener listener)
Adds a listener for selection changes in this selection provider. |
void |
addSelectionChangedListener(ISelectionChangedListener listener)
|
protected IStructuredSelection |
convertDOMSelectionToStructuredSelection(DOMIntervalSet domSelection)
|
void |
createControl(Composite parent)
Set ups outline view. |
protected TreeViewer |
createTreeViewer(Composite parent)
Creates and set ups reeViewer on composite. |
void |
dispose()
|
protected void |
fireSelectionChangeEvent(DOMIntervalSet xmlSelection)
Fires event when selection in page changed. |
Object |
getAdapter(Class adapter)
|
XMLAccessContentProvider |
getContentProvider()
|
Control |
getControl()
|
DOMIntervalSet |
getDOMSelection()
Returns copy of the current selection of provider. |
protected sk.uniba.euromath.plugin.views.outline.OutlineItemsLabelProvider |
getLabelProvider()
|
protected Node |
getRoot()
Returns XML node which will be the root of the outline tree. |
ISelection |
getSelection()
This method is only here because of contract - is realy not needed. |
TreeViewer |
getViewer()
|
XMLAccess |
getXMLAccess()
|
void |
handleDocumentTransformation(XMLAccess newData)
Handles when document has been transformed. |
void |
makeContributions(IMenuManager menuManager,
IToolBarManager toolBarManager,
IStatusLineManager statusLineManager)
|
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)
EditorSite's selection change event handling. |
void |
selectionChanged(SelectionChangedEvent event)
Handles selection changes in viewer. |
void |
setContentProvider(XMLAccessContentProvider contentProvider)
Associates with Outline content provider. |
void |
setFocus()
|
protected void |
setLabelProvider(sk.uniba.euromath.plugin.views.outline.OutlineItemsLabelProvider labelProvider)
Associates with Outline label provider. |
void |
setSelection(DOMIntervalSet domSelection)
Routs information about this new IXMLSelection to SelectionListeners and to TreeViewer |
void |
setSelection(ISelection selection)
This method is only here because of contract - is realy not needed. |
void |
setShowTransformed(boolean showTrn)
|
protected void |
startSelectionListening()
Starts listening to selection change events. |
protected void |
stopSelectionListening()
Stops listening to selection change events. |
Methods inherited from class org.eclipse.ui.part.Page |
---|
getSite, init, 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 |
---|
setActionBars |
Field Detail |
---|
protected XMLOutlineActionContributor actionContributor
Constructor Detail |
---|
public XMLOutlinePage(EditorSite editorSite)
editorSite
- associated editor siteMethod Detail |
---|
public void createControl(Composite parent)
createControl
in interface IPage
createControl
in class Page
public void makeContributions(IMenuManager menuManager, IToolBarManager toolBarManager, IStatusLineManager statusLineManager)
makeContributions
in class Page
public void dispose()
dispose
in interface IPage
dispose
in class Page
protected Node getRoot()
protected TreeViewer createTreeViewer(Composite parent)
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)
newData
- new document accesspublic void refreshViewerData(Node topNode)
public void setFocus()
setFocus
in interface IPage
setFocus
in class Page
public DOMIntervalSet getDOMSelection()
IDOMSelectionProvider
getDOMSelection
in interface IDOMSelectionProvider
public ISelection getSelection()
getSelection
in interface ISelectionProvider
public void addSelectionChangedListener(ISelectionChangedListener listener)
addSelectionChangedListener
in interface ISelectionProvider
public void addSelectionChangedListener(IDOMSelectionChangedListener listener)
IDOMSelectionProvider
addSelectionChangedListener
in interface IDOMSelectionProvider
listener
- a DOM selection changed listenerpublic void removeSelectionChangedListener(IDOMSelectionChangedListener listener)
IDOMSelectionProvider
removeSelectionChangedListener
in interface IDOMSelectionProvider
listener
- a DOM selection changed listenerpublic void removeSelectionChangedListener(ISelectionChangedListener listener)
removeSelectionChangedListener
in interface ISelectionProvider
public void setSelection(DOMIntervalSet domSelection)
setSelection
in interface IDOMSelectionProvider
selection
- IXMLSelection to setpublic void setSelection(ISelection selection)
setSelection
in interface ISelectionProvider
public void selectionChanged(DOMSelectionChangedEvent event)
selectionChanged
in interface IDOMSelectionChangedListener
event
- event object describing the changeprotected IStructuredSelection convertDOMSelectionToStructuredSelection(DOMIntervalSet domSelection)
protected void stopSelectionListening()
protected void startSelectionListening()
protected void fireSelectionChangeEvent(DOMIntervalSet xmlSelection)
xmlSelection
- new selection to fire in eventpublic void selectionChanged(SelectionChangedEvent event)
selectionChanged
in interface ISelectionChangedListener
public void setShowTransformed(boolean showTrn)
public TreeViewer getViewer()
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |