Eclipse GEF
3.3

org.eclipse.gef.ui.parts
Class ContentOutlinePage

java.lang.Object
  extended byorg.eclipse.ui.part.Page
      extended byorg.eclipse.gef.ui.parts.ContentOutlinePage

public class ContentOutlinePage
extends org.eclipse.ui.part.Page

A adapter for an outline page containing a single EditPartViewer. This class handles selection processing and widget focus. There is no need to manage viewer lifecycle. When dispose() is called in the superclass, the EditPartViewer will receive widget dispose callback, and perform any necessary cleanup. This class is just an adapter.

See Also:
Serialized Form

Constructor Summary
ContentOutlinePage(EditPartViewer viewer)
          Constructs a ContentOutlinePage for the given viewer.
 
Method Summary
 void addSelectionChangedListener(ISelectionChangedListener listener)
           
 void createControl(Composite parent)
          Forwards the createControl request to the editpartviewer.
 Control getControl()
           
 ISelection getSelection()
          Forwards selection request to the viewer.
protected  EditPartViewer getViewer()
          Returns the EditPartViewer
 void removeSelectionChangedListener(ISelectionChangedListener listener)
           
 void setFocus()
          Sets focus to a part in the page.
 void setSelection(ISelection selection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentOutlinePage

public ContentOutlinePage(EditPartViewer viewer)
Constructs a ContentOutlinePage for the given viewer.

Parameters:
viewer - the viewer
Method Detail

addSelectionChangedListener

public void addSelectionChangedListener(ISelectionChangedListener listener)
See Also:
ISelectionProvider#addSelectionChangedListener(ISelectionChangedListener)

createControl

public void createControl(Composite parent)
Forwards the createControl request to the editpartviewer.

See Also:
org.eclipse.ui.part.IPage#createControl(org.eclipse.swt.widgets.Composite)

getControl

public Control getControl()
See Also:
org.eclipse.ui.part.IPage#getControl()

getSelection

public ISelection getSelection()
Forwards selection request to the viewer.

See Also:
org.eclipse.jface.viewers.ISelectionProvider#getSelection()

getViewer

protected EditPartViewer getViewer()
Returns the EditPartViewer

Returns:
the viewer

removeSelectionChangedListener

public void removeSelectionChangedListener(ISelectionChangedListener listener)
See Also:
ISelectionProvider#removeSelectionChangedListener(ISelectionChangedListener)

setFocus

public void setFocus()
Sets focus to a part in the page.


setSelection

public void setSelection(ISelection selection)
See Also:
ISelectionProvider#setSelection(org.eclipse.jface.viewers.ISelection)

Eclipse GEF
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.