Class CompareWithEditorAction.EditorsContentProvider

  • All Implemented Interfaces:
    org.eclipse.jface.viewers.IContentProvider, org.eclipse.jface.viewers.IStructuredContentProvider
    Enclosing class:
    CompareWithEditorAction

    public static final class CompareWithEditorAction.EditorsContentProvider
    extends java.lang.Object
    implements org.eclipse.jface.viewers.IStructuredContentProvider
    This provider must not be re-used for more then one execution, as it creates cache of editors
    • Field Detail

      • references

        private final org.eclipse.ui.IEditorReference[] references
      • editorsInitialized

        private static boolean editorsInitialized
      • jobStarted

        private static boolean jobStarted
    • Method Detail

      • initEditors

        private static void initEditors​(org.eclipse.ui.IEditorReference[] editorReferences)
      • sameEditor

        private boolean sameEditor​(AbstractEditor abstractEditor)
      • similarEditor

        private boolean similarEditor​(org.eclipse.ui.IEditorReference reference)
      • getElements

        public java.lang.Object[] getElements​(java.lang.Object inputElement)
        Specified by:
        getElements in interface org.eclipse.jface.viewers.IStructuredContentProvider
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.eclipse.jface.viewers.IContentProvider
      • inputChanged

        public void inputChanged​(org.eclipse.jface.viewers.Viewer viewer,
                                 java.lang.Object oldInput,
                                 java.lang.Object newInput)
        Specified by:
        inputChanged in interface org.eclipse.jface.viewers.IContentProvider
      • isDuplicated

        public boolean isDuplicated​(org.eclipse.ui.IEditorReference ref)