comparison dwtx/jface/text/contentassist/CompletionProposal.d @ 133:7d818bd32d63

Fix ctors to this with gvim regexp
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 01:29:22 +0200
parents c4fb132a086c
children
comparison
equal deleted inserted replaced
132:77bd3bb3d7b8 133:7d818bd32d63
86 * @param replacementString the actual string to be inserted into the document 86 * @param replacementString the actual string to be inserted into the document
87 * @param replacementOffset the offset of the text to be replaced 87 * @param replacementOffset the offset of the text to be replaced
88 * @param replacementLength the length of the text to be replaced 88 * @param replacementLength the length of the text to be replaced
89 * @param cursorPosition the position of the cursor following the insert relative to replacementOffset 89 * @param cursorPosition the position of the cursor following the insert relative to replacementOffset
90 */ 90 */
91 public CompletionProposal(String replacementString, int replacementOffset, int replacementLength, int cursorPosition) { 91 public this(String replacementString, int replacementOffset, int replacementLength, int cursorPosition) {
92 this(replacementString, replacementOffset, replacementLength, cursorPosition, null, null, null, null); 92 this(replacementString, replacementOffset, replacementLength, cursorPosition, null, null, null, null);
93 } 93 }
94 94
95 /** 95 /**
96 * Creates a new completion proposal. All fields are initialized based on the provided information. 96 * Creates a new completion proposal. All fields are initialized based on the provided information.
102 * @param image the image to display for this proposal 102 * @param image the image to display for this proposal
103 * @param displayString the string to be displayed for the proposal 103 * @param displayString the string to be displayed for the proposal
104 * @param contextInformation the context information associated with this proposal 104 * @param contextInformation the context information associated with this proposal
105 * @param additionalProposalInfo the additional information associated with this proposal 105 * @param additionalProposalInfo the additional information associated with this proposal
106 */ 106 */
107 public CompletionProposal(String replacementString, int replacementOffset, int replacementLength, int cursorPosition, Image image, String displayString, IContextInformation contextInformation, String additionalProposalInfo) { 107 public this(String replacementString, int replacementOffset, int replacementLength, int cursorPosition, Image image, String displayString, IContextInformation contextInformation, String additionalProposalInfo) {
108 Assert.isNotNull(replacementString); 108 Assert.isNotNull(replacementString);
109 Assert.isTrue(replacementOffset >= 0); 109 Assert.isTrue(replacementOffset >= 0);
110 Assert.isTrue(replacementLength >= 0); 110 Assert.isTrue(replacementLength >= 0);
111 Assert.isTrue(cursorPosition >= 0); 111 Assert.isTrue(cursorPosition >= 0);
112 112