org.eclipse.cdt.internal.ui.editor
Class CContentOutlinePage

java.lang.Object
  extended by org.eclipse.ui.part.Page
      extended by org.eclipse.cdt.internal.ui.editor.CContentOutlinePage
All Implemented Interfaces:
org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.jface.viewers.ISelectionProvider, org.eclipse.ui.part.IPage, org.eclipse.ui.part.IPageBookViewPage, org.eclipse.ui.views.contentoutline.IContentOutlinePage

public class CContentOutlinePage
extends org.eclipse.ui.part.Page
implements org.eclipse.ui.views.contentoutline.IContentOutlinePage, org.eclipse.jface.viewers.ISelectionChangedListener


Nested Class Summary
 class CContentOutlinePage.IncludeGroupingAction
           
 class CContentOutlinePage.ToggleLinkingAction
          This action toggles whether this C Outline page links its selection to the active editor.
 
Constructor Summary
CContentOutlinePage(CEditor editor)
           
CContentOutlinePage(java.lang.String contextMenuID, CEditor editor)
           
 
Method Summary
 void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
           
 void contentUpdated()
          Called by the editor to signal that the content has updated.
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
 org.eclipse.swt.widgets.Control getControl()
           
 CEditor getEditor()
          Provide access to the CEditor corresponding to this CContentOutlinePage.
 org.eclipse.cdt.core.model.ICElement getRoot()
           
 org.eclipse.jface.viewers.ISelection getSelection()
           
 boolean isLinkingEnabled()
           
 void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
           
 void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
           
 void setFocus()
          Sets focus to a part in the page.
 void setInput(org.eclipse.cdt.core.model.ITranslationUnit unit)
          Set the current input to the content provider.
 void setSelection(org.eclipse.jface.viewers.ISelection selection)
           
 void synchronizeSelectionWithEditor()
          Sets the selected element to the one at the current cursor position in the editor.
 
Methods inherited from class org.eclipse.ui.part.Page
getSite, init, 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
setActionBars
 

Constructor Detail

CContentOutlinePage

public CContentOutlinePage(CEditor editor)

CContentOutlinePage

public CContentOutlinePage(java.lang.String contextMenuID,
                           CEditor editor)
Method Detail

isLinkingEnabled

public boolean isLinkingEnabled()

getRoot

public org.eclipse.cdt.core.model.ICElement getRoot()

getEditor

public CEditor getEditor()
Provide access to the CEditor corresponding to this CContentOutlinePage.


contentUpdated

public void contentUpdated()
Called by the editor to signal that the content has updated.


synchronizeSelectionWithEditor

public void synchronizeSelectionWithEditor()
Sets the selected element to the one at the current cursor position in the editor.


createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createControl in interface org.eclipse.ui.part.IPage
Specified by:
createControl in class org.eclipse.ui.part.Page

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.part.IPage
Overrides:
dispose in class org.eclipse.ui.part.Page

addSelectionChangedListener

public void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
Specified by:
addSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvider

getControl

public org.eclipse.swt.widgets.Control getControl()
Specified by:
getControl in interface org.eclipse.ui.part.IPage
Specified by:
getControl in class org.eclipse.ui.part.Page

getSelection

public org.eclipse.jface.viewers.ISelection getSelection()
Specified by:
getSelection in interface org.eclipse.jface.viewers.ISelectionProvider

removeSelectionChangedListener

public void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
Specified by:
removeSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvider

selectionChanged

public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
Specified by:
selectionChanged in interface org.eclipse.jface.viewers.ISelectionChangedListener

setFocus

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

Specified by:
setFocus in interface org.eclipse.ui.part.IPage
Specified by:
setFocus in class org.eclipse.ui.part.Page

setSelection

public void setSelection(org.eclipse.jface.viewers.ISelection selection)
Specified by:
setSelection in interface org.eclipse.jface.viewers.ISelectionProvider

setInput

public void setInput(org.eclipse.cdt.core.model.ITranslationUnit unit)
Set the current input to the content provider.

Parameters:
unit -