public class AggregationComposerEditor extends EditorPart
Modifier and Type | Class and Description |
---|---|
protected class |
AggregationComposerEditor.AddAggregationAction |
static class |
AggregationComposerEditor.SaveType |
Modifier and Type | Field and Description |
---|---|
static TGContentType |
AGGREGATION_CONTENT_TYPE |
ArrayList<Object> |
childList |
static TGContentType |
COLLECTION_CONTENT_TYPE |
static TGContentType |
EDITION_CONTENT_TYPE |
PROP_DIRTY, PROP_INPUT
PROP_TITLE
Constructor and Description |
---|
AggregationComposerEditor() |
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
addPartPropertyListener, addPropertyListener, 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
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener
getAdapter
public static final TGContentType AGGREGATION_CONTENT_TYPE
public static final TGContentType EDITION_CONTENT_TYPE
public static final TGContentType COLLECTION_CONTENT_TYPE
public void resetChildList()
public void setViewerAndAggregationRoot()
public Aggregation getViewerRoot()
public void createPartControl(Composite parent)
createPartControl
in interface IWorkbenchPart
createPartControl
in class WorkbenchPart
IWorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)
public void hookContextMenu()
public void dispose()
dispose
in interface IWorkbenchPart
dispose
in class WorkbenchPart
public void setFocus()
setFocus
in interface IWorkbenchPart
setFocus
in class WorkbenchPart
protected void addSection(TGContentType contentType, IAggregationTypeAdapter extension)
contentType
- the content type of the aggregation to add. Must, of course,
be an aggregation content type.extension
- an extension adapter that will configure the aggregation. May
be null
, meaning no special configuration will
happen.public void save(AggregationComposerEditor.SaveType saveType)
public TextGridProject getTargetProject()
public void setTargetProject(TextGridProject targetProject)
public Aggregation getAggregationRoot()
public void loadAggregation(Object object)
public void importAggregation(Aggregation target, Object object)
public IStatus fetchAggregation(TextGridObject aggregation, SubMonitor progress, Aggregation actualRoot)
public ArrayList<Object> proofImportAggregation(Aggregation target, Object object)
public ArrayList<Object> fetchAggregation4ZyklusProofing(TextGridObject aggregation, Aggregation actualRoot)
public boolean getIsChanged()
public void setIsChanged(boolean isChanged)
public TextGridObject getLoadObject()
public void setLoadObject(TextGridObject loadObject)
public boolean isBusy()
public void setIsBusy(boolean value)
public TreeViewer getViewer()
public void doSave(IProgressMonitor monitor)
doSave
in interface ISaveablePart
doSave
in class EditorPart
public void doSaveAs()
doSaveAs
in interface ISaveablePart
doSaveAs
in class EditorPart
public void init(IEditorSite site, IEditorInput input) throws PartInitException
init
in interface IEditorPart
init
in class EditorPart
PartInitException
public boolean isDirty()
isDirty
in interface ISaveablePart
isDirty
in class EditorPart
public boolean isSaveAsAllowed()
isSaveAsAllowed
in interface ISaveablePart
isSaveAsAllowed
in class EditorPart