public class AnnotationEditor extends ModelMultiPageEditorPart implements IAnnotationEditor
ModelMultiPageEditorPart.ReverseAdapterFactoryContentProvider
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DOCUMENTS_FOLDER_NAME |
adapterFactory, changedResources, contentOutlinePage, contentOutlineStatusLineManager, contentOutlineViewer, currentViewer, currentViewerPane, editingDomain, editorSelection, markerHelper, movedResources, partListener, problemIndicationAdapter, propertySheetPage, removedResources, resource, resourceToDiagnosticMap, savedResources, selectionChangedListener, selectionChangedListeners, selectionViewer, undoContext, updateProblemIndication, workspaceSynchronizer
ID
Constructor and Description |
---|
AnnotationEditor() |
Modifier and Type | Method and Description |
---|---|
protected void |
Annotate() |
IMarkingEditorComponent |
createEditorForFile(java.lang.String uriString)
Creates an editor for the given file
|
void |
createModel()
This is the method called to load a resource into the editing domain's
resource set based on the editor's input.
|
void |
createPages()
This is the method used by the framework to install your own controls
|
Annotation |
createSelectedAnnotation()
Returns an Annotaiton object for currently selected text;
|
protected org.eclipse.core.resources.IFolder |
getDocumentsFolder()
Returns the folder containing all documents.
|
org.eclipse.emf.ecore.resource.Resource |
getModel() |
protected java.lang.String |
getString(java.lang.String key)
This looks up a string in the plugin's plugin.properties file.
|
protected java.lang.String |
getString(java.lang.String key,
java.lang.Object s1)
This looks up a string in plugin.properties, making a substitution.
|
protected void |
handleResourcesChanged(org.eclipse.emf.common.command.Command aCommand)
Handles resource changed event in the following way: If resource changed
is a file annotation, editor markings are updated.
|
void |
handleSelectedAnnotation() |
void |
handleSelectedAnnotation(java.util.List<FileAnnotation> annotations)
Handles the selected File Annotations to be shown in the Annotation View
|
protected void |
historyNotificationPropertyChange()
Notification method is called when properties have changed.
|
protected void |
hookDoubleClickAction()
Handle double click actions on the selection viewer.
|
protected void |
initializeEditingDomain()
This sets up the editing domain for the model editor.
|
void |
log(java.lang.Object logEntry)
Log the entry
|
void |
selectAnnotation(FileAnnotation selection)
Selects the given annotation in the file.
|
addSelectionChangedListener, analyzeResourceProblems, createContextMenuFor, dispose, doSave, doSaveAs, doSaveAs, firePropertyChange, getActionBarContributor, getActionBars, getAdapter, getAdapterFactory, getContentOutlinePage, getEditingDomain, getPropertySheetPage, getResource, getSelection, getUndoContext, getViewer, gotoMarker, handleActivate, handleChangedResource, handleContentOutlineSelection, handleDirtyConflict, handleMovedResource, hideTabs, init, isDirty, isPersisted, isSaveAsAllowed, menuAboutToShow, removeSelectionChangedListener, setCurrentViewer, setCurrentViewerPane, setSelection, setSelectionToViewer, setStatusLineManager, showOutlineView, showTabs, updateProblemIndication
activateSite, addPage, addPage, addPage, addPage, addPageChangedListener, createPageContainer, createPartControl, createSite, deactivateSite, findEditors, getActiveEditor, getActivePage, getContainer, getControl, getEditor, getPageCount, getPageImage, getPageSite, getPageText, getSelectedPage, handlePropertyChange, initializePageSwitching, pageChange, removePage, removePageChangedListener, setActiveEditor, setActivePage, setControl, setFocus, setPageImage, setPageText
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, 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
getAdapterFactory, getEditorSite
addPropertyListener, createPartControl, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setFocus
public static final java.lang.String DOCUMENTS_FOLDER_NAME
protected void initializeEditingDomain()
initializeEditingDomain
in class ModelMultiPageEditorPart
public void createModel()
createModel
in class ModelMultiPageEditorPart
protected void handleResourcesChanged(org.eclipse.emf.common.command.Command aCommand)
handleResourcesChanged
in class ModelMultiPageEditorPart
protected void Annotate()
public void createPages()
createPages
in class ModelMultiPageEditorPart
protected java.lang.String getString(java.lang.String key)
getString
in class ModelMultiPageEditorPart
protected java.lang.String getString(java.lang.String key, java.lang.Object s1)
getString
in class ModelMultiPageEditorPart
public Annotation createSelectedAnnotation()
IAnnotationEditor
createSelectedAnnotation
in interface IAnnotationEditor
protected org.eclipse.core.resources.IFolder getDocumentsFolder()
public IMarkingEditorComponent createEditorForFile(java.lang.String uriString)
IAnnotationEditor
createEditorForFile
in interface IAnnotationEditor
public void selectAnnotation(FileAnnotation selection)
selectAnnotation
in interface IAnnotationEditor
public void handleSelectedAnnotation(java.util.List<FileAnnotation> annotations)
handleSelectedAnnotation
in interface IAnnotationEditor
public void handleSelectedAnnotation()
handleSelectedAnnotation
in interface IAnnotationEditor
public void log(java.lang.Object logEntry)
ModelMultiPageEditorPart
log
in class ModelMultiPageEditorPart
public org.eclipse.emf.ecore.resource.Resource getModel()
getModel
in interface IAnnotationEditor
protected void historyNotificationPropertyChange()
ModelMultiPageEditorPart
historyNotificationPropertyChange
in class ModelMultiPageEditorPart
protected void hookDoubleClickAction()
ModelMultiPageEditorPart
hookDoubleClickAction
in class ModelMultiPageEditorPart