Class HeaderPage
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.forms.editor.FormPage
org.apache.uima.taeconfigurator.editors.ui.HeaderPage
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable,org.eclipse.core.runtime.IExecutableExtension,org.eclipse.ui.forms.editor.IFormPage,org.eclipse.ui.IEditorPart,org.eclipse.ui.ISaveablePart,org.eclipse.ui.IWorkbenchPart,org.eclipse.ui.IWorkbenchPart2,org.eclipse.ui.IWorkbenchPart3,org.eclipse.ui.part.IWorkbenchPartOrientation
- Direct Known Subclasses:
HeaderPageWithSash
public abstract class HeaderPage
extends org.eclipse.ui.forms.editor.FormPage
Common part of most pages.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MultiPageEditorThe editor.static final booleanThe Constant EQUAL_WIDTH.protected org.eclipse.swt.widgets.CompositeThe left panel.protected floatThe left panel percent.protected intThe left panel width.protected org.eclipse.swt.widgets.CompositeThe right panel.protected floatThe right panel percent.protected intThe right panel width.protected org.eclipse.swt.custom.SashFormThe sash form.protected intThe sash form width.protected org.eclipse.ui.forms.widgets.FormToolkitThe toolkit.Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUTFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionHeaderPage(MultiPageEditor formEditor, String pageTitle) Instantiates a new header page.HeaderPage(MultiPageEditor formEditor, String id, String keyPageTitle) Instantiates a new header page. -
Method Summary
Modifier and TypeMethodDescriptionprotected AnalysisEngineMetaDataGets the analysis engine meta data.protected booleanChecks if is ae descriptor.booleanChecks if is cas consumer descriptor.booleanChecks if is cas initializer descriptor.booleanChecks if is collection reader descriptor.booleanChecks if is ext res and bindings descriptor.booleanChecks if is index descriptor.booleanChecks if is local processing descriptor.protected booleanChecks if is primitive.booleanChecks if is type priority descriptor.booleanChecks if is type system descriptor.voidMark stale.protected voidmaybeInitialize(org.eclipse.ui.forms.IManagedForm managedForm) Maybe initialize.org.eclipse.swt.widgets.CompositenewCentered2SpanComposite(org.eclipse.swt.widgets.Composite parent) New centered 2 span composite.org.eclipse.swt.widgets.CompositenewComposite(org.eclipse.swt.widgets.Composite parent) New composite.org.eclipse.swt.widgets.CompositenewnColumnSection(org.eclipse.swt.widgets.Composite parent, int cols) Newn column section.org.eclipse.swt.widgets.Compositesetup1ColumnLayout(org.eclipse.ui.forms.IManagedForm managedForm) Setup 1 column layout.org.eclipse.swt.widgets.Compositesetup2ColumnGrid(org.eclipse.ui.forms.IManagedForm managedForm, boolean equalWidth) Setup 2 column grid.setup2ColumnLayout(org.eclipse.ui.forms.IManagedForm managedForm, boolean equalWidth) Sash impl.setup2ColumnLayout(org.eclipse.ui.forms.IManagedForm managedForm, int w1, int w2) Setup 2 column layout.setup2ColumnLayoutNotSash(org.eclipse.ui.forms.IManagedForm managedForm, boolean equalWidth) Setup 2 column layout not sash.setup2ColumnLayoutOn4Grid(org.eclipse.ui.forms.IManagedForm managedForm, boolean equalWidth) Setup 2 column layout on 4 grid.protected voidspacer(org.eclipse.swt.widgets.Composite container) Spacer.Methods inherited from class org.eclipse.ui.forms.editor.FormPage
canLeaveThePage, createFormContent, createPartControl, dispose, doSave, doSaveAs, getEditor, getId, getIndex, getManagedForm, getPartControl, getTitleImage, init, initialize, isActive, isDirty, isEditor, isSaveAsAllowed, selectReveal, setActive, setFocus, setIndexMethods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartNameMethods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.ui.IEditorPart
getEditorInput, getEditorSiteMethods inherited from interface org.eclipse.ui.ISaveablePart
isSaveOnCloseNeededMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleToolTip, removePropertyListener
-
Field Details
-
EQUAL_WIDTH
public static final boolean EQUAL_WIDTHThe Constant EQUAL_WIDTH.- See Also:
-
sashForm
protected org.eclipse.swt.custom.SashForm sashFormThe sash form. -
editor
The editor. -
toolkit
protected org.eclipse.ui.forms.widgets.FormToolkit toolkitThe toolkit. -
leftPanel
protected org.eclipse.swt.widgets.Composite leftPanelThe left panel. -
rightPanel
protected org.eclipse.swt.widgets.Composite rightPanelThe right panel. -
sashFormWidth
protected int sashFormWidthThe sash form width. -
leftPanelPercent
protected float leftPanelPercentThe left panel percent. -
rightPanelPercent
protected float rightPanelPercentThe right panel percent. -
leftPanelWidth
protected int leftPanelWidthThe left panel width. -
rightPanelWidth
protected int rightPanelWidthThe right panel width.
-
-
Constructor Details
-
HeaderPage
Instantiates a new header page.- Parameters:
formEditor- the form editorid- the idkeyPageTitle- the key page title
-
HeaderPage
Instantiates a new header page.- Parameters:
formEditor- the form editorpageTitle- the page title
-
-
Method Details
-
maybeInitialize
protected void maybeInitialize(org.eclipse.ui.forms.IManagedForm managedForm) Maybe initialize.- Parameters:
managedForm- the managed form
-
newComposite
public org.eclipse.swt.widgets.Composite newComposite(org.eclipse.swt.widgets.Composite parent) New composite.- Parameters:
parent- the parent- Returns:
- the composite
-
newCentered2SpanComposite
public org.eclipse.swt.widgets.Composite newCentered2SpanComposite(org.eclipse.swt.widgets.Composite parent) New centered 2 span composite.- Parameters:
parent- the parent- Returns:
- the composite
-
newnColumnSection
public org.eclipse.swt.widgets.Composite newnColumnSection(org.eclipse.swt.widgets.Composite parent, int cols) Newn column section.- Parameters:
parent- the parentcols- the cols- Returns:
- the composite
-
setup1ColumnLayout
public org.eclipse.swt.widgets.Composite setup1ColumnLayout(org.eclipse.ui.forms.IManagedForm managedForm) Setup 1 column layout.- Parameters:
managedForm- the managed form- Returns:
- the composite
-
setup2ColumnGrid
public org.eclipse.swt.widgets.Composite setup2ColumnGrid(org.eclipse.ui.forms.IManagedForm managedForm, boolean equalWidth) Setup 2 column grid.- Parameters:
managedForm- the managed formequalWidth- the equal width- Returns:
- the composite
-
setup2ColumnLayout
Setup 2 column layout.- Parameters:
managedForm- the managed formw1- the w 1w2- the w 2- Returns:
- the form 2 panel
-
setup2ColumnLayout
public Form2Panel setup2ColumnLayout(org.eclipse.ui.forms.IManagedForm managedForm, boolean equalWidth) Sash impl.- Parameters:
managedForm- the managed formequalWidth- the equal width- Returns:
- the form 2 panel
-
setup2ColumnLayoutNotSash
public Form2Panel setup2ColumnLayoutNotSash(org.eclipse.ui.forms.IManagedForm managedForm, boolean equalWidth) Setup 2 column layout not sash.- Parameters:
managedForm- the managed formequalWidth- the equal width- Returns:
- the form 2 panel
-
setup2ColumnLayoutOn4Grid
public Form2Panel setup2ColumnLayoutOn4Grid(org.eclipse.ui.forms.IManagedForm managedForm, boolean equalWidth) Setup 2 column layout on 4 grid.- Parameters:
managedForm- the managed formequalWidth- the equal width- Returns:
- the form 2 panel
-
spacer
protected void spacer(org.eclipse.swt.widgets.Composite container) Spacer.- Parameters:
container- the container
-
markStale
public void markStale()Mark stale. -
isPrimitive
protected boolean isPrimitive()Checks if is primitive.- Returns:
- true, if is primitive
-
isAeDescriptor
protected boolean isAeDescriptor()Checks if is ae descriptor.- Returns:
- true, if is ae descriptor
-
isTypeSystemDescriptor
public boolean isTypeSystemDescriptor()Checks if is type system descriptor.- Returns:
- true, if is type system descriptor
-
isIndexDescriptor
public boolean isIndexDescriptor()Checks if is index descriptor.- Returns:
- true, if is index descriptor
-
isTypePriorityDescriptor
public boolean isTypePriorityDescriptor()Checks if is type priority descriptor.- Returns:
- true, if is type priority descriptor
-
isExtResAndBindingsDescriptor
public boolean isExtResAndBindingsDescriptor()Checks if is ext res and bindings descriptor.- Returns:
- true, if is ext res and bindings descriptor
-
isCollectionReaderDescriptor
public boolean isCollectionReaderDescriptor()Checks if is collection reader descriptor.- Returns:
- true, if is collection reader descriptor
-
isCasInitializerDescriptor
public boolean isCasInitializerDescriptor()Checks if is cas initializer descriptor.- Returns:
- true, if is cas initializer descriptor
-
isCasConsumerDescriptor
public boolean isCasConsumerDescriptor()Checks if is cas consumer descriptor.- Returns:
- true, if is cas consumer descriptor
-
isLocalProcessingDescriptor
public boolean isLocalProcessingDescriptor()Checks if is local processing descriptor.- Returns:
- true, if is local processing descriptor
-
getAnalysisEngineMetaData
Gets the analysis engine meta data.- Returns:
- the analysis engine meta data
-