org.ocopomo.annotation.extension.editor
Class AnnotationEditorExtension

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.EditorPart
              extended by org.eclipse.ui.part.MultiPageEditorPart
                  extended by org.ocopomo.emf.edit.ModelMultiPageEditorPart
                      extended by org.ocopomo.annotation.extension.editor.AnnotationEditorExtension
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.emf.common.ui.viewer.IViewerProvider, org.eclipse.emf.edit.domain.IEditingDomainProvider, org.eclipse.jface.action.IMenuListener, org.eclipse.jface.dialogs.IPageChangeProvider, org.eclipse.jface.viewers.ISelectionProvider, org.eclipse.ui.ide.IGotoMarker, 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, org.ocopomo.annotation.presentation.IAnnotationEditor

public class AnnotationEditorExtension
extends org.ocopomo.emf.edit.ModelMultiPageEditorPart
implements org.ocopomo.annotation.presentation.IAnnotationEditor


Nested Class Summary
 
Nested classes/interfaces inherited from class org.ocopomo.emf.edit.ModelMultiPageEditorPart
org.ocopomo.emf.edit.ModelMultiPageEditorPart.ReverseAdapterFactoryContentProvider
 
Field Summary
 
Fields inherited from interface org.ocopomo.annotation.presentation.IAnnotationEditor
ID
 
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUT
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
AnnotationEditorExtension()
           
 
Method Summary
 org.ocopomo.annotation.presentation.IMarkingEditorComponent createEditorForFile(java.lang.String uriString)
           
 void createModel()
           
 void createPages()
           
 org.ocopomo.annotation.model.Annotation createSelectedAnnotation()
           
 void doSave(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
           
 org.eclipse.emf.ecore.resource.Resource getModel()
           
 void handleSelectedAnnotation()
           
 void handleSelectedAnnotation(java.util.List<org.ocopomo.annotation.model.FileAnnotation> annotations)
           
 boolean isDirty()
           
 boolean isDirtyPage()
           
 void log(java.lang.Object logEntry)
           
 void selectAnnotation(org.ocopomo.annotation.model.FileAnnotation selection)
           
 
Methods inherited from class org.ocopomo.emf.edit.ModelMultiPageEditorPart
addSelectionChangedListener, analyzeResourceProblems, dispose, doSaveAs, getActionBarContributor, getActionBars, getAdapter, getAdapterFactory, getContentOutlinePage, getEditingDomain, getPropertySheetPage, getSelection, getUndoContext, getViewer, gotoMarker, handleContentOutlineSelection, init, isSaveAsAllowed, menuAboutToShow, removeSelectionChangedListener, setCurrentViewer, setCurrentViewerPane, setSelection, setSelectionToViewer, setStatusLineManager
 
Methods inherited from class org.eclipse.ui.part.MultiPageEditorPart
addPage, addPage, addPage, addPage, addPageChangedListener, createPartControl, findEditors, getActivePage, getSelectedPage, removePage, removePageChangedListener, setActiveEditor, setFocus
 
Methods inherited from class org.eclipse.ui.part.EditorPart
getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setInitializationData
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ocopomo.annotation.presentation.IAnnotationEditor
getAdapterFactory, getEditorSite
 
Methods inherited from interface org.eclipse.ui.IEditorPart
getEditorInput, init
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, createPartControl, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setFocus
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.ui.ISaveablePart
doSaveAs, isSaveAsAllowed, isSaveOnCloseNeeded
 
Methods inherited from interface org.eclipse.emf.edit.domain.IEditingDomainProvider
getEditingDomain
 

Constructor Detail

AnnotationEditorExtension

public AnnotationEditorExtension()
Method Detail

createModel

public void createModel()
Overrides:
createModel in class org.ocopomo.emf.edit.ModelMultiPageEditorPart

doSave

public void doSave(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Specified by:
doSave in interface org.eclipse.ui.ISaveablePart
Overrides:
doSave in class org.ocopomo.emf.edit.ModelMultiPageEditorPart

isDirty

public boolean isDirty()
Specified by:
isDirty in interface org.eclipse.ui.ISaveablePart
Overrides:
isDirty in class org.ocopomo.emf.edit.ModelMultiPageEditorPart

isDirtyPage

public boolean isDirtyPage()

createPages

public void createPages()
Overrides:
createPages in class org.ocopomo.emf.edit.ModelMultiPageEditorPart

createSelectedAnnotation

public org.ocopomo.annotation.model.Annotation createSelectedAnnotation()
Specified by:
createSelectedAnnotation in interface org.ocopomo.annotation.presentation.IAnnotationEditor

createEditorForFile

public org.ocopomo.annotation.presentation.IMarkingEditorComponent createEditorForFile(java.lang.String uriString)
Specified by:
createEditorForFile in interface org.ocopomo.annotation.presentation.IAnnotationEditor

selectAnnotation

public void selectAnnotation(org.ocopomo.annotation.model.FileAnnotation selection)
Specified by:
selectAnnotation in interface org.ocopomo.annotation.presentation.IAnnotationEditor

handleSelectedAnnotation

public void handleSelectedAnnotation(java.util.List<org.ocopomo.annotation.model.FileAnnotation> annotations)
Specified by:
handleSelectedAnnotation in interface org.ocopomo.annotation.presentation.IAnnotationEditor

handleSelectedAnnotation

public void handleSelectedAnnotation()
Specified by:
handleSelectedAnnotation in interface org.ocopomo.annotation.presentation.IAnnotationEditor

log

public void log(java.lang.Object logEntry)
Specified by:
log in class org.ocopomo.emf.edit.ModelMultiPageEditorPart

getModel

public org.eclipse.emf.ecore.resource.Resource getModel()
Specified by:
getModel in interface org.ocopomo.annotation.presentation.IAnnotationEditor