Class CasEditorViewPage

java.lang.Object
org.eclipse.ui.part.Page
org.apache.uima.caseditor.editor.CasEditorViewPage
All Implemented Interfaces:
org.eclipse.jface.viewers.ISelectionProvider, org.eclipse.ui.part.IPage, org.eclipse.ui.part.IPageBookViewPage
Direct Known Subclasses:
OutlinePageBook

public class CasEditorViewPage extends org.eclipse.ui.part.Page implements org.eclipse.jface.viewers.ISelectionProvider
The Class CasEditorViewPage.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.eclipse.ui.part.PageBook
    The book.
    protected org.eclipse.ui.part.IPageBookViewPage
    The cas view page.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CasEditorViewPage(String notAvailableMessage)
    Instantiates a new cas editor view page.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
     
    void
    createControl(org.eclipse.swt.widgets.Composite parent)
     
    void
     
    org.eclipse.swt.widgets.Control
     
    org.eclipse.jface.viewers.ISelection
     
    protected void
    initializeAndShowPage(org.eclipse.ui.part.IPageBookViewPage page)
    Creates and shows the page, if page is null the not available message will be shown.
    void
    removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
     
    void
    selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
    Selection changed.
    void
    setCASViewPage(org.eclipse.ui.part.IPageBookViewPage page)
    Sets the CAS view page.
    void
     
    void
    setSelection(org.eclipse.jface.viewers.ISelection selection)
     

    Methods inherited from class org.eclipse.ui.part.Page

    getSite, init, makeContributions, setActionBars

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • book

      protected org.eclipse.ui.part.PageBook book
      The book.
    • casViewPage

      protected org.eclipse.ui.part.IPageBookViewPage casViewPage
      The cas view page.
  • Constructor Details

    • CasEditorViewPage

      protected CasEditorViewPage(String notAvailableMessage)
      Instantiates a new cas editor view page.
      Parameters:
      notAvailableMessage - the not available message
  • Method Details

    • addSelectionChangedListener

      public void addSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener)
      Specified by:
      addSelectionChangedListener 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)
      Selection changed.
      Parameters:
      event - the event
    • getSelection

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

      public void setSelection(org.eclipse.jface.viewers.ISelection selection)
      Specified by:
      setSelection in interface org.eclipse.jface.viewers.ISelectionProvider
    • 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
    • initializeAndShowPage

      protected void initializeAndShowPage(org.eclipse.ui.part.IPageBookViewPage page)
      Creates and shows the page, if page is null the not available message will be shown.
      Parameters:
      page - the page
    • setCASViewPage

      public void setCASViewPage(org.eclipse.ui.part.IPageBookViewPage page)
      Sets the CAS view page.
      Parameters:
      page - the new CAS view page
    • 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
    • setFocus

      public void setFocus()
      Specified by:
      setFocus in interface org.eclipse.ui.part.IPage
      Specified by:
      setFocus 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