com.bbn.swede.editor
Class OWLEditorContentOutlinePage

java.lang.Object
  extended byContentOutlinePage
      extended bycom.bbn.swede.editor.OWLEditorContentOutlinePage
All Implemented Interfaces:
IOASTChangeListener

public class OWLEditorContentOutlinePage
extends ContentOutlinePage
implements IOASTChangeListener

Provides controls that appear in the Outline View when an OWLEditor is active. It generates a tree control that directly represents the contents of the com.bbn.swede.core.dom.OAST for the active editor.

Author:
jlerner
See Also:
Serialized Form

Constructor Summary
OWLEditorContentOutlinePage(OWLEditor owlEditor, IOWLAbstractSyntaxTree tree)
          Creates a new OWLEditorContentOutlinePage to represent a specified OAST.
 
Method Summary
 void createControl(Composite parent)
           
 void oastChanged(OASTEvent event)
          This method is called automatically after the OAST is changed.
 void selectionChanged(SelectionChangedEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLEditorContentOutlinePage

public OWLEditorContentOutlinePage(OWLEditor owlEditor,
                                   IOWLAbstractSyntaxTree tree)
Creates a new OWLEditorContentOutlinePage to represent a specified OAST.

Parameters:
owlEditor - The editor displaying the document to be outlined
tree - The OAST to outline
Method Detail

createControl

public void createControl(Composite parent)

oastChanged

public void oastChanged(OASTEvent event)
Description copied from interface: IOASTChangeListener
This method is called automatically after the OAST is changed. When this is called, the nodes in event.getRemoved() are no longer in the tree, and the nodes in event.getInserted() have been placed in the tree at their proper positions.

Specified by:
oastChanged in interface IOASTChangeListener
Parameters:
event - Describes the change that was just made to the OAST.

selectionChanged

public void selectionChanged(SelectionChangedEvent event)


Copyright © 2004-2005 BBN Technologies. All Rights Reserved.