Class RevisionInformation

    • Constructor Detail

      • RevisionInformation

        public RevisionInformation()
        Creates a new revision information model.
    • Method Detail

      • addRevision

        public void addRevision​(Revision revision)
        Adds a revision.
        Parameters:
        revision - a revision
      • getRevisions

        public List<Revision> getRevisions()
        Returns the contained revisions.
        Returns:
        an unmodifiable view of the contained revisions
      • getRanges

        public List<RevisionRange> getRanges()
        Returns the line ranges of this revision information. The returned information is only valid at the moment it is returned, and may change as the annotated document is modified. See IRevisionListener for a way to be informed when the revision information changes. The returned list is sorted by document offset.
        Returns:
        an unmodifiable view of the line ranges
        Since:
        3.3
        See Also:
        IRevisionListener
      • applyDiff

        public void applyDiff​(org.eclipse.jface.internal.text.revisions.Hunk[] hunks)
        Adjusts the revision information to the given diff information. Any previous diff information is discarded. Note: This is an internal framework method and must not be called by clients.
        Parameters:
        hunks - the diff hunks to adjust the revision information to
        Since:
        3.3
        Restriction:
        This method is not intended to be referenced by clients.
      • setHoverControlCreator

        public void setHoverControlCreator​(IInformationControlCreator creator)
        Sets the hover control creator.

        Note: The created information control must be able to display the object returned by the concrete implementation of Revision.getHoverInfo().

        Parameters:
        creator - the control creator
        Since:
        3.3
      • setInformationPresenterControlCreator

        public void setInformationPresenterControlCreator​(IInformationControlCreator creator)
        Sets the information presenter control creator.
        Parameters:
        creator - the control creator
        Since:
        3.3