org.ocleditor.internal.ui.outline
Class OclContentOutlinePage

java.lang.Object
  extended byorg.eclipse.ui.part.Page
      extended byorg.eclipse.ui.views.contentoutline.ContentOutlinePage
          extended byorg.ocleditor.internal.ui.outline.OclContentOutlinePage
All Implemented Interfaces:
org.eclipse.ui.views.contentoutline.IContentOutlinePage, org.eclipse.ui.part.IPage, org.eclipse.ui.part.IPageBookViewPage, org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.jface.viewers.ISelectionProvider

public class OclContentOutlinePage
extends org.eclipse.ui.views.contentoutline.ContentOutlinePage

A content outline page which hierarchically structures the content of the OCL file in a tree view.

The tree view is structured by the OCL model (implements the Composite design pattern).


Constructor Summary
OclContentOutlinePage(org.eclipse.ui.texteditor.IDocumentProvider provider, org.eclipse.ui.texteditor.ITextEditor editor)
          Default constructor that creates a content outline page using the given provider and the given editor.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 IOclModel getOclModel()
           
 void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
           
 void setFocus()
          Passing the focus request to the viewer's control.
 void setInput(java.lang.Object input)
          Sets the input of the outline page
 void update()
          Updates the content outline page.
 
Methods inherited from class org.eclipse.ui.views.contentoutline.ContentOutlinePage
addSelectionChangedListener, getControl, getSelection, init, removeSelectionChangedListener, setSelection
 
Methods inherited from class org.eclipse.ui.part.Page
dispose, getSite, makeContributions, setActionBars
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.part.IPage
dispose, setActionBars
 

Constructor Detail

OclContentOutlinePage

public OclContentOutlinePage(org.eclipse.ui.texteditor.IDocumentProvider provider,
                             org.eclipse.ui.texteditor.ITextEditor editor)
Default constructor that creates a content outline page using the given provider and the given editor.

Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)

selectionChanged

public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)

setInput

public void setInput(java.lang.Object input)
Sets the input of the outline page

Parameters:
input - has to be an instance of IFileEditorInput.

setFocus

public void setFocus()
Passing the focus request to the viewer's control.


update

public void update()
Updates the content outline page.


getOclModel

public IOclModel getOclModel()
Returns:
the OCL model.