Class MultiPageEditor

java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.part.MultiPageEditorPart
org.eclipse.ui.forms.editor.FormEditor
org.apache.uima.taeconfigurator.editors.MultiPageEditor
All Implemented Interfaces:
IUimaMultiPageEditor, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.jface.dialogs.IPageChangeProvider, 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

public class MultiPageEditor extends org.eclipse.ui.forms.editor.FormEditor implements IUimaMultiPageEditor
Main class implementing the multi page editor. In Eclipse 3, we extend FormEditor, which extends in turn MultiPageEditorPart. Life cycle: Create: An instance of this class is created each time the editor is started on a new resource. Base multipage editor createPartControl calls createPages; FormEditor's impl of createPages calls createToolkit, then calls addPages. FormEditor has field holding the toolkit This class overrides createToolkit to re-use the colors in the plugin. * Dispose: dispose is called. FormEditor impl of dispose disposes of the toolkit. Superclass (FormEditor) holds vector of pages toolkit (disposed of in FormEditor dispose method) SuperSuperclass (MultiPageEditorPart) holds array of editors (we only have 1 "editor" - the xml source editor - the rest are views into that model / data). Stale = model (on disk, saved) is ahead of widgets Dirty = widgets are ahead of model <<< NOT USED HERE Each page of the multipage editor has its own class. ownclass -%gt; HeaderPage -%gt; FormPage (impl IFormPage) has instance of PageForm -%gt; ManagedForm ManagedForm (impl IManagedForm): has instance of ScrolledForm has subparts (IFormPart - which live on the scrolled form) A part can be a section. A part can implement IPartSelectionListener to get selectionChanged(IFormPart, ISelection) calls. initialize() call propagated to all parts. dispose() call propagated to all parts. refresh() propagated to all parts (if part.isStale()) (Not Used) commit() propagated to all parts (if part.isDirty()) setInput() propagated to all parts setFocus() propagated to 1st part (not used) isDirty() propagated to all parts, is true if any are true isStale() propagated to all parts, is true if any are true reflow() delegated to the contained ScrolledForm (not used) fireSelectionChanged(IFormPart, ISelection) - can be used to notify other parts that implement IPartSelectionListener about selection changes Each page has one or more sections. sectionSpecific -> (AbstractTableSection) -> AbstractSection -> SectionPart -> AbstractFormPart (impl IFormPart, see above) AbstractFormPart holds back ref to managed form, a dirty and stale bit. Stale = model is ahead of widgets (Not used) Dirty = widgets are ahead of model Stale brought into sync by 'refresh' method. Part notifies containing ManagedForm when Stale/Dirty changes in the part; Part responsible for removing listeners from event providers. IFormPart can receive form input SectionPart adds listeners for expansionStateChang(ed)(ing) expansionStateChanged calls reflow on wrapped form Note: the forms framework Dirty mechanism and the "commit" methods are not used. In its place, the handlers directly update the model, rather than marking Dirty and letting someone call commit.
  • Field Details

    • INITIAL_SIZE_TYPE_COLLECTIONS

      public final int INITIAL_SIZE_TYPE_COLLECTIONS
      The initial size type collections.
      See Also:
    • INITIAL_SIZE_FEATURE_COLLECTIONS

      public final int INITIAL_SIZE_FEATURE_COLLECTIONS
      The initial size feature collections.
      See Also:
    • PRESERVE_COMMENTS

      public final boolean PRESERVE_COMMENTS
      The preserve comments.
      See Also:
    • descriptorCAS

      public DescriptorTCAS descriptorCAS
      The descriptor CAS.
    • allTypes

      public AllTypes allTypes
      The all types.
    • definedTypesWithSupers

      public DefinedTypesWithSupers definedTypesWithSupers
      The defined types with supers.
    • sourceIndex

      protected int sourceIndex
      The source index.
    • overviewIndex

      protected int overviewIndex
      The overview index.
    • typeIndex

      protected int typeIndex
      The type index.
    • capabilityIndex

      protected int capabilityIndex
      The capability index.
    • indexesIndex

      protected int indexesIndex
      The indexes index.
    • resourcesIndex

      protected int resourcesIndex
      The resources index.
    • overviewPage

      protected OverviewPage overviewPage
      The overview page.
    • typePage

      protected TypePage typePage
      The type page.
    • capabilityPage

      protected CapabilityPage capabilityPage
      The capability page.
    • indexesPage

      protected IndexesPage indexesPage
      The indexes page.
    • resourcesPage

      protected ResourcesPage resourcesPage
      The resources page.
    • sourceTextEditor

      protected XMLEditor sourceTextEditor
      The source text editor.
    • isBadXML

      protected boolean isBadXML
      The is bad XML.
    • sourceChanged

      public boolean sourceChanged
      The source changed.
    • m_nSaveAsStatus

      public int m_nSaveAsStatus
      The m n save as status.
    • SAVE_AS_NOT_IN_PROGRESS

      public static final int SAVE_AS_NOT_IN_PROGRESS
      The Constant SAVE_AS_NOT_IN_PROGRESS.
      See Also:
    • SAVE_AS_STARTED

      public static final int SAVE_AS_STARTED
      The Constant SAVE_AS_STARTED.
      See Also:
    • SAVE_AS_CANCELLED

      public static final int SAVE_AS_CANCELLED
      The Constant SAVE_AS_CANCELLED.
      See Also:
    • SAVE_AS_CONFIRMED

      public static final int SAVE_AS_CONFIRMED
      The Constant SAVE_AS_CONFIRMED.
      See Also:
    • DESCRIPTOR_AE

      public static final int DESCRIPTOR_AE
      The Constant DESCRIPTOR_AE.
      See Also:
    • DESCRIPTOR_TYPESYSTEM

      public static final int DESCRIPTOR_TYPESYSTEM
      The Constant DESCRIPTOR_TYPESYSTEM.
      See Also:
    • DESCRIPTOR_INDEX

      public static final int DESCRIPTOR_INDEX
      The Constant DESCRIPTOR_INDEX.
      See Also:
    • DESCRIPTOR_TYPEPRIORITY

      public static final int DESCRIPTOR_TYPEPRIORITY
      The Constant DESCRIPTOR_TYPEPRIORITY.
      See Also:
    • DESCRIPTOR_EXTRESANDBINDINGS

      public static final int DESCRIPTOR_EXTRESANDBINDINGS
      The Constant DESCRIPTOR_EXTRESANDBINDINGS.
      See Also:
    • DESCRIPTOR_COLLECTIONREADER

      public static final int DESCRIPTOR_COLLECTIONREADER
      The Constant DESCRIPTOR_COLLECTIONREADER.
      See Also:
    • DESCRIPTOR_CASINITIALIZER

      public static final int DESCRIPTOR_CASINITIALIZER
      The Constant DESCRIPTOR_CASINITIALIZER.
      See Also:
    • DESCRIPTOR_CASCONSUMER

      public static final int DESCRIPTOR_CASCONSUMER
      The Constant DESCRIPTOR_CASCONSUMER.
      See Also:
    • DESCRIPTOR_FLOWCONTROLLER

      public static final int DESCRIPTOR_FLOWCONTROLLER
      The Constant DESCRIPTOR_FLOWCONTROLLER.
      See Also:
    • isPageChangeRecursion

      protected boolean isPageChangeRecursion
      The is page change recursion.
    • typeDescriptionArray0

      public static final TypeDescription[] typeDescriptionArray0
      The Constant typeDescriptionArray0.
    • PATH_SEPARATOR

      public static final String PATH_SEPARATOR
      The Constant PATH_SEPARATOR.
  • Constructor Details

    • MultiPageEditor

      public MultiPageEditor()
      Instantiates a new multi page editor.
  • Method Details

    • getIsContextLoaded

      public boolean getIsContextLoaded()
      Gets the checks if is context loaded.
      Returns:
      the checks if is context loaded
    • getLimitJCasGenToProjectScope

      public boolean getLimitJCasGenToProjectScope()
      Gets the limit J cas gen to project scope.
      Returns:
      the limit J cas gen to project scope
    • setLimitJCasGenToProjectScope

      public void setLimitJCasGenToProjectScope(boolean v)
      Sets the limit J cas gen to project scope.
      Parameters:
      v - the new limit J cas gen to project scope
    • getDescriptorType

      public int getDescriptorType()
      Gets the descriptor type.
      Returns:
      the descriptor type
    • descriptorTypeString

      public String descriptorTypeString(int pDescriptorType)
      Descriptor type string.
      Parameters:
      pDescriptorType - the descriptor type
      Returns:
      the string
    • descriptorTypeString

      public String descriptorTypeString()
      Descriptor type string.
      Returns:
      the string
    • 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
    • isFsIndexCollection

      public boolean isFsIndexCollection()
      Checks if is fs index collection.
      Returns:
      true, if is fs index collection
    • 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
    • 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
    • initSuper

      public void initSuper(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput) throws org.eclipse.ui.PartInitException
      Parameters:
      site - the site
      editorInput - the editor input
      Throws:
      org.eclipse.ui.PartInitException - the part init exception
    • getCurrentPageSuper

      public int getCurrentPageSuper()
      Gets the current page super.
      Returns:
      the current page super
    • setPartNameSuper

      public void setPartNameSuper(String partName)
      Sets the part name super.
      Parameters:
      partName - the new part name super
    • setPageTextSuper

      public void setPageTextSuper(int pageIndex, String text)
      Sets the page text super.
      Parameters:
      pageIndex - the page index
      text - the text
    • pageChangeSuper

      public void pageChangeSuper(int newPageIndex)
      Page change super.
      Parameters:
      newPageIndex - the new page index
    • setActivePageSuper

      public void setActivePageSuper(int pageIndex)
      Sets the active page super.
      Parameters:
      pageIndex - the new active page super
    • firePropertyChangeSuper

      public void firePropertyChangeSuper(int propertyId)
      Fire property change super.
      Parameters:
      propertyId - the property id
    • setInputSuper

      public void setInputSuper(org.eclipse.ui.IEditorInput input)
      Sets the input super.
      Parameters:
      input - the new input super
    • getSourceEditor

      public XMLEditor getSourceEditor()
      Gets the source editor.
      Returns:
      the source editor
    • createToolkit

      protected org.eclipse.ui.forms.widgets.FormToolkit createToolkit(org.eclipse.swt.widgets.Display display)
      override the createToolkit method in FormEditor - to use a shared colors resource. This method is called by the FormEditor's createPages() method which will in turn call the addPages method below. The toolkit ref is stored in the FormEditor object, and can be retrieved by getToolkit().
      Overrides:
      createToolkit in class org.eclipse.ui.forms.editor.FormEditor
    • addPageAndSetTabTitle

      protected int addPageAndSetTabTitle(HeaderPage page, String keyTabTitle) throws org.eclipse.ui.PartInitException
      Adds the page and set tab title.
      Parameters:
      page - the page
      keyTabTitle - the key tab title
      Returns:
      the int
      Throws:
      org.eclipse.ui.PartInitException - the part init exception
    • addPageAndSetTabTitle

      protected int addPageAndSetTabTitle(org.eclipse.ui.IEditorPart page, org.eclipse.ui.IEditorInput input, String keyTabTitle) throws org.eclipse.ui.PartInitException
      Adds the page and set tab title.
      Parameters:
      page - the page
      input - the input
      keyTabTitle - the key tab title
      Returns:
      the int
      Throws:
      org.eclipse.ui.PartInitException - the part init exception
    • addPages

      protected void addPages()
      Specified by:
      addPages in class org.eclipse.ui.forms.editor.FormEditor
    • addPagesForCurrentEditor

      public void addPagesForCurrentEditor()
      Description copied from interface: IUimaMultiPageEditor
      Adds the pages for current editor.
      Specified by:
      addPagesForCurrentEditor in interface IUimaMultiPageEditor
    • jcasGen

      public void jcasGen(org.eclipse.core.runtime.IProgressMonitor monitor)
      Jcas gen.
      Parameters:
      monitor - the monitor
    • doJCasGenChkSrc

      public void doJCasGenChkSrc(org.eclipse.core.runtime.IProgressMonitor monitor)
      Do J cas gen chk src.
      Parameters:
      monitor - the monitor
    • isSourceFolderValid

      public boolean isSourceFolderValid()
      Checks if is source folder valid.
      Returns:
      true, if is source folder valid
    • isValidAE

      public boolean isValidAE(AnalysisEngineDescription aAe)
      Checks if is valid AE.
      Parameters:
      aAe - the a ae
      Returns:
      true, if is valid AE
    • doSave

      public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
      Saves the multi-page editor's document.
      Specified by:
      doSave in interface org.eclipse.ui.ISaveablePart
      Specified by:
      doSave in class org.eclipse.ui.part.EditorPart
      Parameters:
      monitor - the monitor
    • doSaveForCurrentEditor

      public void doSaveForCurrentEditor(org.eclipse.core.runtime.IProgressMonitor monitor)
      Description copied from interface: IUimaMultiPageEditor
      Do save for current editor.
      Specified by:
      doSaveForCurrentEditor in interface IUimaMultiPageEditor
      Parameters:
      monitor - the monitor
    • doSaveAs

      public void doSaveAs()
      Saves the multi-page editor's document as another file. Updates this multi-page editor's input to correspond to the nested editor's. This is not implemented correctly: filename isn't switched to new filename, etc.
      Specified by:
      doSaveAs in interface org.eclipse.ui.ISaveablePart
      Specified by:
      doSaveAs in class org.eclipse.ui.part.EditorPart
    • doSaveAsForCurrentEditor

      public void doSaveAsForCurrentEditor()
      Description copied from interface: IUimaMultiPageEditor
      Do save as for current editor.
      Specified by:
      doSaveAsForCurrentEditor in interface IUimaMultiPageEditor
    • isDirty

      public boolean isDirty()
      Specified by:
      isDirty in interface org.eclipse.ui.ISaveablePart
      Overrides:
      isDirty in class org.eclipse.ui.forms.editor.FormEditor
    • isSaveOnCloseNeeded

      public boolean isSaveOnCloseNeeded()
      Specified by:
      isSaveOnCloseNeeded in interface org.eclipse.ui.ISaveablePart
      Overrides:
      isSaveOnCloseNeeded in class org.eclipse.ui.part.EditorPart
    • setFileDirty

      public void setFileDirty()
      Sets the file dirty.
    • setFileDirtyFlag

      public void setFileDirtyFlag(boolean value)
      Sets the file dirty flag.
      Parameters:
      value - the new file dirty flag
    • init

      public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput) throws org.eclipse.ui.PartInitException
      Specified by:
      init in interface org.eclipse.ui.IEditorPart
      Overrides:
      init in class org.eclipse.ui.forms.editor.FormEditor
      Throws:
      org.eclipse.ui.PartInitException
    • createResourceManager

      public ResourceManager createResourceManager()
      Create a resource manager that has a class loader that will search the compiled output of the current project, in addition to the plug-in's classpath. We create a new resource manager every time it's needed to pick up any changes the user may have made to any classes that could have been loaded.
      Returns:
      a resource manager that has a class loader that will search the compiled output of the current project, in addition to the plug-in's classpath
    • createResourceManager

      public ResourceManager createResourceManager(String classPath)
      Creates the resource manager.
      Parameters:
      classPath - the class path
      Returns:
      the resource manager
    • isSaveAsAllowed

      public boolean isSaveAsAllowed()
      Specified by:
      isSaveAsAllowed in interface org.eclipse.ui.ISaveablePart
      Specified by:
      isSaveAsAllowed in class org.eclipse.ui.part.EditorPart
    • pageChange

      protected void pageChange(int newPageIndex)
      Overrides:
      pageChange in class org.eclipse.ui.forms.editor.FormEditor
    • pageChangeForCurrentEditor

      public void pageChangeForCurrentEditor(int newPageIndex)
      Description copied from interface: IUimaMultiPageEditor
      Page change for current editor.
      Specified by:
      pageChangeForCurrentEditor in interface IUimaMultiPageEditor
      Parameters:
      newPageIndex - the new page index
    • setActivePageWhileBlockingRecursion

      protected void setActivePageWhileBlockingRecursion(int sourceIndex)
      Sets the active page while blocking recursion.
      Parameters:
      sourceIndex - the new active page while blocking recursion
    • getCharSet

      public String getCharSet(String text)
      Gets the char set.
      Parameters:
      text - the text
      Returns:
      the char set
    • markAllPagesStale

      public void markAllPagesStale()
      Mark all pages stale.
    • prettyPrintModel

      public String prettyPrintModel()
      Pretty print model.
      Returns:
      the string
    • updateSourceFromModel

      public void updateSourceFromModel()
      Update source from model.
    • getAeDescription

      public AnalysisEngineDescription getAeDescription()
      Gets the ae description.
      Returns:
      the ae description
    • setAeDescription

      public void setAeDescription(AnalysisEngineDescription aAnalysisEngineDescription) throws ResourceInitializationException
      Sets the ae description.
      Parameters:
      aAnalysisEngineDescription - the new ae description
      Throws:
      ResourceInitializationException - -
    • setTypeSystemDescription

      public void setTypeSystemDescription(TypeSystemDescription typeSystemDescription) throws ResourceInitializationException
      Sets the type system description.
      Parameters:
      typeSystemDescription - the new type system description
      Throws:
      ResourceInitializationException - the resource initialization exception
    • getAbsolutePathFromImport

      public String getAbsolutePathFromImport(Import importItem)
      Gets the absolute path from import.
      Parameters:
      importItem - the import item
      Returns:
      the absolute path from import
    • getAggregatePage

      public AggregatePage getAggregatePage()
      Gets the aggregate page.
      Returns:
      the aggregate page
    • getOverviewPage

      public OverviewPage getOverviewPage()
      Gets the overview page.
      Returns:
      the overview page
    • getParameterPage

      public ParameterPage getParameterPage()
      Gets the parameter page.
      Returns:
      the parameter page
    • getTypePage

      public TypePage getTypePage()
      Gets the type page.
      Returns:
      the type page
    • getCapabilityPage

      public CapabilityPage getCapabilityPage()
      Gets the capability page.
      Returns:
      the capability page
    • getIndexesPage

      public IndexesPage getIndexesPage()
      Gets the indexes page.
      Returns:
      the indexes page
    • getResourcesPage

      public ResourcesPage getResourcesPage()
      Gets the resources page.
      Returns:
      the resources page
    • getXMLEditorPage

      public XMLEditor getXMLEditorPage()
      Gets the XML editor page.
      Returns:
      the XML editor page
    • getSettingsPage

      public SettingsPage getSettingsPage()
      Gets the settings page.
      Returns:
      the settings page
    • getFile

      public org.eclipse.core.resources.IFile getFile()
      Gets the file.
      Returns:
      current file being edited
    • getResolvedDelegates

      public Map getResolvedDelegates()
      Gets the resolved delegates.
      Returns:
      the resolved delegates
    • getDelegateAEdescriptions

      public Map getDelegateAEdescriptions(AnalysisEngineDescription aed)
      gets the Hash Map of resolved AE delegates Clones the description first because the getting updates it in some cases.
      Parameters:
      aed - the aed
      Returns:
      the Map of resolved AE delegates
    • markTCasDirty

      public void markTCasDirty()
      Mark T cas dirty.
    • getCurrentView

      public CAS getCurrentView()
      Gets the current view.
      Returns:
      the current view
    • getProject

      public org.eclipse.core.resources.IProject getProject()
      Gets the project.
      Returns:
      the project
    • getDescriptorDirectory

      public String getDescriptorDirectory()
      Gets the descriptor directory.
      Returns:
      the descriptor directory
    • getDescriptorRelativePath

      public String getDescriptorRelativePath(String aFullOrRelativePath)
      Gets the descriptor relative path.
      Parameters:
      aFullOrRelativePath - the a full or relative path
      Returns:
      the descriptor relative path
    • isFileInWorkspace

      public boolean isFileInWorkspace(String aFileRelPath)
      Checks if is file in workspace.
      Parameters:
      aFileRelPath - the a file rel path
      Returns:
      true, if is file in workspace
    • getFullPathFromDescriptorRelativePath

      public String getFullPathFromDescriptorRelativePath(String aDescRelPath)
      Gets the full path from descriptor relative path.
      Parameters:
      aDescRelPath - the a desc rel path
      Returns:
      the full path from descriptor relative path
    • open

      public void open(org.eclipse.core.resources.IFile fileToOpen)
      Open.
      Parameters:
      fileToOpen - the file to open
    • openTextEditor

      public void openTextEditor(org.eclipse.core.resources.IFile fileToOpen)
      Open text editor.
      Parameters:
      fileToOpen - the file to open
    • getIFileOrFile

      public Object getIFileOrFile(String relOrAbsPath)
      Gets the i file or file.
      Parameters:
      relOrAbsPath - the rel or abs path
      Returns:
      the i file or file
    • open

      public void open(String fullPath)
      Open.
      Parameters:
      fullPath - the full path
    • openTextEditor

      public void openTextEditor(String fullPath)
      Open text editor.
      Parameters:
      fullPath - the full path
    • addDirtyTypeName

      public void addDirtyTypeName(String typeName)
      Adds the dirty type name.
      Parameters:
      typeName - the type name
    • removeDirtyTypeName

      public void removeDirtyTypeName(String typeName)
      Removes the dirty type name.
      Parameters:
      typeName - the type name
    • doJCasGen

      public void doJCasGen(org.eclipse.core.runtime.IProgressMonitor monitor)
      Do J cas gen.
      Parameters:
      monitor - the monitor
    • getProjectClassPath

      public String getProjectClassPath() throws org.eclipse.core.runtime.CoreException
      Gets the project class path.
      Returns:
      the project class path
      Throws:
      org.eclipse.core.runtime.CoreException - the core exception
    • getFilteredProjectClassPath

      public String getFilteredProjectClassPath(boolean filterCoreResources) throws org.eclipse.core.runtime.CoreException
      Gets the filtered project class path.
      Parameters:
      filterCoreResources - the filter core resources
      Returns:
      the filtered project class path
      Throws:
      org.eclipse.core.runtime.CoreException - the core exception
    • getPrimarySourceFolder

      public org.eclipse.core.resources.IResource getPrimarySourceFolder()
      Gets the primary source folder.
      Returns:
      the primary source folder
    • setSaveAsStatus

      public void setSaveAsStatus(int nStatus)
      Sets the save as status.
      Parameters:
      nStatus - the new save as status
    • getTypeSystemDescription

      public TypeSystemDescription getTypeSystemDescription()
      Gets the type system description.
      Returns:
      the type system description
    • getTypePriorities

      public TypePriorities getTypePriorities()
      Gets the type priorities.
      Returns:
      the type priorities
    • getFsIndexCollection

      public FsIndexCollection getFsIndexCollection()
      Gets the fs index collection.
      Returns:
      the fs index collection
    • getExtResAndBindings

      public ResourceManagerConfiguration getExtResAndBindings()
      Gets the ext res and bindings.
      Returns:
      the ext res and bindings
    • validateInputs

      public boolean validateInputs(Map typeNameHash)
      Validate inputs.
      Parameters:
      typeNameHash - the type name hash
      Returns:
      true, if successful
    • validateOutputs

      public boolean validateOutputs(Map typeNameHash)
      Validate outputs.
      Parameters:
      typeNameHash - the type name hash
      Returns:
      true, if successful
    • validateIOs

      public boolean validateIOs(boolean isValidateInputs, Map typeNameHash)
      Validate I os.
      Parameters:
      isValidateInputs - the is validate inputs
      typeNameHash - the type name hash
      Returns:
      true, if successful
    • validateTypePriorities

      public boolean validateTypePriorities(Map typeNameHash)
      Validate type priorities.
      Parameters:
      typeNameHash - the type name hash
      Returns:
      true, if successful
    • getDelegateResourceSpecifier

      public static ResourceSpecifier getDelegateResourceSpecifier(org.eclipse.core.resources.IFile iFile, String[] componentHeaders)
      Used by code to get lists of delegate components by input/output type specs.
      Parameters:
      iFile - the i file
      componentHeaders - the component headers
      Returns:
      the delegate resource specifier
    • getMessagesToRootCause

      public String getMessagesToRootCause(Throwable e)
      Gets the messages to root cause.
      Parameters:
      e - the e
      Returns:
      the messages to root cause
    • getFadeColor

      public org.eclipse.swt.graphics.Color getFadeColor()
      Gets the fade color.
      Returns:
      the fade color
    • setMergedTypeSystemDescription

      public void setMergedTypeSystemDescription(TypeSystemDescription saved)
      Sets the merged type system description.
      Parameters:
      saved - the new merged type system description
    • setImportedTypeSystemDescription

      public void setImportedTypeSystemDescription(TypeSystemDescription saved)
      Sets the imported type system description.
      Parameters:
      saved - the new imported type system description
    • setMergedTypeSystemDescription

      public void setMergedTypeSystemDescription() throws ResourceInitializationException
      Sets the merged type system description.
      Throws:
      ResourceInitializationException - the resource initialization exception
    • getMergedTypeSystemDescription

      public TypeSystemDescription getMergedTypeSystemDescription()
      Gets the merged type system description.
      Returns:
      the merged type system description
    • getImportedTypeSystemDesription

      public TypeSystemDescription getImportedTypeSystemDesription()
      Gets the imported type system desription.
      Returns:
      the imported type system desription
    • setMergedFsIndexCollection

      public void setMergedFsIndexCollection() throws ResourceInitializationException
      Sets the merged fs index collection.
      Throws:
      ResourceInitializationException - the resource initialization exception
    • setMergedFsIndexCollection

      public void setMergedFsIndexCollection(FsIndexCollection saved)
      Sets the merged fs index collection.
      Parameters:
      saved - the new merged fs index collection
    • getMergedFsIndexCollection

      public FsIndexCollection getMergedFsIndexCollection()
      Gets the merged fs index collection.
      Returns:
      the merged fs index collection
    • setMergedTypePriorities

      public void setMergedTypePriorities() throws ResourceInitializationException
      Sets the merged type priorities.
      Throws:
      ResourceInitializationException - the resource initialization exception
    • setMergedTypePriorities

      public void setMergedTypePriorities(TypePriorities saved)
      Sets the merged type priorities.
      Parameters:
      saved - the new merged type priorities
    • getMergedTypePriorities

      public TypePriorities getMergedTypePriorities()
      Gets the merged type priorities.
      Returns:
      the merged type priorities
    • setResolvedFlowControllerDeclaration

      public void setResolvedFlowControllerDeclaration() throws InvalidXMLException
      Sets the resolved flow controller declaration.
      Throws:
      InvalidXMLException - the invalid XML exception
    • getResolvedFlowControllerDeclaration

      public FlowControllerDeclaration getResolvedFlowControllerDeclaration()
      Gets the resolved flow controller declaration.
      Returns:
      the resolved flow controller declaration
    • setResolvedExternalResourcesAndBindings

      public void setResolvedExternalResourcesAndBindings() throws InvalidXMLException
      A Merge method doesn't "fit". merging isn't done over aggregates for these. Instead, the outer-most one "wins". But: resolving does fit. So we name this differently
      Throws:
      InvalidXMLException - -
    • setResolvedExternalResourcesAndBindings

      public void setResolvedExternalResourcesAndBindings(ResourceManagerConfiguration saved)
      Sets the resolved external resources and bindings.
      Parameters:
      saved - the new resolved external resources and bindings
    • getResolvedExternalResourcesAndBindings

      public ResourceManagerConfiguration getResolvedExternalResourcesAndBindings()
      Gets the resolved external resources and bindings.
      Returns:
      the resolved external resources and bindings
    • getImportedFsIndexCollection

      public FsIndexCollection getImportedFsIndexCollection()
      Gets the imported fs index collection.
      Returns:
      the imported fs index collection
    • getImportedTypePriorities

      public TypePriorities getImportedTypePriorities()
      Gets the imported type priorities.
      Returns:
      the imported type priorities
    • getSourcePageEditor

      public org.eclipse.ui.texteditor.ITextEditor getSourcePageEditor()
      Gets the source page editor.
      Returns:
      the source page editor
    • getJavaProject

      public org.eclipse.jdt.core.IJavaProject getJavaProject()
      Gets the java project.
      Returns:
      the java project
    • getTypeFromProject

      public org.eclipse.jdt.core.IType getTypeFromProject(String typename)
      Gets the type from project.
      Parameters:
      typename - the typename
      Returns:
      the type from project
    • getAnalysisComponentIType

      public org.eclipse.jdt.core.IType getAnalysisComponentIType()
      Gets the analysis component I type.
      Returns:
      the analysis component I type
    • getBaseAnnotatorIType

      public org.eclipse.jdt.core.IType getBaseAnnotatorIType()
      Gets the base annotator I type.
      Returns:
      the base annotator I type
    • getCollectionReaderIType

      public org.eclipse.jdt.core.IType getCollectionReaderIType()
      Gets the collection reader I type.
      Returns:
      the collection reader I type
    • getCasInitializerIType

      public org.eclipse.jdt.core.IType getCasInitializerIType()
      Gets the cas initializer I type.
      Returns:
      the cas initializer I type
    • getCasConsumerIType

      public org.eclipse.jdt.core.IType getCasConsumerIType()
      Gets the cas consumer I type.
      Returns:
      the cas consumer I type
    • getFlowControllerIType

      public org.eclipse.jdt.core.IType getFlowControllerIType()
      Gets the flow controller I type.
      Returns:
      the flow controller I type
    • getSearchScopeForDescriptorType

      public org.eclipse.jdt.core.search.IJavaSearchScope getSearchScopeForDescriptorType()
      Gets the search scope for descriptor type.
      Returns:
      the search scope for descriptor type
    • createCas

      public CAS createCas(AnalysisEngineDescription aAeDescription, Properties aPerformanceTuningSettings, ResourceManager aResourceManager) throws ResourceInitializationException
      Creates the cas.
      Parameters:
      aAeDescription - the a ae description
      aPerformanceTuningSettings - the a performance tuning settings
      aResourceManager - the a resource manager
      Returns:
      the cas
      Throws:
      ResourceInitializationException - the resource initialization exception