Class TypeImportSection
java.lang.Object
org.eclipse.ui.forms.AbstractFormPart
org.eclipse.ui.forms.SectionPart
org.apache.uima.taeconfigurator.editors.ui.AbstractSection
org.apache.uima.taeconfigurator.editors.ui.ImportSection
org.apache.uima.taeconfigurator.editors.ui.TypeImportSection
- All Implemented Interfaces:
StandardStrings,org.eclipse.swt.widgets.Listener,org.eclipse.ui.forms.IFormPart
The Class TypeImportSection.
-
Field Summary
Fields inherited from class org.apache.uima.taeconfigurator.editors.ui.ImportSection
addButton, bDisableToolTipHelp, lastTableHoverItem, lLastTableHoverMillis, sLastTableHoverHelp, TABLE_HOVER_REQUERY_TIMEFields inherited from class org.apache.uima.taeconfigurator.editors.ui.AbstractSection
capabilityArray0, configurationGroup0, configurationGroupArray0, configurationParameter0, configurationParameterArray0, editor, ENABLED, EQUAL_WIDTH, externalResourceBinding0, externalResourceDescription0, featureDescriptionArray0, fsIndexDescription0, HEADER_VISIBLE, HORIZONTAL_BUTTONS, IMPORTABLE_PART_CONTEXT, initialFormWidth, LINES_VISIBLE, nameValuePairArray0, NO_MIN_HEIGHT, NOT_SELECTED, NOTHING_SELECTED, PLUGIN_ID, SELECTED, sofaMapping0, stringArray0, toolkit, treeItemArray0, typeDescription0, typePriorityList0, valueChanged, VERTICAL_BUTTONS, WIDTH_NOT_SPECIFIEDFields inherited from interface org.apache.uima.taeconfigurator.StandardStrings
S_, S_ADD, S_DESCRIPTION, S_DOWN, S_DOWN_TIP, S_EDIT, S_EDIT_TIP, S_EXPORT, S_EXPORT_TIP, S_REMOVE, S_REMOVE_TIP, S_UP, S_UP_TIP -
Constructor Summary
ConstructorsConstructorDescriptionTypeImportSection(MultiPageEditor editor, org.eclipse.swt.widgets.Composite parent) Instantiates a new type import section. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidClear model base value.protected voidAt this point, the basic type system description is updated.protected StringgetDescriptionFromImport(String source) Gets the description from import.protected org.apache.uima.resource.metadata.Import[]Gets the model import array.protected booleanChecks if is appropriate.protected booleanisValidImport(String title, String msg) Checks if is valid import.protected voidsetModelImportArray(org.apache.uima.resource.metadata.Import[] imports) Sets the model import array.Methods inherited from class org.apache.uima.taeconfigurator.editors.ui.ImportSection
addImports, enable, exportImportablePart, handleEvent, handleRemove, initialize, refreshMethods inherited from class org.apache.uima.taeconfigurator.editors.ui.AbstractSection
addCapabilitySet, addListenerForPastableWidget, convertNull, copyTableItem, copyTreeItem, createByNameImport, createImport, createLocationImport, enableBorders, enableCtrl, finishAggregateChangeAction, formatName, getAnalysisEngineMetaData, getAvailableTypeNames, getCapabilities, getCapabilities, getCapabilitySofaNames, getCapabilitySofaNames, getConfigurationParameterDeclarations, getDelegateAnalysisEngineSpecifiersWithImports, getDescriptionForDescriptor, getExternalResourceBindings, getExternalResourceDependencies, getExternalResources, getFeature, getFlowControllerDeclaration, getFsIndexCollection, getFsIndexDescriptionFromTableTreeItem, getIndex, getIndex, getItemIndex, getMergedTypeSystemDescription, getMetaDataFromDescription, getNameSpace, getOperationalProperties, getPreviousSelection, getResourceManagerConfiguration, getShortFeatureName, getShortName, getSofaMappings, getSofaMappings, getToolkit, getTypeFromFullFeatureName, getTypeOrFeature, getTypePriorities, getTypeSystemDescription, handleDefaultIndexKind, isAeDescriptor, isAggregate, isArrayOrListType, isCasConsumerDescriptor, isCasInitializerDescriptor, isCollectionReaderDescriptor, isExtResAndBindingsDescriptor, isFlowControllerDescriptor, isFSArrayOrListType, isIndexableRange, isIndexDescriptor, isJmsDescriptor, isLocalProcessingDescriptor, isParmGroup, isPrimitive, isTypePriorityDescriptor, isTypeSystemDescriptor, isValidAe, isValidAggregateChange, markRestOfPageStale, markStale, markStaleIfDifferent, maybeSetSelection, maybeShortenFileName, multiLineFix, new2ColumnComposite, new3ColumnComposite, new4ColumnComposite, newButtonContainer, newButtonContainer, newCComboWithTip, newCheckBox, newComposite, newDescriptionTextBox, newLabeledCComboWithTip, newLabeledTextField, newLabeledTextField, newLabelWithData, newLabelWithTip, newLabelWithTip, newNcolumnComposite, newPushButton, newPushButton, newPushButton, newRadioButton, newTable, newTable, newTable, newTableColumn, newTableColumn, newTableColumn, newTableColumn, newTextWithTip, newTextWithTip, newTree, newTree, newTreeColumn, newTreeColumn, newTreeColumn, newTreeColumn, newUnUpdatableTextWithTip, packTable, packTree, parseDescriptor, parseDescriptor, parseToFitInToolTips, produceUniqueComponentKey, readImport, removeChildren, requestPopUpOverImport, revertMsg, revertOrContinue, revertTypeSystem, setButtonSelection, setFileDirty, setFlowControllerDeclaration, setMargins, setSelectionOneUp, setToolTipText, setupToPrintFile, setValueChanged, setValueChangedBoolean, setValueChangedCapitalBoolean, setValueChangedInt, setValueChangedKeys, setVnsHostAndPort, setVnsHostAndPort, showExceptionReadingImportedDescriptor, spacer, stringArrayAdd, stringArrayRemove, swapIndexKeys, swapTableItems, swapTreeItems, typeOrFeatureArrayAdd, typeOrFeatureArrayRemove, typeOrFeatureArrayRemoveMethods inherited from class org.eclipse.ui.forms.SectionPart
expansionStateChanged, expansionStateChanging, getSection, hookListeners, setFocusMethods inherited from class org.eclipse.ui.forms.AbstractFormPart
commit, dispose, getManagedForm, isDirty, isStale, markDirty, markStale, setFormInput
-
Constructor Details
-
TypeImportSection
Instantiates a new type import section.- Parameters:
editor- the editorparent- the parent
-
-
Method Details
-
isAppropriate
protected boolean isAppropriate()Description copied from class:ImportSectionChecks if is appropriate.- Specified by:
isAppropriatein classImportSection- Returns:
- true, if is appropriate
-
getDescriptionFromImport
protected String getDescriptionFromImport(String source) throws org.apache.uima.util.InvalidXMLException, IOException Description copied from class:ImportSectionGets the description from import.- Specified by:
getDescriptionFromImportin classImportSection- Parameters:
source- the source- Returns:
- the description from import
- Throws:
org.apache.uima.util.InvalidXMLException- the invalid XML exceptionIOException- Signals that an I/O exception has occurred.
-
getModelImportArray
protected org.apache.uima.resource.metadata.Import[] getModelImportArray()Description copied from class:ImportSectionGets the model import array.- Specified by:
getModelImportArrayin classImportSection- Returns:
- the model import array
-
setModelImportArray
protected void setModelImportArray(org.apache.uima.resource.metadata.Import[] imports) Description copied from class:ImportSectionSets the model import array.- Specified by:
setModelImportArrayin classImportSection- Parameters:
imports- the new model import array
-
clearModelBaseValue
protected void clearModelBaseValue()Description copied from class:ImportSectionClear model base value.- Specified by:
clearModelBaseValuein classImportSection
-
isValidImport
Description copied from class:ImportSectionChecks if is valid import.- Specified by:
isValidImportin classImportSection- Parameters:
title- the titlemsg- the message- Returns:
- true, if is valid import
-
finishImportChangeAction
protected void finishImportChangeAction()At this point, the basic type system description is updated. and validated. Validation has updated the merged type system description, and updated the CAS.- Specified by:
finishImportChangeActionin classImportSection
-