Class CUCorrectionProposal

    • Constructor Detail

      • CUCorrectionProposal

        public CUCorrectionProposal​(String name,
                                    ICompilationUnit cu,
                                    TextChange change,
                                    int relevance,
                                    Image image)
        Constructs a correction proposal working on a compilation unit with a given text change.
        Parameters:
        name - the name that is displayed in the proposal selection dialog
        cu - the compilation unit to which the change can be applied
        change - the change that is executed when the proposal is applied or null if implementors override addEdits(IDocument, TextEdit) to provide the text edits or createTextChange() to provide a text change
        relevance - the relevance of this proposal
        image - the image that is displayed for this proposal or null if no image is desired
      • CUCorrectionProposal

        public CUCorrectionProposal​(String name,
                                    ICompilationUnit cu,
                                    TextChange change,
                                    int relevance)
        Constructs a correction proposal working on a compilation unit with a given text change. Uses the default image for this proposal.
        Parameters:
        name - the name that is displayed in the proposal selection dialog
        cu - the compilation unit to which the change can be applied
        change - the change that is executed when the proposal is applied or null if implementors override addEdits(IDocument, TextEdit) to provide the text edits or createTextChange() to provide a text change.
        relevance - the relevance of this proposal
      • CUCorrectionProposal

        protected CUCorrectionProposal​(String name,
                                       ICompilationUnit cu,
                                       int relevance,
                                       Image image)
        Constructs a correction proposal working on a compilation unit.

        Users have to override addEdits(IDocument, TextEdit) to provide the text edits or createTextChange() to provide a text change.

        Parameters:
        name - the name that is displayed in the proposal selection dialog
        cu - the compilation unit on that the change works
        relevance - the relevance of this proposal
        image - the image that is displayed for this proposal or null if no image is desired