Class AbstractSection
java.lang.Object
org.eclipse.ui.forms.AbstractFormPart
org.eclipse.ui.forms.SectionPart
org.apache.uima.taeconfigurator.editors.ui.AbstractSection
- All Implemented Interfaces:
StandardStrings
,org.eclipse.swt.widgets.Listener
,org.eclipse.ui.forms.IFormPart
- Direct Known Subclasses:
AbstractImportablePartSection
,AbstractSectionParm
,AggregateSection
,CapabilitySection
,ExtnlResBindSection
,FlowSection
,GeneralSection
,ImportSection
,IndexSection
,MetaDataSection
,PrimitiveSection
,PriorityListSection
,ResourceDependencySection
,SofaMapSection
public abstract class AbstractSection
extends org.eclipse.ui.forms.SectionPart
implements org.eclipse.swt.widgets.Listener, StandardStrings
The Class AbstractSection.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Capability[]
The Constant capabilityArray0.static final ConfigurationGroup[]
The Constant configurationGroup0.static final ConfigurationGroup[]
The Constant configurationGroupArray0.static final ConfigurationParameter[]
The Constant configurationParameter0.static final ConfigurationParameter[]
The Constant configurationParameterArray0.The editor.static final boolean
The Constant ENABLED.static final boolean
The Constant EQUAL_WIDTH.static final ExternalResourceBinding[]
The Constant externalResourceBinding0.static final ExternalResourceDescription[]
The Constant externalResourceDescription0.static final FeatureDescription[]
The Constant featureDescriptionArray0.static final FsIndexDescription[]
The Constant fsIndexDescription0.static final int
The Constant HEADER_VISIBLE.static final int
The Constant HORIZONTAL_BUTTONS.static final String
The Constant IMPORTABLE_PART_CONTEXT.protected int
The initial form width.static final int
The Constant LINES_VISIBLE.static final NameValuePair[]
The Constant nameValuePairArray0.static final int
The Constant NO_MIN_HEIGHT.static final boolean
The Constant NOT_SELECTED.static final int
The Constant NOTHING_SELECTED.static final String
The Constant PLUGIN_ID.static final boolean
The Constant SELECTED.static final SofaMapping[]
The Constant sofaMapping0.static final String[]
The Constant stringArray0.protected org.eclipse.ui.forms.widgets.FormToolkit
The toolkit.static final org.eclipse.swt.widgets.TreeItem[]
The Constant treeItemArray0.static final TypeDescription[]
The Constant typeDescription0.static final TypePriorityList[]
The Constant typePriorityList0.protected boolean
The value changed.static final int
The Constant VERTICAL_BUTTONS.static final int
The Constant WIDTH_NOT_SPECIFIED.Fields 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
ConstructorDescriptionAbstractSection
(MultiPageEditor aEditor, org.eclipse.swt.widgets.Composite parent, String headerText, String description) Instantiates a new abstract section. -
Method Summary
Modifier and TypeMethodDescriptionprotected Capability
Adds the capability set.protected void
addListenerForPastableWidget
(org.eclipse.swt.widgets.Widget w) Adds the listener for pastable widget.static String
Convert null.static void
copyTableItem
(org.eclipse.swt.widgets.TableItem target, org.eclipse.swt.widgets.TableItem source) Copy table item.static void
copyTreeItem
(org.eclipse.swt.widgets.TreeItem target, org.eclipse.swt.widgets.TreeItem source) Copy table tree item.createByNameImport
(String fileName) Creates the by name import.createImport
(String fileName, boolean isByName) Creates the import.createLocationImport
(String location) Creates the location import.abstract void
enable()
Enable.void
enableBorders
(org.eclipse.swt.widgets.Composite composite) Enable borders.protected static void
enableCtrl
(org.eclipse.swt.widgets.Control c, boolean enabled) Enable ctrl.protected void
Finish aggregate change action.formatName
(String name) Format name.Gets the analysis engine meta data.String[]
getAvailableTypeNames
(Set excluded) Gets the available type names.Gets the capabilities.static Capability[]
Gets the capabilities.String[][]
Gets the capability sofa names.protected static Set[]
getCapabilitySofaNames
(ResourceCreationSpecifier rs, String componentKey) Gets the capability sofa names.Gets the configuration parameter declarations.Gets the delegate analysis engine specifiers with imports.protected String
getDescriptionForDescriptor
(String fileRef, ResourceSpecifier rs) Gets the description for descriptor.Gets the external resource bindings.Gets the external resource dependencies.Gets the external resources.getFeature
(TypeDescription td, String featureName) gets a feature description for a type, including supertypes.Gets the flow controller declaration.protected FsIndexCollection
Gets the fs index collection.static FsIndexDescription
getFsIndexDescriptionFromTableTreeItem
(org.eclipse.swt.widgets.TreeItem item) Gets the fs index description from table tree item.static int
getIndex
(org.eclipse.swt.widgets.TableItem item) Gets the index.static int
getIndex
(org.eclipse.swt.widgets.TreeItem item) Gets the index.protected int
getItemIndex
(org.eclipse.swt.widgets.TreeItem[] items, org.eclipse.swt.widgets.TreeItem item) Gets the item index.protected TypeSystemDescription
Gets the merged type system description.Get the metadata for a local or remote descriptor.static String
getNameSpace
(String name) Gets the name space.Gets the operational properties.protected org.eclipse.swt.widgets.TreeItem
getPreviousSelection
(org.eclipse.swt.widgets.TreeItem[] items, org.eclipse.swt.widgets.TreeItem nextItem) Gets the previous selection.Gets the resource manager configuration.static String
getShortFeatureName
(String name) Gets the short feature name.static String
getShortName
(String name) Gets the short name.Gets the sofa mappings.static SofaMapping[]
getSofaMappings
(MultiPageEditor pEditor) Gets the sofa mappings.org.eclipse.ui.forms.widgets.FormToolkit
Gets the toolkit.static String
Gets the type from full feature name.static TypeOrFeature
getTypeOrFeature
(TypeOrFeature[] a, String name) Gets the type or feature.protected TypePriorities
Gets the type priorities.protected TypeSystemDescription
Gets the type system description.static String
handleDefaultIndexKind
(String indexKind) Handle default index kind.void
initialize
(org.eclipse.ui.forms.IManagedForm form) boolean
Checks if is ae descriptor.boolean
Checks if is aggregate.static boolean
isArrayOrListType
(String type) Checks if is array or list type.boolean
Checks if is cas consumer descriptor.boolean
Checks if is cas initializer descriptor.boolean
Checks if is collection reader descriptor.boolean
Checks if is ext res and bindings descriptor.boolean
Checks if is flow controller descriptor.static boolean
isFSArrayOrListType
(String type) Checks if is FS array or list type.static boolean
isIndexableRange
(String rangeName) Checks if is indexable range.boolean
Checks if is index descriptor.protected boolean
isJmsDescriptor
(XMLizable inputDescription) Checks if is jms descriptor.boolean
Checks if is local processing descriptor.boolean
Checks if is parm group.boolean
Checks if is primitive.boolean
Checks if is type priority descriptor.boolean
Checks if is type system descriptor.protected boolean
Checks if is valid ae.protected boolean
Update the model while checking for validity If invalid - ask if want to continue or not.protected void
markRestOfPageStale
(org.eclipse.ui.forms.IManagedForm mform, AbstractSection section) Mark rest of page stale.void
markStale
(org.eclipse.ui.forms.IFormPart section) Mark stale.protected void
markStaleIfDifferent
(org.eclipse.ui.forms.IFormPart thisOne, org.eclipse.ui.forms.IFormPart otherOne) Mark stale if different.static void
maybeSetSelection
(org.eclipse.swt.widgets.Tree tt, int itemIndex) static String
maybeShortenFileName
(String filePathName) Maybe shorten file name.protected String
Multi line fix.org.eclipse.swt.widgets.Composite
new2ColumnComposite
(org.eclipse.swt.widgets.Composite parent) New 2 column composite.org.eclipse.swt.widgets.Composite
new3ColumnComposite
(org.eclipse.swt.widgets.Composite parent) New 3 column composite.org.eclipse.swt.widgets.Composite
new4ColumnComposite
(org.eclipse.swt.widgets.Composite parent) New 4 column composite.org.eclipse.swt.widgets.Composite
newButtonContainer
(org.eclipse.swt.widgets.Composite parent) New button container.org.eclipse.swt.widgets.Composite
newButtonContainer
(org.eclipse.swt.widgets.Composite parent, int style, int widthMin) New button container.protected org.eclipse.swt.custom.CCombo
newCComboWithTip
(org.eclipse.swt.widgets.Composite parent, String tip) New C combo with tip.org.eclipse.swt.widgets.Button
newCheckBox
(org.eclipse.swt.widgets.Composite parent, String label, String tip) New check box.org.eclipse.swt.widgets.Composite
newComposite
(org.eclipse.swt.widgets.Composite parent) New composite.protected org.eclipse.swt.widgets.Text
newDescriptionTextBox
(org.eclipse.swt.widgets.Composite parent, String tip) New description text box.protected org.eclipse.swt.custom.CCombo
newLabeledCComboWithTip
(org.eclipse.swt.widgets.Composite parent, String labelKey, String tip) New labeled C combo with tip.protected org.eclipse.swt.widgets.Text
newLabeledTextField
(org.eclipse.swt.widgets.Composite parent, String label, String tip) New labeled text field.protected org.eclipse.swt.widgets.Text
newLabeledTextField
(org.eclipse.swt.widgets.Composite parent, String labelKey, String textToolTip, int style) New labeled text field.org.eclipse.swt.widgets.Label
newLabelWithData
(org.eclipse.swt.widgets.Composite parent, String text) New label with data.org.eclipse.swt.widgets.Label
newLabelWithTip
(org.eclipse.swt.widgets.Composite parent, String text, String tip) New label with tip.org.eclipse.swt.widgets.Label
newLabelWithTip
(org.eclipse.swt.widgets.Composite parent, String text, String tip, int style) New label with tip.org.eclipse.swt.widgets.Composite
newNcolumnComposite
(org.eclipse.swt.widgets.Composite parent, int cols) New ncolumn composite.org.eclipse.swt.widgets.Button
newPushButton
(org.eclipse.swt.widgets.Composite parent, String label, String tip) add pushbutton to container, set enabled, add listener for it.org.eclipse.swt.widgets.Button
newPushButton
(org.eclipse.swt.widgets.Composite parent, String label, String tip, boolean enabled) Add a push button to a container, add a listener for it too.org.eclipse.swt.widgets.Button
newPushButton
(org.eclipse.swt.widgets.Composite parent, String label, String tip, boolean enabled, int style) New push button.org.eclipse.swt.widgets.Button
newRadioButton
(org.eclipse.swt.widgets.Composite parent, String label, String toolTip, boolean selected) New radio button.protected org.eclipse.swt.widgets.Table
newTable
(org.eclipse.swt.widgets.Composite parent) New table.protected org.eclipse.swt.widgets.Table
newTable
(org.eclipse.swt.widgets.Composite parent, int style, int minHeight) New table.protected org.eclipse.swt.widgets.Table
newTable
(org.eclipse.swt.widgets.Composite parent, int style, int minHeight, int flags) New table.protected org.eclipse.swt.widgets.TableColumn
newTableColumn
(org.eclipse.swt.widgets.Table table) New table column.protected org.eclipse.swt.widgets.TableColumn
newTableColumn
(org.eclipse.swt.widgets.Table container, int width) New table column.protected org.eclipse.swt.widgets.TableColumn
newTableColumn
(org.eclipse.swt.widgets.Table container, int width, int alignment, String header) New table column.protected org.eclipse.swt.widgets.TableColumn
newTableColumn
(org.eclipse.swt.widgets.Table container, String header) New table column.protected org.eclipse.swt.widgets.Text
newTextWithTip
(org.eclipse.swt.widgets.Composite parent, String text, int style, String tip) New text with tip.protected org.eclipse.swt.widgets.Text
newTextWithTip
(org.eclipse.swt.widgets.Composite parent, String initialTxt, String tip) New text with tip.protected org.eclipse.swt.widgets.Tree
newTree
(org.eclipse.swt.widgets.Composite parent) New tree.protected org.eclipse.swt.widgets.Tree
newTree
(org.eclipse.swt.widgets.Composite parent, int style) New tree.protected org.eclipse.swt.widgets.TreeColumn
newTreeColumn
(org.eclipse.swt.widgets.Tree p_tree) New tree column.protected org.eclipse.swt.widgets.TreeColumn
newTreeColumn
(org.eclipse.swt.widgets.Tree container, int width) New tree column.protected org.eclipse.swt.widgets.TreeColumn
newTreeColumn
(org.eclipse.swt.widgets.Tree container, int width, int alignment, String header) New tree column.protected org.eclipse.swt.widgets.TreeColumn
newTreeColumn
(org.eclipse.swt.widgets.Tree container, String header) New tree column.org.eclipse.swt.widgets.Label
newUnUpdatableTextWithTip
(org.eclipse.swt.widgets.Composite parent, String text, String tip) New un updatable text with tip.void
packTable
(org.eclipse.swt.widgets.Table table) Pack table.void
packTree
(org.eclipse.swt.widgets.Tree p_tree) Pack tree.static XMLizable
parseDescriptor
(XMLInputSource input) Parses the descriptor.static XMLizable
parseDescriptor
(XMLInputSource input, boolean preserveComments) Parses the descriptor.protected static String
parseToFitInToolTips
(String text) Parses the to fit in tool tips.protected String
produceUniqueComponentKey
(String fileName) Produce Unique key for a newly added descriptor file.protected XMLizable
readImport
(Import imp, String fileName, boolean isImportByName) Read import.protected void
removeChildren
(org.eclipse.swt.widgets.TreeItem item) Removes the children.protected void
requestPopUpOverImport
(Import importItem, org.eclipse.swt.widgets.Control control, org.eclipse.swt.widgets.Event event) Request pop up over import.protected void
Revert msg.static boolean
revertOrContinue
(String msg, String msgDetails) Revert or continue.protected void
Revert type system.protected static void
setButtonSelection
(org.eclipse.swt.widgets.Button c, boolean selected) Sets the button selection.protected void
Sets the file dirty.void
Sets the flow controller declaration.void
setMargins
(org.eclipse.swt.widgets.Composite composite, int height, int width) Sets the margins.static void
setSelectionOneUp
(org.eclipse.swt.widgets.Tree tt, org.eclipse.swt.widgets.TreeItem item) Set the selection one above this item, unless it's the top one already.static void
setToolTipText
(org.eclipse.swt.widgets.Control w, String text) Sets the tool tip text.protected PrintWriter
setupToPrintFile
(String filePath) Setup to print file.protected String
setValueChanged
(String newValue, String oldValue) Sets the value changed.protected boolean
setValueChangedBoolean
(boolean newValue, boolean oldValue) Sets the value changed boolean.protected Boolean
setValueChangedCapitalBoolean
(Boolean newValue, Boolean oldValue) Sets the value changed capital boolean.protected int
setValueChangedInt
(int newValue, int oldValue) Sets the value changed int.protected FsIndexKeyDescription[]
setValueChangedKeys
(FsIndexKeyDescription[] newKeys, FsIndexKeyDescription[] oldKeys) Sets the value changed keys.static void
setVnsHostAndPort
(Object descriptor) Sets the vns host and port.static void
setVnsHostAndPort
(String vnsHost, String vnsPort) Sets the vns host and port.protected void
Show exception reading imported descriptor.static void
spacer
(org.eclipse.swt.widgets.Composite container) Spacer.String[]
stringArrayAdd
(String[] a, String s) *********************************************************************************************** Augment arrays (make new array, add one item to it at end *********************************************************.String[]
stringArrayRemove
(String[] a, String s) String array remove.static void
swapIndexKeys
(org.eclipse.swt.widgets.TreeItem itemBelow, int newSelection) Swap index keys.static void
swapTableItems
(org.eclipse.swt.widgets.TableItem itemBelow, int newSelection) Swap table items.static void
swapTreeItems
(org.eclipse.swt.widgets.TreeItem itemBelow, int newSelection) Swap tree items.typeOrFeatureArrayAdd
(TypeOrFeature[] a, TypeOrFeature item) Type or feature array add.Type or feature array remove.typeOrFeatureArrayRemove
(TypeOrFeature[] a, TypeOrFeature item) Type or feature array remove.Methods inherited from class org.eclipse.ui.forms.SectionPart
expansionStateChanged, expansionStateChanging, getSection, hookListeners, setFocus
Methods inherited from class org.eclipse.ui.forms.AbstractFormPart
commit, dispose, getManagedForm, isDirty, isStale, markDirty, markStale, refresh, setFormInput
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.swt.widgets.Listener
handleEvent
-
Field Details
-
toolkit
protected org.eclipse.ui.forms.widgets.FormToolkit toolkitThe toolkit. -
editor
The editor. -
IMPORTABLE_PART_CONTEXT
The Constant IMPORTABLE_PART_CONTEXT.- See Also:
-
PLUGIN_ID
The Constant PLUGIN_ID.- See Also:
-
SELECTED
public static final boolean SELECTEDThe Constant SELECTED.- See Also:
-
NOT_SELECTED
public static final boolean NOT_SELECTEDThe Constant NOT_SELECTED.- See Also:
-
ENABLED
public static final boolean ENABLEDThe Constant ENABLED.- See Also:
-
EQUAL_WIDTH
public static final boolean EQUAL_WIDTHThe Constant EQUAL_WIDTH.- See Also:
-
treeItemArray0
public static final org.eclipse.swt.widgets.TreeItem[] treeItemArray0The Constant treeItemArray0. -
configurationGroup0
The Constant configurationGroup0. -
configurationParameter0
The Constant configurationParameter0. -
capabilityArray0
The Constant capabilityArray0. -
featureDescriptionArray0
The Constant featureDescriptionArray0. -
sofaMapping0
The Constant sofaMapping0. -
fsIndexDescription0
The Constant fsIndexDescription0. -
externalResourceBinding0
The Constant externalResourceBinding0. -
externalResourceDescription0
The Constant externalResourceDescription0. -
typeDescription0
The Constant typeDescription0. -
typePriorityList0
The Constant typePriorityList0. -
initialFormWidth
protected int initialFormWidthThe initial form width. -
VERTICAL_BUTTONS
public static final int VERTICAL_BUTTONSThe Constant VERTICAL_BUTTONS.- See Also:
-
HORIZONTAL_BUTTONS
public static final int HORIZONTAL_BUTTONSThe Constant HORIZONTAL_BUTTONS.- See Also:
-
NO_MIN_HEIGHT
public static final int NO_MIN_HEIGHTThe Constant NO_MIN_HEIGHT.- See Also:
-
NOTHING_SELECTED
public static final int NOTHING_SELECTEDThe Constant NOTHING_SELECTED.- See Also:
-
LINES_VISIBLE
public static final int LINES_VISIBLEThe Constant LINES_VISIBLE.- See Also:
-
HEADER_VISIBLE
public static final int HEADER_VISIBLEThe Constant HEADER_VISIBLE.- See Also:
-
WIDTH_NOT_SPECIFIED
public static final int WIDTH_NOT_SPECIFIEDThe Constant WIDTH_NOT_SPECIFIED.- See Also:
-
stringArray0
The Constant stringArray0. -
configurationParameterArray0
The Constant configurationParameterArray0. -
configurationGroupArray0
The Constant configurationGroupArray0. -
nameValuePairArray0
The Constant nameValuePairArray0. -
valueChanged
protected boolean valueChangedThe value changed.
-
-
Constructor Details
-
AbstractSection
public AbstractSection(MultiPageEditor aEditor, org.eclipse.swt.widgets.Composite parent, String headerText, String description) Instantiates a new abstract section.- Parameters:
aEditor
- the a editorparent
- the parentheaderText
- the header textdescription
- the description
-
-
Method Details
-
getToolkit
public org.eclipse.ui.forms.widgets.FormToolkit getToolkit()Gets the toolkit.- Returns:
- the toolkit
-
initialize
public void initialize(org.eclipse.ui.forms.IManagedForm form) - Specified by:
initialize
in interfaceorg.eclipse.ui.forms.IFormPart
- Overrides:
initialize
in classorg.eclipse.ui.forms.AbstractFormPart
-
enable
public abstract void enable()Enable. -
setFileDirty
protected void setFileDirty()Sets the file dirty. -
newComposite
public org.eclipse.swt.widgets.Composite newComposite(org.eclipse.swt.widgets.Composite parent) New composite.- Parameters:
parent
- the parent- Returns:
- the composite
-
new2ColumnComposite
public org.eclipse.swt.widgets.Composite new2ColumnComposite(org.eclipse.swt.widgets.Composite parent) New 2 column composite.- Parameters:
parent
- the parent- Returns:
- the composite
-
new3ColumnComposite
public org.eclipse.swt.widgets.Composite new3ColumnComposite(org.eclipse.swt.widgets.Composite parent) New 3 column composite.- Parameters:
parent
- the parent- Returns:
- the composite
-
new4ColumnComposite
public org.eclipse.swt.widgets.Composite new4ColumnComposite(org.eclipse.swt.widgets.Composite parent) New 4 column composite.- Parameters:
parent
- the parent- Returns:
- the composite
-
newNcolumnComposite
public org.eclipse.swt.widgets.Composite newNcolumnComposite(org.eclipse.swt.widgets.Composite parent, int cols) New ncolumn composite.- Parameters:
parent
- the parentcols
- the cols- Returns:
- the composite
-
setMargins
public void setMargins(org.eclipse.swt.widgets.Composite composite, int height, int width) Sets the margins.- Parameters:
composite
- the compositeheight
- the heightwidth
- the width
-
enableBorders
public void enableBorders(org.eclipse.swt.widgets.Composite composite) Enable borders.- Parameters:
composite
- the composite
-
newButtonContainer
public org.eclipse.swt.widgets.Composite newButtonContainer(org.eclipse.swt.widgets.Composite parent) New button container.- Parameters:
parent
- the parent- Returns:
- the composite
-
newButtonContainer
public org.eclipse.swt.widgets.Composite newButtonContainer(org.eclipse.swt.widgets.Composite parent, int style, int widthMin) New button container.- Parameters:
parent
- the parentstyle
- the stylewidthMin
- the width min- Returns:
- the composite
-
newLabeledTextField
protected org.eclipse.swt.widgets.Text newLabeledTextField(org.eclipse.swt.widgets.Composite parent, String label, String tip) New labeled text field.- Parameters:
parent
- the parentlabel
- the labeltip
- the tip- Returns:
- the text
-
newLabeledTextField
protected org.eclipse.swt.widgets.Text newLabeledTextField(org.eclipse.swt.widgets.Composite parent, String labelKey, String textToolTip, int style) New labeled text field.- Parameters:
parent
- the parentlabelKey
- the label keytextToolTip
- the text tool tipstyle
- the style- Returns:
- the text
-
newTextWithTip
protected org.eclipse.swt.widgets.Text newTextWithTip(org.eclipse.swt.widgets.Composite parent, String initialTxt, String tip) New text with tip.- Parameters:
parent
- the parentinitialTxt
- the initial txttip
- the tip- Returns:
- the text
-
newTextWithTip
protected org.eclipse.swt.widgets.Text newTextWithTip(org.eclipse.swt.widgets.Composite parent, String text, int style, String tip) New text with tip.- Parameters:
parent
- the parenttext
- the textstyle
- the styletip
- the tip- Returns:
- the text
-
newLabelWithData
public org.eclipse.swt.widgets.Label newLabelWithData(org.eclipse.swt.widgets.Composite parent, String text) New label with data.- Parameters:
parent
- the parenttext
- the text- Returns:
- the label
-
newLabelWithTip
public org.eclipse.swt.widgets.Label newLabelWithTip(org.eclipse.swt.widgets.Composite parent, String text, String tip) New label with tip.- Parameters:
parent
- the parenttext
- the texttip
- the tip- Returns:
- the label
-
newUnUpdatableTextWithTip
public org.eclipse.swt.widgets.Label newUnUpdatableTextWithTip(org.eclipse.swt.widgets.Composite parent, String text, String tip) New un updatable text with tip.- Parameters:
parent
- the parenttext
- the texttip
- the tip- Returns:
- the label
-
newLabelWithTip
public org.eclipse.swt.widgets.Label newLabelWithTip(org.eclipse.swt.widgets.Composite parent, String text, String tip, int style) New label with tip.- Parameters:
parent
- the parenttext
- the texttip
- the tipstyle
- the style- Returns:
- the label
-
newLabeledCComboWithTip
protected org.eclipse.swt.custom.CCombo newLabeledCComboWithTip(org.eclipse.swt.widgets.Composite parent, String labelKey, String tip) New labeled C combo with tip.- Parameters:
parent
- the parentlabelKey
- the label keytip
- the tip- Returns:
- the c combo
-
newCComboWithTip
protected org.eclipse.swt.custom.CCombo newCComboWithTip(org.eclipse.swt.widgets.Composite parent, String tip) New C combo with tip.- Parameters:
parent
- the parenttip
- the tip- Returns:
- the c combo
-
newDescriptionTextBox
protected org.eclipse.swt.widgets.Text newDescriptionTextBox(org.eclipse.swt.widgets.Composite parent, String tip) New description text box.- Parameters:
parent
- the parenttip
- the tip- Returns:
- the text
-
newRadioButton
public org.eclipse.swt.widgets.Button newRadioButton(org.eclipse.swt.widgets.Composite parent, String label, String toolTip, boolean selected) New radio button.- Parameters:
parent
- the parentlabel
- the labeltoolTip
- the tool tipselected
- the selected- Returns:
- the button
-
newPushButton
public org.eclipse.swt.widgets.Button newPushButton(org.eclipse.swt.widgets.Composite parent, String label, String tip) add pushbutton to container, set enabled, add listener for it.- Parameters:
parent
- the parentlabel
- the labeltip
- the tip- Returns:
- the push button
-
newPushButton
public org.eclipse.swt.widgets.Button newPushButton(org.eclipse.swt.widgets.Composite parent, String label, String tip, boolean enabled) Add a push button to a container, add a listener for it too.- Parameters:
parent
- the parentlabel
- the labeltip
- the tipenabled
- the enabled- Returns:
- the pushbutton
-
newPushButton
public org.eclipse.swt.widgets.Button newPushButton(org.eclipse.swt.widgets.Composite parent, String label, String tip, boolean enabled, int style) New push button.- Parameters:
parent
- the parentlabel
- the labeltip
- the tipenabled
- the enabledstyle
- the style- Returns:
- the button
-
newCheckBox
public org.eclipse.swt.widgets.Button newCheckBox(org.eclipse.swt.widgets.Composite parent, String label, String tip) New check box.- Parameters:
parent
- the parentlabel
- the labeltip
- the tip- Returns:
- the button
-
spacer
public static void spacer(org.eclipse.swt.widgets.Composite container) Spacer.- Parameters:
container
- the container
-
newTable
protected org.eclipse.swt.widgets.Table newTable(org.eclipse.swt.widgets.Composite parent) New table.- Parameters:
parent
- the parent- Returns:
- the table
-
newTable
protected org.eclipse.swt.widgets.Table newTable(org.eclipse.swt.widgets.Composite parent, int style, int minHeight) New table.- Parameters:
parent
- the parentstyle
- the styleminHeight
- the min height- Returns:
- the table
-
newTable
protected org.eclipse.swt.widgets.Table newTable(org.eclipse.swt.widgets.Composite parent, int style, int minHeight, int flags) New table.- Parameters:
parent
- the parentstyle
- the styleminHeight
- the min heightflags
- the flags- Returns:
- the table
-
newTree
protected org.eclipse.swt.widgets.Tree newTree(org.eclipse.swt.widgets.Composite parent) New tree.- Parameters:
parent
- the parent- Returns:
- the tree
-
getPreviousSelection
protected org.eclipse.swt.widgets.TreeItem getPreviousSelection(org.eclipse.swt.widgets.TreeItem[] items, org.eclipse.swt.widgets.TreeItem nextItem) Gets the previous selection.- Parameters:
items
- the itemsnextItem
- the next item- Returns:
- the previous selection
-
getItemIndex
protected int getItemIndex(org.eclipse.swt.widgets.TreeItem[] items, org.eclipse.swt.widgets.TreeItem item) Gets the item index.- Parameters:
items
- the itemsitem
- the item- Returns:
- the item index
-
newTree
protected org.eclipse.swt.widgets.Tree newTree(org.eclipse.swt.widgets.Composite parent, int style) New tree.- Parameters:
parent
- the parentstyle
- SWT.SINGLE SWT.MULTI SWT.CHECK SWT.FULL_SELECTION- Returns:
- the TableTree
-
packTable
public void packTable(org.eclipse.swt.widgets.Table table) Pack table.- Parameters:
table
- the table
-
packTree
public void packTree(org.eclipse.swt.widgets.Tree p_tree) Pack tree.- Parameters:
p_tree
- the tree
-
getIndex
public static int getIndex(org.eclipse.swt.widgets.TableItem item) Gets the index.- Parameters:
item
- the item- Returns:
- the index
-
getIndex
public static int getIndex(org.eclipse.swt.widgets.TreeItem item) Gets the index.- Parameters:
item
- the item- Returns:
- the index
-
removeChildren
protected void removeChildren(org.eclipse.swt.widgets.TreeItem item) Removes the children.- Parameters:
item
- the item
-
newTableColumn
protected org.eclipse.swt.widgets.TableColumn newTableColumn(org.eclipse.swt.widgets.Table table) New table column.- Parameters:
table
- the table- Returns:
- the table column
-
newTreeColumn
protected org.eclipse.swt.widgets.TreeColumn newTreeColumn(org.eclipse.swt.widgets.Tree p_tree) New tree column.- Parameters:
p_tree
- the tree- Returns:
- the tree column
-
newTableColumn
protected org.eclipse.swt.widgets.TableColumn newTableColumn(org.eclipse.swt.widgets.Table container, String header) New table column.- Parameters:
container
- the containerheader
- the header- Returns:
- the table column
-
newTreeColumn
protected org.eclipse.swt.widgets.TreeColumn newTreeColumn(org.eclipse.swt.widgets.Tree container, String header) New tree column.- Parameters:
container
- the containerheader
- the header- Returns:
- the tree column
-
newTableColumn
protected org.eclipse.swt.widgets.TableColumn newTableColumn(org.eclipse.swt.widgets.Table container, int width, int alignment, String header) New table column.- Parameters:
container
- the containerwidth
- the widthalignment
- the alignmentheader
- the header- Returns:
- the table column
-
newTreeColumn
protected org.eclipse.swt.widgets.TreeColumn newTreeColumn(org.eclipse.swt.widgets.Tree container, int width, int alignment, String header) New tree column.- Parameters:
container
- the containerwidth
- the widthalignment
- the alignmentheader
- the header- Returns:
- the tree column
-
newTableColumn
protected org.eclipse.swt.widgets.TableColumn newTableColumn(org.eclipse.swt.widgets.Table container, int width) New table column.- Parameters:
container
- the containerwidth
- the width- Returns:
- the table column
-
newTreeColumn
protected org.eclipse.swt.widgets.TreeColumn newTreeColumn(org.eclipse.swt.widgets.Tree container, int width) New tree column.- Parameters:
container
- the containerwidth
- the width- Returns:
- the tree column
-
isPrimitive
public boolean isPrimitive()Checks if is primitive.- Returns:
- true, if is primitive
-
isAggregate
public boolean isAggregate()Checks if is aggregate.- Returns:
- true, if is aggregate
-
isAeDescriptor
public 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
-
isFlowControllerDescriptor
public boolean isFlowControllerDescriptor()Checks if is flow controller descriptor.- Returns:
- true, if is flow controller 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
-
getFlowControllerDeclaration
Gets the flow controller declaration.- Returns:
- the flow controller declaration
-
setFlowControllerDeclaration
Sets the flow controller declaration.- Parameters:
fcd
- the new flow controller declaration
-
getOperationalProperties
Gets the operational properties.- Returns:
- the operational properties
-
getSofaMappings
Gets the sofa mappings.- Returns:
- the sofa mappings
-
getSofaMappings
Gets the sofa mappings.- Parameters:
pEditor
- the editor- Returns:
- the sofa mappings
-
getDelegateAnalysisEngineSpecifiersWithImports
Gets the delegate analysis engine specifiers with imports.- Returns:
- the delegate analysis engine specifiers with imports
-
getCapabilities
Gets the capabilities.- Returns:
- the capabilities
-
getMergedTypeSystemDescription
Gets the merged type system description.- Returns:
- the merged type system description
-
getTypeSystemDescription
Gets the type system description.- Returns:
- the type system description
-
getTypePriorities
Gets the type priorities.- Returns:
- the type priorities
-
getAvailableTypeNames
Gets the available type names.- Parameters:
excluded
- the excluded- Returns:
- the available type names
-
isParmGroup
public boolean isParmGroup()Checks if is parm group.- Returns:
- true, if is parm group
-
getConfigurationParameterDeclarations
Gets the configuration parameter declarations.- Returns:
- the configuration parameter declarations
-
getResourceManagerConfiguration
Gets the resource manager configuration.- Returns:
- the resource manager configuration
-
getExternalResourceDependencies
Gets the external resource dependencies.- Returns:
- the external resource dependencies
-
getExternalResourceBindings
Gets the external resource bindings.- Returns:
- the external resource bindings
-
getExternalResources
Gets the external resources.- Returns:
- the external resources
-
addListenerForPastableWidget
protected void addListenerForPastableWidget(org.eclipse.swt.widgets.Widget w) Adds the listener for pastable widget.- Parameters:
w
- the w
-
setValueChanged
Sets the value changed.- Parameters:
newValue
- the new valueoldValue
- the old value- Returns:
- the string
-
setValueChangedInt
protected int setValueChangedInt(int newValue, int oldValue) Sets the value changed int.- Parameters:
newValue
- the new valueoldValue
- the old value- Returns:
- the int
-
setValueChangedBoolean
protected boolean setValueChangedBoolean(boolean newValue, boolean oldValue) Sets the value changed boolean.- Parameters:
newValue
- the new valueoldValue
- the old value- Returns:
- true, if successful
-
setValueChangedCapitalBoolean
Sets the value changed capital boolean.- Parameters:
newValue
- the new valueoldValue
- the old value- Returns:
- the boolean
-
setValueChangedKeys
protected FsIndexKeyDescription[] setValueChangedKeys(FsIndexKeyDescription[] newKeys, FsIndexKeyDescription[] oldKeys) Sets the value changed keys.- Parameters:
newKeys
- the new keysoldKeys
- the old keys- Returns:
- the fs index key description[]
-
isValidAe
protected boolean isValidAe()Checks if is valid ae.- Returns:
- true, if is valid ae
-
revertTypeSystem
Revert type system.- Parameters:
tsd
- the tsd
-
revertMsg
Revert msg.- Parameters:
msgTitle
- the msg titlemsgTxt
- the msg txtexceptionMessage
- the exception message
-
revertOrContinue
Revert or continue.- Parameters:
msg
- the msgmsgDetails
- the msg details- Returns:
- true to revert, false to continue
-
markStale
public void markStale(org.eclipse.ui.forms.IFormPart section) Mark stale.- Parameters:
section
- the section
-
markRestOfPageStale
protected void markRestOfPageStale(org.eclipse.ui.forms.IManagedForm mform, AbstractSection section) Mark rest of page stale.- Parameters:
mform
- the mformsection
- the section
-
markStaleIfDifferent
protected void markStaleIfDifferent(org.eclipse.ui.forms.IFormPart thisOne, org.eclipse.ui.forms.IFormPart otherOne) Mark stale if different.- Parameters:
thisOne
- the this oneotherOne
- the other one
-
multiLineFix
Multi line fix.- Parameters:
s
- the s- Returns:
- the string
-
stringArrayAdd
*********************************************************************************************** Augment arrays (make new array, add one item to it at end *********************************************************.- Parameters:
a
- the as
- the s- Returns:
- the string[]
-
stringArrayRemove
String array remove.- Parameters:
a
- the as
- the s- Returns:
- the string[]
-
typeOrFeatureArrayAdd
Type or feature array add.- Parameters:
a
- the aitem
- the item- Returns:
- the type or feature[]
-
typeOrFeatureArrayRemove
Type or feature array remove.- Parameters:
a
- the aitem
- the item- Returns:
- the type or feature[]
-
typeOrFeatureArrayRemove
Type or feature array remove.- Parameters:
a
- the as
- the s- Returns:
- the type or feature[]
-
getTypeOrFeature
Gets the type or feature.- Parameters:
a
- the aname
- the name- Returns:
- the type or feature
-
parseToFitInToolTips
Parses the to fit in tool tips.- Parameters:
text
- the text- Returns:
- the string
-
formatName
Format name.- Parameters:
name
- the name- Returns:
- the string
-
getShortName
Gets the short name.- Parameters:
name
- the name- Returns:
- the short name
-
getShortFeatureName
Gets the short feature name.- Parameters:
name
- the name- Returns:
- the short feature name
-
getTypeFromFullFeatureName
Gets the type from full feature name.- Parameters:
name
- the name- Returns:
- the type from full feature name
-
getNameSpace
Gets the name space.- Parameters:
name
- the name- Returns:
- the name space
-
getFeature
gets a feature description for a type, including supertypes.- Parameters:
td
- the tdfeatureName
- the feature name- Returns:
- a feature description for a type, including supertypes
-
isIndexableRange
Checks if is indexable range.- Parameters:
rangeName
- the range name- Returns:
- true, if is indexable range
-
setToolTipText
Sets the tool tip text.- Parameters:
w
- the wtext
- the text
-
maybeShortenFileName
Maybe shorten file name.- Parameters:
filePathName
- the file path name- Returns:
- the string
-
swapTreeItems
public static void swapTreeItems(org.eclipse.swt.widgets.TreeItem itemBelow, int newSelection) Swap tree items.- Parameters:
itemBelow
- the item belownewSelection
- the new selection
-
copyTreeItem
public static void copyTreeItem(org.eclipse.swt.widgets.TreeItem target, org.eclipse.swt.widgets.TreeItem source) Copy table tree item.- Parameters:
target
- the targetsource
- the source
-
swapIndexKeys
public static void swapIndexKeys(org.eclipse.swt.widgets.TreeItem itemBelow, int newSelection) Swap index keys.- Parameters:
itemBelow
- the item belownewSelection
- the new selection
-
swapTableItems
public static void swapTableItems(org.eclipse.swt.widgets.TableItem itemBelow, int newSelection) Swap table items.- Parameters:
itemBelow
- the item belownewSelection
- the new selection
-
copyTableItem
public static void copyTableItem(org.eclipse.swt.widgets.TableItem target, org.eclipse.swt.widgets.TableItem source) Copy table item.- Parameters:
target
- the targetsource
- the source
-
getFsIndexDescriptionFromTableTreeItem
public static FsIndexDescription getFsIndexDescriptionFromTableTreeItem(org.eclipse.swt.widgets.TreeItem item) Gets the fs index description from table tree item.- Parameters:
item
- the item- Returns:
- the fs index description from table tree item
-
getCapabilitySofaNames
Gets the capability sofa names.- Returns:
- the capability sofa names
-
getCapabilities
Gets the capabilities.- Parameters:
rs
- the rs- Returns:
- the capabilities
-
getCapabilitySofaNames
Gets the capability sofa names.- Parameters:
rs
- the rscomponentKey
- the component key- Returns:
- the capability sofa names
-
addCapabilitySet
Adds the capability set.- Returns:
- the capability
-
getMetaDataFromDescription
Get the metadata for a local or remote descriptor. If the descriptor is remote, but cannot be currently connected to, return null. Note that this make take some time to determine.- Parameters:
o
- is the AnalysisEngineDescription or the URISpecifier for remotes.- Returns:
- AnalysisEngineMetaData or null
-
setVnsHostAndPort
Sets the vns host and port.- Parameters:
vnsHost
- the vns hostvnsPort
- the vns port
-
setVnsHostAndPort
Sets the vns host and port.- Parameters:
descriptor
- the new vns host and port
-
requestPopUpOverImport
protected void requestPopUpOverImport(Import importItem, org.eclipse.swt.widgets.Control control, org.eclipse.swt.widgets.Event event) Request pop up over import.- Parameters:
importItem
- the import itemcontrol
- the controlevent
- the event
-
isJmsDescriptor
Checks if is jms descriptor.- Parameters:
inputDescription
- the input description- Returns:
- true, if is jms descriptor
-
convertNull
Convert null.- Parameters:
s
- the s- Returns:
- the string
-
createImport
Creates the import.- Parameters:
fileName
- the file nameisByName
- the is by name- Returns:
- the import
-
createLocationImport
Creates the location import.- Parameters:
location
- the location- Returns:
- a location import
- Throws:
MalformedURLException
- -
-
createByNameImport
Creates the by name import.- Parameters:
fileName
- the file name- Returns:
- the import
-
isFSArrayOrListType
Checks if is FS array or list type.- Parameters:
type
- the type- Returns:
- true, if is FS array or list type
-
isArrayOrListType
Checks if is array or list type.- Parameters:
type
- the type- Returns:
- true, if is array or list type
-
produceUniqueComponentKey
Produce Unique key for a newly added descriptor file.- Parameters:
fileName
- the file name- Returns:
- Unique key for a newly added descriptor file
-
parseDescriptor
Parses the descriptor.- Parameters:
input
- the input- Returns:
- the XM lizable
- Throws:
InvalidXMLException
- the invalid XML exception
-
parseDescriptor
public static XMLizable parseDescriptor(XMLInputSource input, boolean preserveComments) throws InvalidXMLException Parses the descriptor.- Parameters:
input
- the inputpreserveComments
- the preserve comments- Returns:
- the XM lizable
- Throws:
InvalidXMLException
- the invalid XML exception
-
showExceptionReadingImportedDescriptor
Show exception reading imported descriptor.- Parameters:
e
- the e
-
isValidAggregateChange
protected boolean isValidAggregateChange()Update the model while checking for validity If invalid - ask if want to continue or not.- Returns:
- validity state
-
finishAggregateChangeAction
protected void finishAggregateChangeAction()Finish aggregate change action. -
readImport
Read import.- Parameters:
imp
- the impfileName
- the file nameisImportByName
- the is import by name- Returns:
- the XM lizable
-
enableCtrl
protected static void enableCtrl(org.eclipse.swt.widgets.Control c, boolean enabled) Enable ctrl.- Parameters:
c
- the cenabled
- the enabled
-
setButtonSelection
protected static void setButtonSelection(org.eclipse.swt.widgets.Button c, boolean selected) Sets the button selection.- Parameters:
c
- the cselected
- the selected
-
getDescriptionForDescriptor
Gets the description for descriptor.- Parameters:
fileRef
- the file refrs
- the rs- Returns:
- the description for descriptor
-
setupToPrintFile
Setup to print file.- Parameters:
filePath
- the file path- Returns:
- the prints the writer
-
getFsIndexCollection
Gets the fs index collection.- Returns:
- the fs index collection
-
handleDefaultIndexKind
Handle default index kind.- Parameters:
indexKind
- the index kind- Returns:
- the string
-
setSelectionOneUp
public static void setSelectionOneUp(org.eclipse.swt.widgets.Tree tt, org.eclipse.swt.widgets.TreeItem item) Set the selection one above this item, unless it's the top one already. Used when removing the item.- Parameters:
tt
- treeitem
- context item
-
maybeSetSelection
public static void maybeSetSelection(org.eclipse.swt.widgets.Tree tt, int itemIndex)
-