com.pnp.xfeature.editor
Class MetaModelEditorOutlinePage

java.lang.Object
  extended by Page
      extended by com.pnp.xfeature.editor.MetaModelEditorOutlinePage

public class MetaModelEditorOutlinePage
extends Page

This is a sample implementation of an outline page showing an overview figure and an tree outline of the main graphical viewer provided by the current active page of an multi page editor.

Author:
original implementation by Gunnar Wagenknecht, extended by Valerio, and later by Ondrej

Constructor Summary
MetaModelEditorOutlinePage(FeatureDiagramEditor editor)
          calls superclass implementation and assigns the editor to the outline page
 
Method Summary
 void addSelectionChangedListener(ISelectionChangedListener listener)
          Adds the selection listener.
 void createControl(Composite parent)
          Creates the oultine view control.
 void dispose()
          Disposes the outline view
 Control getControl()
          returns the pageBook
 EditDomain getEditDomain()
          Returns the current edit domain.
 FeatureDiagramEditor getMetaModelEditor()
          Returns the worklfow editor.
 java.lang.Object getOutlineContent()
          Returns the outlineContent.
 RootEditPart getOverviewContent()
          Returns the root edit part
 ISelection getSelection()
          Returns the selected items in the outline view.
 TreeViewer getTreeViewer()
          Returns the tree viewer.
 void initialize(EditorPart newPageTMP)
          Initializes this outline page from a given editor page.
 void removeSelectionChangedListener(ISelectionChangedListener listener)
          Removes the selection listener.
 void setEditDomain(EditDomain domain)
          Sets the edit domain.
 void setFocus()
          Sets focus on self.
 void setMetaModelEditor(FeatureDiagramEditor editor)
          Sets the worklfow editor.
 void setOutlineContent(java.lang.Object element)
          Sets the outlineContent.
 void setOverviewContent(RootEditPart part)
          Sets the root edit part.
 void setSelection(ISelection selection)
          Selects the items in the outline view.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaModelEditorOutlinePage

public MetaModelEditorOutlinePage(FeatureDiagramEditor editor)
calls superclass implementation and assigns the editor to the outline page

Method Detail

getControl

public Control getControl()
returns the pageBook

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

setEditDomain

public void setEditDomain(EditDomain domain)
Sets the edit domain.

Parameters:
domain -

getEditDomain

public EditDomain getEditDomain()
Returns the current edit domain.

Returns:
the edit domain

setFocus

public void setFocus()
Sets focus on self.

See Also:
org.eclipse.ui.part.IPage#setFocus()

setMetaModelEditor

public void setMetaModelEditor(FeatureDiagramEditor editor)
Sets the worklfow editor.

Parameters:
editor -

getMetaModelEditor

public FeatureDiagramEditor getMetaModelEditor()
Returns the worklfow editor.

Returns:
the worklfow editor

setOutlineContent

public void setOutlineContent(java.lang.Object element)
Sets the outlineContent.


getOutlineContent

public java.lang.Object getOutlineContent()
Returns the outlineContent.

Returns:
the outlineContent

setOverviewContent

public void setOverviewContent(RootEditPart part)
Sets the root edit part.

Parameters:
part -

getOverviewContent

public RootEditPart getOverviewContent()
Returns the root edit part

Returns:
the root edit part

setSelection

public void setSelection(ISelection selection)
Selects the items in the outline view.

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

getSelection

public ISelection getSelection()
Returns the selected items in the outline view.

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

getTreeViewer

public TreeViewer getTreeViewer()
Returns the tree viewer.

Returns:
the tree viewer

addSelectionChangedListener

public void addSelectionChangedListener(ISelectionChangedListener listener)
Adds the selection listener.

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

createControl

public void createControl(Composite parent)
Creates the oultine view control. It creates both the tree-like view and graphical thumbnail view and initialize both. It also assigns menu manager to the outline view.

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

dispose

public void dispose()
Disposes the outline view

See Also:
org.eclipse.ui.part.IPage#dispose()

initialize

public void initialize(EditorPart newPageTMP)
Initializes this outline page from a given editor page.


removeSelectionChangedListener

public void removeSelectionChangedListener(ISelectionChangedListener listener)
Removes the selection listener.

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


Copyright © 2004 - 2008 ETH Zurich and P&P Software GmbH, All Rights Reserved.