Class OpenProbeEditorReference

  • All Implemented Interfaces:
    org.eclipse.ui.IEditorReference, org.eclipse.ui.IWorkbenchPartReference

    public class OpenProbeEditorReference
    extends Object
    implements org.eclipse.ui.IEditorReference
    Editor reference implementation used for testing against editor matching strategies when we have no actual editor reference on hands.
    See Also:
    DtEditorMatchingStrategy.matches(IEditorReference, IEditorInput)
    • Constructor Detail

      • OpenProbeEditorReference

        public OpenProbeEditorReference()
        Instantiates a new open probe editor reference.
    • Method Detail

      • getPart

        public org.eclipse.ui.IWorkbenchPart getPart​(boolean restore)
        Specified by:
        getPart in interface org.eclipse.ui.IWorkbenchPartReference
      • getTitle

        public String getTitle()
        Specified by:
        getTitle in interface org.eclipse.ui.IWorkbenchPartReference
      • getTitleImage

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

        public String getTitleToolTip()
        Specified by:
        getTitleToolTip in interface org.eclipse.ui.IWorkbenchPartReference
      • getId

        public String getId()
        Specified by:
        getId in interface org.eclipse.ui.IWorkbenchPartReference
      • addPropertyListener

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

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

        public org.eclipse.ui.IWorkbenchPage getPage()
        Specified by:
        getPage in interface org.eclipse.ui.IWorkbenchPartReference
      • getPartName

        public String getPartName()
        Specified by:
        getPartName in interface org.eclipse.ui.IWorkbenchPartReference
      • getContentDescription

        public String getContentDescription()
        Specified by:
        getContentDescription in interface org.eclipse.ui.IWorkbenchPartReference
      • isDirty

        public boolean isDirty()
        Specified by:
        isDirty in interface org.eclipse.ui.IWorkbenchPartReference
      • getPartProperty

        public String getPartProperty​(String key)
        Specified by:
        getPartProperty in interface org.eclipse.ui.IWorkbenchPartReference
      • addPartPropertyListener

        public void addPartPropertyListener​(org.eclipse.jface.util.IPropertyChangeListener listener)
        Specified by:
        addPartPropertyListener in interface org.eclipse.ui.IWorkbenchPartReference
      • removePartPropertyListener

        public void removePartPropertyListener​(org.eclipse.jface.util.IPropertyChangeListener listener)
        Specified by:
        removePartPropertyListener in interface org.eclipse.ui.IWorkbenchPartReference
      • getFactoryId

        public String getFactoryId()
        Specified by:
        getFactoryId in interface org.eclipse.ui.IEditorReference
      • getName

        public String getName()
        Specified by:
        getName in interface org.eclipse.ui.IEditorReference
      • getEditor

        public org.eclipse.ui.IEditorPart getEditor​(boolean restore)
        Specified by:
        getEditor in interface org.eclipse.ui.IEditorReference
      • isPinned

        public boolean isPinned()
        Specified by:
        isPinned in interface org.eclipse.ui.IEditorReference
      • getEditorInput

        public org.eclipse.ui.IEditorInput getEditorInput()
                                                   throws org.eclipse.ui.PartInitException
        Specified by:
        getEditorInput in interface org.eclipse.ui.IEditorReference
        Throws:
        org.eclipse.ui.PartInitException