Class ChangeCorrectionProposal

java.lang.Object
org.eclipse.jdt.core.manipulation.ChangeCorrectionProposalCore
org.eclipse.jdt.ui.text.java.correction.ChangeCorrectionProposal
All Implemented Interfaces:
ICommandAccess, IJavaCompletionProposal, ICompletionProposal, ICompletionProposalExtension5, ICompletionProposalExtension6
Direct Known Subclasses:
CUCorrectionProposal

Implementation of a Java completion proposal to be used for quick fix and quick assist proposals that are based on a Change. The proposal offers additional proposal information (based on the Change).
Since:
3.8
  • Constructor Details

    • ChangeCorrectionProposal

      public ChangeCorrectionProposal(String name, Change change, int relevance, Image image)
      Constructs a change correction proposal.
      Parameters:
      name - the name that is displayed in the proposal selection dialog
      change - the change that is executed when the proposal is applied or null if the change will be created by implementors of ChangeCorrectionProposalCore.createChange()
      relevance - the relevance of this proposal
      image - the image that is displayed for this proposal or null if no image is desired
    • ChangeCorrectionProposal

      public ChangeCorrectionProposal(String name, Change change, int relevance)
      Constructs a change correction proposal. Uses the default image for this proposal.
      Parameters:
      name - The name that is displayed in the proposal selection dialog.
      change - The change that is executed when the proposal is applied or null if the change will be created by implementors of ChangeCorrectionProposalCore.createChange().
      relevance - The relevance of this proposal.
  • Method Details