|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 site| Method Detail |
|---|
public void createControl(Composite parent)
createControl in interface IPagecreateControl in class Page
public void makeContributions(IMenuManager menuManager,
IToolBarManager toolBarManager,
IStatusLineManager statusLineManager)
makeContributions in class Pagepublic void dispose()
dispose in interface IPagedispose in class Pageprotected Node getRoot()
protected TreeViewer createTreeViewer(Composite parent)
parent -
public Object getAdapter(Class adapter)
getAdapter in interface IAdaptablepublic Control getControl()
getControl in interface IPagegetControl in class Pagepublic void handleDocumentTransformation(XMLAccess newData)
newData - new document accesspublic void refreshViewerData(Node topNode)
public void setFocus()
setFocus in interface IPagesetFocus in class Pagepublic DOMIntervalSet getDOMSelection()
IDOMSelectionProvider
getDOMSelection in interface IDOMSelectionProviderpublic ISelection getSelection()
getSelection in interface ISelectionProviderpublic void addSelectionChangedListener(ISelectionChangedListener listener)
addSelectionChangedListener in interface ISelectionProviderpublic void addSelectionChangedListener(IDOMSelectionChangedListener listener)
IDOMSelectionProvider
addSelectionChangedListener in interface IDOMSelectionProviderlistener - a DOM selection changed listenerpublic void removeSelectionChangedListener(IDOMSelectionChangedListener listener)
IDOMSelectionProvider
removeSelectionChangedListener in interface IDOMSelectionProviderlistener - a DOM selection changed listenerpublic void removeSelectionChangedListener(ISelectionChangedListener listener)
removeSelectionChangedListener in interface ISelectionProviderpublic void setSelection(DOMIntervalSet domSelection)
setSelection in interface IDOMSelectionProviderselection - IXMLSelection to setpublic void setSelection(ISelection selection)
setSelection in interface ISelectionProviderpublic void selectionChanged(DOMSelectionChangedEvent event)
selectionChanged in interface IDOMSelectionChangedListenerevent - 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 ISelectionChangedListenerpublic 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 | |||||||||