Class MockIEditor

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IWorkbenchPart

    public class MockIEditor
    extends Object
    implements org.eclipse.ui.IEditorPart
    • Constructor Detail

      • MockIEditor

        public MockIEditor()
    • Method Detail

      • addPropertyListener

        public void addPropertyListener​(org.eclipse.ui.IPropertyListener listener)
        Specified by:
        addPropertyListener in interface org.eclipse.ui.IWorkbenchPart
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.eclipse.ui.IWorkbenchPart
      • getSite

        public org.eclipse.ui.IWorkbenchPartSite getSite()
        Specified by:
        getSite in interface org.eclipse.ui.IWorkbenchPart
      • getTitle

        public String getTitle()
        Specified by:
        getTitle in interface org.eclipse.ui.IWorkbenchPart
      • getTitleToolTip

        public String getTitleToolTip()
        Specified by:
        getTitleToolTip in interface org.eclipse.ui.IWorkbenchPart
      • removePropertyListener

        public void removePropertyListener​(org.eclipse.ui.IPropertyListener listener)
        Specified by:
        removePropertyListener in interface org.eclipse.ui.IWorkbenchPart
      • setFocus

        public void setFocus()
        Specified by:
        setFocus in interface org.eclipse.ui.IWorkbenchPart
      • getAdapter

        public <T> T getAdapter​(Class<T> adapter)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdaptable
      • doSave

        public void doSave​(org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        doSave in interface org.eclipse.ui.ISaveablePart
      • doSaveAs

        public void doSaveAs()
        Specified by:
        doSaveAs in interface org.eclipse.ui.ISaveablePart
      • isDirty

        public boolean isDirty()
        Specified by:
        isDirty in interface org.eclipse.ui.ISaveablePart
      • isSaveAsAllowed

        public boolean isSaveAsAllowed()
        Specified by:
        isSaveAsAllowed in interface org.eclipse.ui.ISaveablePart
      • isSaveOnCloseNeeded

        public boolean isSaveOnCloseNeeded()
        Specified by:
        isSaveOnCloseNeeded in interface org.eclipse.ui.ISaveablePart
      • getEditorInput

        public org.eclipse.ui.IEditorInput getEditorInput()
        Specified by:
        getEditorInput in interface org.eclipse.ui.IEditorPart
      • getEditorSite

        public org.eclipse.ui.IEditorSite getEditorSite()
        Specified by:
        getEditorSite in interface org.eclipse.ui.IEditorPart
      • init

        public void init​(org.eclipse.ui.IEditorSite site,
                         org.eclipse.ui.IEditorInput input)
                  throws org.eclipse.ui.PartInitException
        Specified by:
        init in interface org.eclipse.ui.IEditorPart
        Throws:
        org.eclipse.ui.PartInitException
      • createPartControl

        public void createPartControl​(org.eclipse.swt.widgets.Composite parent)
        Specified by:
        createPartControl in interface org.eclipse.ui.IWorkbenchPart
      • getTitleImage

        public org.eclipse.swt.graphics.Image getTitleImage()
        Specified by:
        getTitleImage in interface org.eclipse.ui.IWorkbenchPart