EGF Engine
Release 0.1.0

org.eclipse.egf.pattern.ui.internal.editor
Class PatternEditorContentOutlinePage

java.lang.Object
  extended by ContentOutlinePage
      extended by org.eclipse.egf.pattern.ui.internal.editor.PatternEditorContentOutlinePage
All Implemented Interfaces:
IPatternModificationListener

public class PatternEditorContentOutlinePage
extends ContentOutlinePage
implements IPatternModificationListener

Pattern editor content outline page.


Nested Class Summary
protected  class PatternEditorContentOutlinePage.OutlineContentProvider
          Pattern editor outline content provider.
protected  class PatternEditorContentOutlinePage.OutlineLabelProvider
          Pattern editor outline label provider.
protected  class PatternEditorContentOutlinePage.OutlineViewerSorter
          Pattern editor outline sorter.
 class PatternEditorContentOutlinePage.PatternDataNode
          Pattern data node.
protected  class PatternEditorContentOutlinePage.PatternMethodNode
          Pattern method node.
protected  class PatternEditorContentOutlinePage.PatternParameterNode
          Pattern parameter node.
protected  class PatternEditorContentOutlinePage.RootNode
          Root node.
 
Constructor Summary
PatternEditorContentOutlinePage(PatternHandler.PatternData patternData_p, boolean patternIsEditable_p)
          Constructor.
 
Method Summary
 void createControl(Composite parent_p)
           
 void dispose()
           
 void doubleClick(DoubleClickEvent event_p)
           
protected  void elementAdded(Object newElement_p)
          A new element has been added to the pattern, display it in outline page, if needed.
protected  void elementModified(Object element_p)
          Element renamed, refresh viewer.
protected  void elementRemoved(Object oldElement_p)
          An existing element has been removed from the pattern, remove it from outline page, if needed.
protected  PatternHandler.PatternData getPatternData()
          Get pattern data.
protected  PatternEditorContentOutlinePage.PatternDataNode getPatternDataNode()
          Get pattern data node.
 void notifyChanged(IPatternModificationNotification notification_p)
          Notify that a change to the pattern model has occurred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternEditorContentOutlinePage

public PatternEditorContentOutlinePage(PatternHandler.PatternData patternData_p,
                                       boolean patternIsEditable_p)
Constructor.

Parameters:
patternData_p -
patternIsEditable_p -
Method Detail

createControl

public void createControl(Composite parent_p)
See Also:
org.eclipse.ui.views.contentoutline.ContentOutlinePage#createControl(org.eclipse.swt.widgets.Composite)

dispose

public void dispose()
See Also:
org.eclipse.ui.part.Page#dispose()

doubleClick

public void doubleClick(DoubleClickEvent event_p)
See Also:
org.eclipse.jface.viewers.IDoubleClickListener#doubleClick(org.eclipse.jface.viewers.DoubleClickEvent)

getPatternData

protected PatternHandler.PatternData getPatternData()
Get pattern data.

Returns:

notifyChanged

public void notifyChanged(IPatternModificationNotification notification_p)
Description copied from interface: IPatternModificationListener
Notify that a change to the pattern model has occurred.

Specified by:
notifyChanged in interface IPatternModificationListener
Parameters:
notification_p - a description of the change.
See Also:
IPatternModificationListener.notifyChanged(org.eclipse.egf.pattern.ui.internal.editor.IPatternModificationNotification)

elementModified

protected void elementModified(Object element_p)
Element renamed, refresh viewer.

Parameters:
element_p -

elementAdded

protected void elementAdded(Object newElement_p)
A new element has been added to the pattern, display it in outline page, if needed.

Parameters:
newElement_p -

elementRemoved

protected void elementRemoved(Object oldElement_p)
An existing element has been removed from the pattern, remove it from outline page, if needed.

Parameters:
oldElement_p -

getPatternDataNode

protected PatternEditorContentOutlinePage.PatternDataNode getPatternDataNode()
Get pattern data node.

Returns:

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.