Class ClasspathFixProcessor.ClasspathFixProposal

  • Enclosing class:
    ClasspathFixProcessor

    public abstract static class ClasspathFixProcessor.ClasspathFixProposal
    extends Object
    A proposal to fix a class path issue.
    • Constructor Detail

      • ClasspathFixProposal

        public ClasspathFixProposal()
    • Method Detail

      • createChange

        public abstract Change createChange​(IProgressMonitor monitor)
                                     throws CoreException
        Returns the change to invoke when the proposal is selected.
        Parameters:
        monitor - the progress monitor
        Returns:
        the change
        Throws:
        CoreException - thrown when the creation of the change failed
      • getDisplayString

        public abstract String getDisplayString()
        Returns the string to be displayed in a list of proposals.
        Returns:
        the string to be displayed
      • getAdditionalProposalInfo

        public abstract String getAdditionalProposalInfo()
        Returns optional additional information about the proposal. The additional information will be presented to assist the user in deciding if the selected proposal is the desired choice.
        Returns:
        the additional information or null
      • getImage

        public abstract Image getImage()
        Returns the image to be displayed in the list of completion proposals. The image would typically be shown to the left of the display string.
        Returns:
        the image to be shown or null if no image is desired
      • getRelevance

        public abstract int getRelevance()
        Returns the relevance of this completion proposal.

        The relevance is used to determine if this proposal is more relevant than another proposal.

        Returns:
        the relevance of this completion proposal