1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Code cleanup.

This commit is contained in:
Sergey Prigogin 2008-09-22 00:59:53 +00:00
parent f0cec37944
commit 4db6d9faee

View file

@ -20,9 +20,9 @@ import org.eclipse.cdt.core.model.ITranslationUnit;
/** /**
* A proposal for quick fixes and quick assists that works on a AST rewriter and enters the * A proposal for quick fixes and quick assists that works on a AST rewriter and enters the
* linked mode when the proposal is set up. * linked mode when the proposal is set up.
* Either a rewriter is directly passed in the constructor or method {@link #getRewrite()} is overridden * Either a rewriter is directly passed in the constructor or method {@link #getRewrite()} is
* to provide the AST rewriter that is evaluated to the document when the proposal is * overridden to provide the AST rewriter that is evaluated to the document when the proposal
* applied. * is applied.
* @since 5.1 * @since 5.1
*/ */
public class LinkedCorrectionProposal extends ASTRewriteCorrectionProposal { public class LinkedCorrectionProposal extends ASTRewriteCorrectionProposal {
@ -37,7 +37,8 @@ public class LinkedCorrectionProposal extends ASTRewriteCorrectionProposal {
* @param image The image that is displayed for this proposal or <code>null</code> if no * @param image The image that is displayed for this proposal or <code>null</code> if no
* image is desired. * image is desired.
*/ */
public LinkedCorrectionProposal(String name, ITranslationUnit tu, ASTRewrite rewrite, int relevance, Image image) { public LinkedCorrectionProposal(String name, ITranslationUnit tu, ASTRewrite rewrite,
int relevance, Image image) {
super(name, tu, rewrite, relevance, image); super(name, tu, rewrite, relevance, image);
} }
@ -71,14 +72,4 @@ public class LinkedCorrectionProposal extends ASTRewriteCorrectionProposal {
public void addLinkedPositionProposal(String groupID, String proposal, Image image) { public void addLinkedPositionProposal(String groupID, String proposal, Image image) {
getLinkedProposalModel().getPositionGroup(groupID, true).addProposal(proposal, image, 10); getLinkedProposalModel().getPositionGroup(groupID, true).addProposal(proposal, image, 10);
} }
// TODO(sprigogin): Cleanup
/**
* Adds a linked position proposal to the group with the given id.
* @param groupID The id of the group that should present the proposal
* @param type The binding to use as type name proposal.
*/
// public void addLinkedPositionProposal(String groupID, ITypeBinding type) {
// getLinkedProposalModel().getPositionGroup(groupID, true).addProposal(type, getTranslationUnit(), 10);
// }
} }