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.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThe Class JCasGenProgressMonitor.static classThe Class JCasGenThrower.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionThe all types.protected intThe capability index.protected CapabilityPageThe capability page.The defined types with supers.static final intThe Constant DESCRIPTOR_AE.static final intThe Constant DESCRIPTOR_CASCONSUMER.static final intThe Constant DESCRIPTOR_CASINITIALIZER.static final intThe Constant DESCRIPTOR_COLLECTIONREADER.static final intThe Constant DESCRIPTOR_EXTRESANDBINDINGS.static final intThe Constant DESCRIPTOR_FLOWCONTROLLER.static final intThe Constant DESCRIPTOR_INDEX.static final intThe Constant DESCRIPTOR_TYPEPRIORITY.static final intThe Constant DESCRIPTOR_TYPESYSTEM.The descriptor CAS.protected intThe indexes index.protected IndexesPageThe indexes page.final intThe initial size feature collections.final intThe initial size type collections.protected booleanThe is bad XML.protected booleanThe is page change recursion.intThe m n save as status.protected intThe overview index.protected OverviewPageThe overview page.static final StringThe Constant PATH_SEPARATOR.final booleanThe preserve comments.protected intThe resources index.protected ResourcesPageThe resources page.static final intThe Constant SAVE_AS_CANCELLED.static final intThe Constant SAVE_AS_CONFIRMED.static final intThe Constant SAVE_AS_NOT_IN_PROGRESS.static final intThe Constant SAVE_AS_STARTED.booleanThe source changed.protected intThe source index.protected XMLEditorThe source text editor.static final TypeDescription[]The Constant typeDescriptionArray0.protected intThe type index.protected TypePageThe type page.Fields inherited from class org.eclipse.ui.forms.editor.FormEditorpagesFields inherited from class org.eclipse.ui.part.MultiPageEditorPartPAGE_CONTAINER_SITEFields inherited from interface org.eclipse.ui.IEditorPartPROP_DIRTY, PROP_INPUTFields inherited from interface org.eclipse.ui.IWorkbenchPartPROP_TITLE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDirtyTypeName(String typeName) Adds the dirty type name.protected intaddPageAndSetTabTitle(HeaderPage page, String keyTabTitle) Adds the page and set tab title.protected intaddPageAndSetTabTitle(org.eclipse.ui.IEditorPart page, org.eclipse.ui.IEditorInput input, String keyTabTitle) Adds the page and set tab title.protected voidaddPages()voidAdds the pages for current editor.createCas(AnalysisEngineDescription aAeDescription, Properties aPerformanceTuningSettings, ResourceManager aResourceManager) Creates the cas.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.createResourceManager(String classPath) Creates the resource manager.protected org.eclipse.ui.forms.widgets.FormToolkitcreateToolkit(org.eclipse.swt.widgets.Display display) override the createToolkit method in FormEditor - to use a shared colors resource.Descriptor type string.descriptorTypeString(int pDescriptorType) Descriptor type string.voiddoJCasGen(org.eclipse.core.runtime.IProgressMonitor monitor) Do J cas gen.voiddoJCasGenChkSrc(org.eclipse.core.runtime.IProgressMonitor monitor) Do J cas gen chk src.voiddoSave(org.eclipse.core.runtime.IProgressMonitor monitor) Saves the multi-page editor's document.voiddoSaveAs()Saves the multi-page editor's document as another file.voidDo save as for current editor.voiddoSaveForCurrentEditor(org.eclipse.core.runtime.IProgressMonitor monitor) Do save for current editor.voidfirePropertyChangeSuper(int propertyId) Fire property change super.getAbsolutePathFromImport(Import importItem) Gets the absolute path from import.Gets the ae description.Gets the aggregate page.org.eclipse.jdt.core.ITypeGets the analysis component I type.org.eclipse.jdt.core.ITypeGets the base annotator I type.Gets the capability page.org.eclipse.jdt.core.ITypeGets the cas consumer I type.org.eclipse.jdt.core.ITypeGets the cas initializer I type.getCharSet(String text) Gets the char set.org.eclipse.jdt.core.ITypeGets the collection reader I type.intGets the current page super.Gets the current view.gets the Hash Map of resolved AE delegates Clones the description first because the getting updates it in some cases.static ResourceSpecifiergetDelegateResourceSpecifier(org.eclipse.core.resources.IFile iFile, String[] componentHeaders) Used by code to get lists of delegate components by input/output type specs.Gets the descriptor directory.getDescriptorRelativePath(String aFullOrRelativePath) Gets the descriptor relative path.intGets the descriptor type.Gets the ext res and bindings.org.eclipse.swt.graphics.ColorGets the fade color.org.eclipse.core.resources.IFilegetFile()Gets the file.getFilteredProjectClassPath(boolean filterCoreResources) Gets the filtered project class path.org.eclipse.jdt.core.ITypeGets the flow controller I type.Gets the fs index collection.getFullPathFromDescriptorRelativePath(String aDescRelPath) Gets the full path from descriptor relative path.getIFileOrFile(String relOrAbsPath) Gets the i file or file.Gets the imported fs index collection.Gets the imported type priorities.Gets the imported type system desription.Gets the indexes page.booleanGets the checks if is context loaded.org.eclipse.jdt.core.IJavaProjectGets the java project.booleanGets the limit J cas gen to project scope.Gets the merged fs index collection.Gets the merged type priorities.Gets the merged type system description.Gets the messages to root cause.Gets the overview page.Gets the parameter page.org.eclipse.core.resources.IResourceGets the primary source folder.org.eclipse.core.resources.IProjectGets the project.Gets the project class path.Gets the resolved delegates.Gets the resolved external resources and bindings.Gets the resolved flow controller declaration.Gets the resources page.org.eclipse.jdt.core.search.IJavaSearchScopeGets the search scope for descriptor type.Gets the settings page.Gets the source editor.org.eclipse.ui.texteditor.ITextEditorGets the source page editor.org.eclipse.jdt.core.ITypegetTypeFromProject(String typename) Gets the type from project.Gets the type page.Gets the type priorities.Gets the type system description.Gets the XML editor page.voidinit(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput) voidinitSuper(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput) booleanChecks if is ae descriptor.booleanChecks if is aggregate.booleanChecks if is cas consumer descriptor.booleanChecks if is cas initializer descriptor.booleanChecks if is collection reader descriptor.booleanisDirty()booleanChecks if is ext res and bindings descriptor.booleanisFileInWorkspace(String aFileRelPath) Checks if is file in workspace.booleanChecks if is flow controller descriptor.booleanChecks if is fs index collection.booleanChecks if is local processing descriptor.booleanChecks if is primitive.booleanbooleanbooleanChecks if is source folder valid.booleanChecks if is type priority descriptor.booleanChecks if is type system descriptor.booleanChecks if is valid AE.voidjcasGen(org.eclipse.core.runtime.IProgressMonitor monitor) Jcas gen.voidMark all pages stale.voidMark T cas dirty.voidOpen.voidopen(org.eclipse.core.resources.IFile fileToOpen) Open.voidopenTextEditor(String fullPath) Open text editor.voidopenTextEditor(org.eclipse.core.resources.IFile fileToOpen) Open text editor.protected voidpageChange(int newPageIndex) voidpageChangeForCurrentEditor(int newPageIndex) Page change for current editor.voidpageChangeSuper(int newPageIndex) Page change super.Pretty print model.voidremoveDirtyTypeName(String typeName) Removes the dirty type name.voidsetActivePageSuper(int pageIndex) Sets the active page super.protected voidsetActivePageWhileBlockingRecursion(int sourceIndex) Sets the active page while blocking recursion.voidsetAeDescription(AnalysisEngineDescription aAnalysisEngineDescription) Sets the ae description.voidSets the file dirty.voidsetFileDirtyFlag(boolean value) Sets the file dirty flag.voidSets the imported type system description.voidsetInputSuper(org.eclipse.ui.IEditorInput input) Sets the input super.voidsetLimitJCasGenToProjectScope(boolean v) Sets the limit J cas gen to project scope.voidSets the merged fs index collection.voidSets the merged fs index collection.voidSets the merged type priorities.voidSets the merged type priorities.voidSets the merged type system description.voidSets the merged type system description.voidsetPageTextSuper(int pageIndex, String text) Sets the page text super.voidsetPartNameSuper(String partName) Sets the part name super.voidA Merge method doesn't "fit". merging isn't done over aggregates for these.voidSets the resolved external resources and bindings.voidSets the resolved flow controller declaration.voidsetSaveAsStatus(int nStatus) Sets the save as status.voidsetTypeSystemDescription(TypeSystemDescription typeSystemDescription) Sets the type system description.voidUpdate source from model.booleanvalidateInputs(Map typeNameHash) Validate inputs.booleanvalidateIOs(boolean isValidateInputs, Map typeNameHash) Validate I os.booleanvalidateOutputs(Map typeNameHash) Validate outputs.booleanvalidateTypePriorities(Map typeNameHash) Validate type priorities.Methods inherited from class org.eclipse.ui.forms.editor.FormEditoraddPage, addPage, addPage, addPage, addPage, addPage, close, commitPages, configurePage, createPageContainer, createPages, dispose, editorDirtyStateChanged, findPage, getActiveEditor, getActivePageInstance, getCurrentPage, getSelectedPage, getToolkit, removePage, selectReveal, setActivePage, setActivePage, setActivePage, updateActionBarContributorMethods inherited from class org.eclipse.ui.part.MultiPageEditorPartactivateSite, addPageChangedListener, createContainer, createItem, createPartControl, createSite, deactivateSite, findEditors, getActivePage, getAdapter, getContainer, getControl, getEditor, getPageCount, getPageImage, getPageSite, getPageText, handlePropertyChange, initializePageSwitching, removePageChangedListener, setActiveEditor, setControl, setFocus, setPageImage, setPageTextMethods inherited from class org.eclipse.ui.part.EditorPartcheckSite, getEditorInput, getEditorSite, getTitleToolTip, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartNameMethods inherited from class org.eclipse.ui.part.WorkbenchPartaddPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManageraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.ui.IWorkbenchPartaddPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener
- 
Field Details- 
INITIAL_SIZE_TYPE_COLLECTIONSpublic final int INITIAL_SIZE_TYPE_COLLECTIONSThe initial size type collections.- See Also:
 
- 
INITIAL_SIZE_FEATURE_COLLECTIONSpublic final int INITIAL_SIZE_FEATURE_COLLECTIONSThe initial size feature collections.- See Also:
 
- 
PRESERVE_COMMENTSpublic final boolean PRESERVE_COMMENTSThe preserve comments.- See Also:
 
- 
descriptorCASThe descriptor CAS.
- 
allTypesThe all types.
- 
definedTypesWithSupersThe defined types with supers.
- 
sourceIndexprotected int sourceIndexThe source index.
- 
overviewIndexprotected int overviewIndexThe overview index.
- 
typeIndexprotected int typeIndexThe type index.
- 
capabilityIndexprotected int capabilityIndexThe capability index.
- 
indexesIndexprotected int indexesIndexThe indexes index.
- 
resourcesIndexprotected int resourcesIndexThe resources index.
- 
overviewPageThe overview page.
- 
typePageThe type page.
- 
capabilityPageThe capability page.
- 
indexesPageThe indexes page.
- 
resourcesPageThe resources page.
- 
sourceTextEditorThe source text editor.
- 
isBadXMLprotected boolean isBadXMLThe is bad XML.
- 
sourceChangedpublic boolean sourceChangedThe source changed.
- 
m_nSaveAsStatuspublic int m_nSaveAsStatusThe m n save as status.
- 
SAVE_AS_NOT_IN_PROGRESSpublic static final int SAVE_AS_NOT_IN_PROGRESSThe Constant SAVE_AS_NOT_IN_PROGRESS.- See Also:
 
- 
SAVE_AS_STARTEDpublic static final int SAVE_AS_STARTEDThe Constant SAVE_AS_STARTED.- See Also:
 
- 
SAVE_AS_CANCELLEDpublic static final int SAVE_AS_CANCELLEDThe Constant SAVE_AS_CANCELLED.- See Also:
 
- 
SAVE_AS_CONFIRMEDpublic static final int SAVE_AS_CONFIRMEDThe Constant SAVE_AS_CONFIRMED.- See Also:
 
- 
DESCRIPTOR_AEpublic static final int DESCRIPTOR_AEThe Constant DESCRIPTOR_AE.- See Also:
 
- 
DESCRIPTOR_TYPESYSTEMpublic static final int DESCRIPTOR_TYPESYSTEMThe Constant DESCRIPTOR_TYPESYSTEM.- See Also:
 
- 
DESCRIPTOR_INDEXpublic static final int DESCRIPTOR_INDEXThe Constant DESCRIPTOR_INDEX.- See Also:
 
- 
DESCRIPTOR_TYPEPRIORITYpublic static final int DESCRIPTOR_TYPEPRIORITYThe Constant DESCRIPTOR_TYPEPRIORITY.- See Also:
 
- 
DESCRIPTOR_EXTRESANDBINDINGSpublic static final int DESCRIPTOR_EXTRESANDBINDINGSThe Constant DESCRIPTOR_EXTRESANDBINDINGS.- See Also:
 
- 
DESCRIPTOR_COLLECTIONREADERpublic static final int DESCRIPTOR_COLLECTIONREADERThe Constant DESCRIPTOR_COLLECTIONREADER.- See Also:
 
- 
DESCRIPTOR_CASINITIALIZERpublic static final int DESCRIPTOR_CASINITIALIZERThe Constant DESCRIPTOR_CASINITIALIZER.- See Also:
 
- 
DESCRIPTOR_CASCONSUMERpublic static final int DESCRIPTOR_CASCONSUMERThe Constant DESCRIPTOR_CASCONSUMER.- See Also:
 
- 
DESCRIPTOR_FLOWCONTROLLERpublic static final int DESCRIPTOR_FLOWCONTROLLERThe Constant DESCRIPTOR_FLOWCONTROLLER.- See Also:
 
- 
isPageChangeRecursionprotected boolean isPageChangeRecursionThe is page change recursion.
- 
typeDescriptionArray0The Constant typeDescriptionArray0.
- 
PATH_SEPARATORThe Constant PATH_SEPARATOR.
 
- 
- 
Constructor Details- 
MultiPageEditorpublic MultiPageEditor()Instantiates a new multi page editor.
 
- 
- 
Method Details- 
getIsContextLoadedpublic boolean getIsContextLoaded()Gets the checks if is context loaded.- Returns:
- the checks if is context loaded
 
- 
getLimitJCasGenToProjectScopepublic boolean getLimitJCasGenToProjectScope()Gets the limit J cas gen to project scope.- Returns:
- the limit J cas gen to project scope
 
- 
setLimitJCasGenToProjectScopepublic void setLimitJCasGenToProjectScope(boolean v) Sets the limit J cas gen to project scope.- Parameters:
- v- the new limit J cas gen to project scope
 
- 
getDescriptorTypepublic int getDescriptorType()Gets the descriptor type.- Returns:
- the descriptor type
 
- 
descriptorTypeStringDescriptor type string.- Parameters:
- pDescriptorType- the descriptor type
- Returns:
- the string
 
- 
descriptorTypeStringDescriptor type string.- Returns:
- the string
 
- 
isAeDescriptorpublic boolean isAeDescriptor()Checks if is ae descriptor.- Returns:
- true, if is ae descriptor
 
- 
isTypeSystemDescriptorpublic boolean isTypeSystemDescriptor()Checks if is type system descriptor.- Returns:
- true, if is type system descriptor
 
- 
isFsIndexCollectionpublic boolean isFsIndexCollection()Checks if is fs index collection.- Returns:
- true, if is fs index collection
 
- 
isTypePriorityDescriptorpublic boolean isTypePriorityDescriptor()Checks if is type priority descriptor.- Returns:
- true, if is type priority descriptor
 
- 
isExtResAndBindingsDescriptorpublic boolean isExtResAndBindingsDescriptor()Checks if is ext res and bindings descriptor.- Returns:
- true, if is ext res and bindings descriptor
 
- 
isCollectionReaderDescriptorpublic boolean isCollectionReaderDescriptor()Checks if is collection reader descriptor.- Returns:
- true, if is collection reader descriptor
 
- 
isCasInitializerDescriptorpublic boolean isCasInitializerDescriptor()Checks if is cas initializer descriptor.- Returns:
- true, if is cas initializer descriptor
 
- 
isCasConsumerDescriptorpublic boolean isCasConsumerDescriptor()Checks if is cas consumer descriptor.- Returns:
- true, if is cas consumer descriptor
 
- 
isFlowControllerDescriptorpublic boolean isFlowControllerDescriptor()Checks if is flow controller descriptor.- Returns:
- true, if is flow controller descriptor
 
- 
isLocalProcessingDescriptorpublic boolean isLocalProcessingDescriptor()Checks if is local processing descriptor.- Returns:
- true, if is local processing descriptor
 
- 
isPrimitivepublic boolean isPrimitive()Checks if is primitive.- Returns:
- true, if is primitive
 
- 
isAggregatepublic boolean isAggregate()Checks if is aggregate.- Returns:
- true, if is aggregate
 
- 
initSuperpublic 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
 
- 
getCurrentPageSuperpublic int getCurrentPageSuper()Gets the current page super.- Returns:
- the current page super
 
- 
setPartNameSuperSets the part name super.- Parameters:
- partName- the new part name super
 
- 
setPageTextSuperSets the page text super.- Parameters:
- pageIndex- the page index
- text- the text
 
- 
pageChangeSuperpublic void pageChangeSuper(int newPageIndex) Page change super.- Parameters:
- newPageIndex- the new page index
 
- 
setActivePageSuperpublic void setActivePageSuper(int pageIndex) Sets the active page super.- Parameters:
- pageIndex- the new active page super
 
- 
firePropertyChangeSuperpublic void firePropertyChangeSuper(int propertyId) Fire property change super.- Parameters:
- propertyId- the property id
 
- 
setInputSuperpublic void setInputSuper(org.eclipse.ui.IEditorInput input) Sets the input super.- Parameters:
- input- the new input super
 
- 
getSourceEditorGets the source editor.- Returns:
- the source editor
 
- 
createToolkitprotected 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:
- createToolkitin class- org.eclipse.ui.forms.editor.FormEditor
 
- 
addPageAndSetTabTitleprotected 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
 
- 
addPageAndSetTabTitleprotected 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
 
- 
addPagesprotected void addPages()- Specified by:
- addPagesin class- org.eclipse.ui.forms.editor.FormEditor
 
- 
addPagesForCurrentEditorpublic void addPagesForCurrentEditor()Description copied from interface:IUimaMultiPageEditorAdds the pages for current editor.- Specified by:
- addPagesForCurrentEditorin interface- IUimaMultiPageEditor
 
- 
jcasGenpublic void jcasGen(org.eclipse.core.runtime.IProgressMonitor monitor) Jcas gen.- Parameters:
- monitor- the monitor
 
- 
doJCasGenChkSrcpublic void doJCasGenChkSrc(org.eclipse.core.runtime.IProgressMonitor monitor) Do J cas gen chk src.- Parameters:
- monitor- the monitor
 
- 
isSourceFolderValidpublic boolean isSourceFolderValid()Checks if is source folder valid.- Returns:
- true, if is source folder valid
 
- 
isValidAEChecks if is valid AE.- Parameters:
- aAe- the a ae
- Returns:
- true, if is valid AE
 
- 
doSavepublic void doSave(org.eclipse.core.runtime.IProgressMonitor monitor) Saves the multi-page editor's document.- Specified by:
- doSavein interface- org.eclipse.ui.ISaveablePart
- Specified by:
- doSavein class- org.eclipse.ui.part.EditorPart
- Parameters:
- monitor- the monitor
 
- 
doSaveForCurrentEditorpublic void doSaveForCurrentEditor(org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:IUimaMultiPageEditorDo save for current editor.- Specified by:
- doSaveForCurrentEditorin interface- IUimaMultiPageEditor
- Parameters:
- monitor- the monitor
 
- 
doSaveAspublic 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:
- doSaveAsin interface- org.eclipse.ui.ISaveablePart
- Specified by:
- doSaveAsin class- org.eclipse.ui.part.EditorPart
 
- 
doSaveAsForCurrentEditorpublic void doSaveAsForCurrentEditor()Description copied from interface:IUimaMultiPageEditorDo save as for current editor.- Specified by:
- doSaveAsForCurrentEditorin interface- IUimaMultiPageEditor
 
- 
isDirtypublic boolean isDirty()- Specified by:
- isDirtyin interface- org.eclipse.ui.ISaveablePart
- Overrides:
- isDirtyin class- org.eclipse.ui.forms.editor.FormEditor
 
- 
isSaveOnCloseNeededpublic boolean isSaveOnCloseNeeded()- Specified by:
- isSaveOnCloseNeededin interface- org.eclipse.ui.ISaveablePart
- Overrides:
- isSaveOnCloseNeededin class- org.eclipse.ui.part.EditorPart
 
- 
setFileDirtypublic void setFileDirty()Sets the file dirty.
- 
setFileDirtyFlagpublic void setFileDirtyFlag(boolean value) Sets the file dirty flag.- Parameters:
- value- the new file dirty flag
 
- 
initpublic void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput editorInput) throws org.eclipse.ui.PartInitException - Specified by:
- initin interface- org.eclipse.ui.IEditorPart
- Overrides:
- initin class- org.eclipse.ui.forms.editor.FormEditor
- Throws:
- org.eclipse.ui.PartInitException
 
- 
createResourceManagerCreate 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
 
- 
createResourceManagerCreates the resource manager.- Parameters:
- classPath- the class path
- Returns:
- the resource manager
 
- 
isSaveAsAllowedpublic boolean isSaveAsAllowed()- Specified by:
- isSaveAsAllowedin interface- org.eclipse.ui.ISaveablePart
- Specified by:
- isSaveAsAllowedin class- org.eclipse.ui.part.EditorPart
 
- 
pageChangeprotected void pageChange(int newPageIndex) - Overrides:
- pageChangein class- org.eclipse.ui.forms.editor.FormEditor
 
- 
pageChangeForCurrentEditorpublic void pageChangeForCurrentEditor(int newPageIndex) Description copied from interface:IUimaMultiPageEditorPage change for current editor.- Specified by:
- pageChangeForCurrentEditorin interface- IUimaMultiPageEditor
- Parameters:
- newPageIndex- the new page index
 
- 
setActivePageWhileBlockingRecursionprotected void setActivePageWhileBlockingRecursion(int sourceIndex) Sets the active page while blocking recursion.- Parameters:
- sourceIndex- the new active page while blocking recursion
 
- 
getCharSetGets the char set.- Parameters:
- text- the text
- Returns:
- the char set
 
- 
markAllPagesStalepublic void markAllPagesStale()Mark all pages stale.
- 
prettyPrintModelPretty print model.- Returns:
- the string
 
- 
updateSourceFromModelpublic void updateSourceFromModel()Update source from model.
- 
getAeDescriptionGets the ae description.- Returns:
- the ae description
 
- 
setAeDescriptionpublic void setAeDescription(AnalysisEngineDescription aAnalysisEngineDescription) throws ResourceInitializationException Sets the ae description.- Parameters:
- aAnalysisEngineDescription- the new ae description
- Throws:
- ResourceInitializationException- -
 
- 
setTypeSystemDescriptionpublic void setTypeSystemDescription(TypeSystemDescription typeSystemDescription) throws ResourceInitializationException Sets the type system description.- Parameters:
- typeSystemDescription- the new type system description
- Throws:
- ResourceInitializationException- the resource initialization exception
 
- 
getAbsolutePathFromImportGets the absolute path from import.- Parameters:
- importItem- the import item
- Returns:
- the absolute path from import
 
- 
getAggregatePageGets the aggregate page.- Returns:
- the aggregate page
 
- 
getOverviewPageGets the overview page.- Returns:
- the overview page
 
- 
getParameterPageGets the parameter page.- Returns:
- the parameter page
 
- 
getTypePageGets the type page.- Returns:
- the type page
 
- 
getCapabilityPageGets the capability page.- Returns:
- the capability page
 
- 
getIndexesPageGets the indexes page.- Returns:
- the indexes page
 
- 
getResourcesPageGets the resources page.- Returns:
- the resources page
 
- 
getXMLEditorPageGets the XML editor page.- Returns:
- the XML editor page
 
- 
getSettingsPageGets the settings page.- Returns:
- the settings page
 
- 
getFilepublic org.eclipse.core.resources.IFile getFile()Gets the file.- Returns:
- current file being edited
 
- 
getResolvedDelegatesGets the resolved delegates.- Returns:
- the resolved delegates
 
- 
getDelegateAEdescriptionsgets 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
 
- 
markTCasDirtypublic void markTCasDirty()Mark T cas dirty.
- 
getCurrentViewGets the current view.- Returns:
- the current view
 
- 
getProjectpublic org.eclipse.core.resources.IProject getProject()Gets the project.- Returns:
- the project
 
- 
getDescriptorDirectoryGets the descriptor directory.- Returns:
- the descriptor directory
 
- 
getDescriptorRelativePathGets the descriptor relative path.- Parameters:
- aFullOrRelativePath- the a full or relative path
- Returns:
- the descriptor relative path
 
- 
isFileInWorkspaceChecks if is file in workspace.- Parameters:
- aFileRelPath- the a file rel path
- Returns:
- true, if is file in workspace
 
- 
getFullPathFromDescriptorRelativePathGets the full path from descriptor relative path.- Parameters:
- aDescRelPath- the a desc rel path
- Returns:
- the full path from descriptor relative path
 
- 
openpublic void open(org.eclipse.core.resources.IFile fileToOpen) Open.- Parameters:
- fileToOpen- the file to open
 
- 
openTextEditorpublic void openTextEditor(org.eclipse.core.resources.IFile fileToOpen) Open text editor.- Parameters:
- fileToOpen- the file to open
 
- 
getIFileOrFileGets the i file or file.- Parameters:
- relOrAbsPath- the rel or abs path
- Returns:
- the i file or file
 
- 
openOpen.- Parameters:
- fullPath- the full path
 
- 
openTextEditorOpen text editor.- Parameters:
- fullPath- the full path
 
- 
addDirtyTypeNameAdds the dirty type name.- Parameters:
- typeName- the type name
 
- 
removeDirtyTypeNameRemoves the dirty type name.- Parameters:
- typeName- the type name
 
- 
doJCasGenpublic void doJCasGen(org.eclipse.core.runtime.IProgressMonitor monitor) Do J cas gen.- Parameters:
- monitor- the monitor
 
- 
getProjectClassPathGets the project class path.- Returns:
- the project class path
- Throws:
- org.eclipse.core.runtime.CoreException- the core exception
 
- 
getFilteredProjectClassPathpublic 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
 
- 
getPrimarySourceFolderpublic org.eclipse.core.resources.IResource getPrimarySourceFolder()Gets the primary source folder.- Returns:
- the primary source folder
 
- 
setSaveAsStatuspublic void setSaveAsStatus(int nStatus) Sets the save as status.- Parameters:
- nStatus- the new save as status
 
- 
getTypeSystemDescriptionGets the type system description.- Returns:
- the type system description
 
- 
getTypePrioritiesGets the type priorities.- Returns:
- the type priorities
 
- 
getFsIndexCollectionGets the fs index collection.- Returns:
- the fs index collection
 
- 
getExtResAndBindingsGets the ext res and bindings.- Returns:
- the ext res and bindings
 
- 
validateInputsValidate inputs.- Parameters:
- typeNameHash- the type name hash
- Returns:
- true, if successful
 
- 
validateOutputsValidate outputs.- Parameters:
- typeNameHash- the type name hash
- Returns:
- true, if successful
 
- 
validateIOsValidate I os.- Parameters:
- isValidateInputs- the is validate inputs
- typeNameHash- the type name hash
- Returns:
- true, if successful
 
- 
validateTypePrioritiesValidate type priorities.- Parameters:
- typeNameHash- the type name hash
- Returns:
- true, if successful
 
- 
getDelegateResourceSpecifierpublic 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
 
- 
getMessagesToRootCauseGets the messages to root cause.- Parameters:
- e- the e
- Returns:
- the messages to root cause
 
- 
getFadeColorpublic org.eclipse.swt.graphics.Color getFadeColor()Gets the fade color.- Returns:
- the fade color
 
- 
setMergedTypeSystemDescriptionSets the merged type system description.- Parameters:
- saved- the new merged type system description
 
- 
setImportedTypeSystemDescriptionSets the imported type system description.- Parameters:
- saved- the new imported type system description
 
- 
setMergedTypeSystemDescriptionSets the merged type system description.- Throws:
- ResourceInitializationException- the resource initialization exception
 
- 
getMergedTypeSystemDescriptionGets the merged type system description.- Returns:
- the merged type system description
 
- 
getImportedTypeSystemDesriptionGets the imported type system desription.- Returns:
- the imported type system desription
 
- 
setMergedFsIndexCollectionSets the merged fs index collection.- Throws:
- ResourceInitializationException- the resource initialization exception
 
- 
setMergedFsIndexCollectionSets the merged fs index collection.- Parameters:
- saved- the new merged fs index collection
 
- 
getMergedFsIndexCollectionGets the merged fs index collection.- Returns:
- the merged fs index collection
 
- 
setMergedTypePrioritiesSets the merged type priorities.- Throws:
- ResourceInitializationException- the resource initialization exception
 
- 
setMergedTypePrioritiesSets the merged type priorities.- Parameters:
- saved- the new merged type priorities
 
- 
getMergedTypePrioritiesGets the merged type priorities.- Returns:
- the merged type priorities
 
- 
setResolvedFlowControllerDeclarationSets the resolved flow controller declaration.- Throws:
- InvalidXMLException- the invalid XML exception
 
- 
getResolvedFlowControllerDeclarationGets the resolved flow controller declaration.- Returns:
- the resolved flow controller declaration
 
- 
setResolvedExternalResourcesAndBindingsA 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- -
 
- 
setResolvedExternalResourcesAndBindingsSets the resolved external resources and bindings.- Parameters:
- saved- the new resolved external resources and bindings
 
- 
getResolvedExternalResourcesAndBindingsGets the resolved external resources and bindings.- Returns:
- the resolved external resources and bindings
 
- 
getImportedFsIndexCollectionGets the imported fs index collection.- Returns:
- the imported fs index collection
 
- 
getImportedTypePrioritiesGets the imported type priorities.- Returns:
- the imported type priorities
 
- 
getSourcePageEditorpublic org.eclipse.ui.texteditor.ITextEditor getSourcePageEditor()Gets the source page editor.- Returns:
- the source page editor
 
- 
getJavaProjectpublic org.eclipse.jdt.core.IJavaProject getJavaProject()Gets the java project.- Returns:
- the java project
 
- 
getTypeFromProjectGets the type from project.- Parameters:
- typename- the typename
- Returns:
- the type from project
 
- 
getAnalysisComponentITypepublic org.eclipse.jdt.core.IType getAnalysisComponentIType()Gets the analysis component I type.- Returns:
- the analysis component I type
 
- 
getBaseAnnotatorITypepublic org.eclipse.jdt.core.IType getBaseAnnotatorIType()Gets the base annotator I type.- Returns:
- the base annotator I type
 
- 
getCollectionReaderITypepublic org.eclipse.jdt.core.IType getCollectionReaderIType()Gets the collection reader I type.- Returns:
- the collection reader I type
 
- 
getCasInitializerITypepublic org.eclipse.jdt.core.IType getCasInitializerIType()Gets the cas initializer I type.- Returns:
- the cas initializer I type
 
- 
getCasConsumerITypepublic org.eclipse.jdt.core.IType getCasConsumerIType()Gets the cas consumer I type.- Returns:
- the cas consumer I type
 
- 
getFlowControllerITypepublic org.eclipse.jdt.core.IType getFlowControllerIType()Gets the flow controller I type.- Returns:
- the flow controller I type
 
- 
getSearchScopeForDescriptorTypepublic org.eclipse.jdt.core.search.IJavaSearchScope getSearchScopeForDescriptorType()Gets the search scope for descriptor type.- Returns:
- the search scope for descriptor type
 
- 
createCaspublic 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
 
 
-