Package org.apache.uima.caseditor.editor
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
Modifier and TypeFieldDescriptionprotected org.eclipse.ui.part.PageBook
The book.protected org.eclipse.ui.part.IPageBookViewPage
The cas view page. -
Constructor Summary
ModifierConstructorDescriptionprotected
CasEditorViewPage
(String notAvailableMessage) Instantiates a new cas editor view page. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSelectionChangedListener
(org.eclipse.jface.viewers.ISelectionChangedListener listener) void
createControl
(org.eclipse.swt.widgets.Composite parent) void
dispose()
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
setFocus()
void
setSelection
(org.eclipse.jface.viewers.ISelection selection) Methods inherited from class org.eclipse.ui.part.Page
getSite, init, makeContributions, setActionBars
-
Field Details
-
book
protected org.eclipse.ui.part.PageBook bookThe book. -
casViewPage
protected org.eclipse.ui.part.IPageBookViewPage casViewPageThe cas view page.
-
-
Constructor Details
-
CasEditorViewPage
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 interfaceorg.eclipse.jface.viewers.ISelectionProvider
-
removeSelectionChangedListener
public void removeSelectionChangedListener(org.eclipse.jface.viewers.ISelectionChangedListener listener) - Specified by:
removeSelectionChangedListener
in interfaceorg.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 interfaceorg.eclipse.jface.viewers.ISelectionProvider
-
setSelection
public void setSelection(org.eclipse.jface.viewers.ISelection selection) - Specified by:
setSelection
in interfaceorg.eclipse.jface.viewers.ISelectionProvider
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent) - Specified by:
createControl
in interfaceorg.eclipse.ui.part.IPage
- Specified by:
createControl
in classorg.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 interfaceorg.eclipse.ui.part.IPage
- Specified by:
getControl
in classorg.eclipse.ui.part.Page
-
setFocus
public void setFocus()- Specified by:
setFocus
in interfaceorg.eclipse.ui.part.IPage
- Specified by:
setFocus
in classorg.eclipse.ui.part.Page
-
dispose
public void dispose()- Specified by:
dispose
in interfaceorg.eclipse.ui.part.IPage
- Overrides:
dispose
in classorg.eclipse.ui.part.Page
-