be.ac.vub.cocompose.eclipse
Class CoComposeOutlinePage

java.lang.Object
  extended byorg.eclipse.ui.part.Page
      extended byorg.eclipse.gef.ui.parts.ContentOutlinePage
          extended bybe.ac.vub.cocompose.eclipse.CoComposeOutlinePage
All Implemented Interfaces:
IAdaptable, IContentOutlinePage, IPage, IPageBookViewPage, ISelectionProvider

public class CoComposeOutlinePage
extends ContentOutlinePage
implements IAdaptable

Tree outline page for CoCompose elements.

Since:
0.2.0
Version:
0.2.0, 07/01/2003
Author:
Dennis Wagelaar

Field Summary
protected static int ID_OUTLINE
           
protected static int ID_OVERVIEW
           
 
Constructor Summary
CoComposeOutlinePage(EditPartViewer viewer, CoComposeEditor editor)
          Constructs a CoComposeOutlinePage
 
Method Summary
protected  void configureOutlineViewer()
          Configures the outline viewer.
 void createControl(Composite parent)
           
 void dispose()
           
 Object getAdapter(Class type)
           
 Control getControl()
           
protected  void hookOutlineViewer()
          Hooks the outline viewer into the page.
 void init(IPageSite pageSite)
           
protected  void initializeOutlineViewer()
          Initializes the outline viewer with contents.
protected  void initializeOverview()
          Initializes the overview.
protected  void showPage(int id)
          Show the page.
protected  void unhookOutlineViewer()
          Unhooks the outline viewer from the page.
 
Methods inherited from class org.eclipse.gef.ui.parts.ContentOutlinePage
addSelectionChangedListener, getSelection, getViewer, removeSelectionChangedListener, setFocus, setSelection
 
Methods inherited from class org.eclipse.ui.part.Page
getSite, 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
setActionBars
 

Field Detail

ID_OUTLINE

protected static final int ID_OUTLINE
See Also:
Constant Field Values

ID_OVERVIEW

protected static final int ID_OVERVIEW
See Also:
Constant Field Values
Constructor Detail

CoComposeOutlinePage

public CoComposeOutlinePage(EditPartViewer viewer,
                            CoComposeEditor editor)
Constructs a CoComposeOutlinePage

Parameters:
viewer -
Method Detail

init

public void init(IPageSite pageSite)
Specified by:
init in interface IPageBookViewPage
See Also:
IPageBookViewPage.init(org.eclipse.ui.part.IPageSite)

configureOutlineViewer

protected void configureOutlineViewer()
Configures the outline viewer.


createControl

public void createControl(Composite parent)
Specified by:
createControl in interface IPage
See Also:
IPage.createControl(org.eclipse.swt.widgets.Composite)

dispose

public void dispose()
Specified by:
dispose in interface IPage
See Also:
IPage.dispose()

getAdapter

public Object getAdapter(Class type)
Specified by:
getAdapter in interface IAdaptable
See Also:
IAdaptable.getAdapter(java.lang.Class)

getControl

public Control getControl()
Specified by:
getControl in interface IPage
See Also:
IPage.getControl()

hookOutlineViewer

protected void hookOutlineViewer()
Hooks the outline viewer into the page.


initializeOutlineViewer

protected void initializeOutlineViewer()
Initializes the outline viewer with contents.


initializeOverview

protected void initializeOverview()
Initializes the overview.


showPage

protected void showPage(int id)
Show the page.

Parameters:
id - ID_OUTLINE or ID_OVERVIEW.

unhookOutlineViewer

protected void unhookOutlineViewer()
Unhooks the outline viewer from the page.