public class CollationSetEditor extends EditorPart implements IReusableEditor, IResourceChangeListener
CollationSetEditor
also
determines which result pages will be shown,
and the editor manages not only the CollationSet
, but also the
CollationResults
.Modifier and Type | Class and Description |
---|---|
static interface |
CollationSetEditor.ICollationEventHandler
Event listener that is notified when a collation run has finished for
this editor and thus new
CollationResults object is available. |
Modifier and Type | Field and Description |
---|---|
static String |
ID |
protected boolean |
readOnly |
PROP_DIRTY, PROP_INPUT
PROP_TITLE
Constructor and Description |
---|
CollationSetEditor() |
Modifier and Type | Method and Description |
---|---|
void |
addCollationListener(CollationSetEditor.ICollationEventHandler listener) |
void |
collate()
Triggers the actual collation (after some optional confirmations by the
user)
|
void |
createPartControl(Composite parent)
Create contents of the editor part.
|
void |
createRegularisationSet()
Helper method that creates a new normalization and associates it with the
CollationSet in this editor. |
void |
deleteSelection()
Deletes all currently selected witnesses.
|
void |
doSave(IProgressMonitor monitor) |
void |
doSaveAs()
Not yet implemented.
|
CollationResults |
getCollationResults() |
CollationSet |
getCollationSet() |
protected CheckboxTreeViewer |
getCollationSetViewer() |
protected info.textgrid.lab.core.model.TextGridObject |
getInputObject() |
CollationSetWitness[] |
getSelectedWitnesses() |
void |
init(IEditorSite site,
IEditorInput input)
Loading happens in the background!
|
boolean |
isDirty() |
boolean |
isSaveAsAllowed() |
void |
removeCollationListener(CollationSetEditor.ICollationEventHandler listener) |
void |
resourceChanged(IResourceChangeEvent event) |
protected void |
setCollationResults(CollationResults collationResults)
Called after the
CollateJob is done. |
void |
setDirty(boolean dirty) |
void |
setFocus() |
void |
setInput(IEditorInput input)
Causes the given input to be loaded in the background.
|
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInputWithNotify, setPartName
addPartPropertyListener, addPropertyListener, dispose, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEditorInput, getEditorSite
addPropertyListener, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
getAdapter
isSaveOnCloseNeeded
public static final String ID
protected boolean readOnly
public void addCollationListener(CollationSetEditor.ICollationEventHandler listener)
public void removeCollationListener(CollationSetEditor.ICollationEventHandler listener)
public CollationSet getCollationSet()
public CollationResults getCollationResults()
protected void setCollationResults(CollationResults collationResults)
CollateJob
is done. May be called from outside
of the UI thread.public void createPartControl(Composite parent)
createPartControl
in interface IWorkbenchPart
createPartControl
in class WorkbenchPart
parent
- public void createRegularisationSet()
CollationSet
in this editor. Note that this immediately requests
an URI.public void setFocus()
setFocus
in interface IWorkbenchPart
setFocus
in class WorkbenchPart
public void doSave(IProgressMonitor monitor)
doSave
in interface ISaveablePart
doSave
in class EditorPart
public void doSaveAs()
doSaveAs
in interface ISaveablePart
doSaveAs
in class EditorPart
EditorPart.doSaveAs()
public void init(IEditorSite site, IEditorInput input) throws PartInitException
init
in interface IEditorPart
init
in class EditorPart
PartInitException
EditorPart.init(org.eclipse.ui.IEditorSite,
org.eclipse.ui.IEditorInput)
,
setInput(IEditorInput)
public void setInput(IEditorInput input)
setInput
in interface IReusableEditor
setInput
in class EditorPart
EditorPart.setInput(org.eclipse.ui.IEditorInput)
protected info.textgrid.lab.core.model.TextGridObject getInputObject()
public boolean isDirty()
isDirty
in interface ISaveablePart
isDirty
in class EditorPart
public void setDirty(boolean dirty)
public boolean isSaveAsAllowed()
isSaveAsAllowed
in interface ISaveablePart
isSaveAsAllowed
in class EditorPart
protected CheckboxTreeViewer getCollationSetViewer()
public void collate()
public CollationSetWitness[] getSelectedWitnesses()
public void deleteSelection()
public void resourceChanged(IResourceChangeEvent event)
resourceChanged
in interface IResourceChangeListener
Copyright © 2013 TextGrid. All Rights Reserved.