comparison org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.d @ 16:dbfb303e8fb0

first complete successful compile (win-only)
author Frank Benoit <benoit@tionex.de>
date Wed, 18 Mar 2009 08:56:47 +0100
parents bc29606a740c
children
comparison
equal deleted inserted replaced
15:c4b1a29263fc 16:dbfb303e8fb0
1801 */ 1801 */
1802 private void truncatePostfix(StringBuffer buffer, CharSequence sequence) { 1802 private void truncatePostfix(StringBuffer buffer, CharSequence sequence) {
1803 // find common prefix 1803 // find common prefix
1804 int min= Math.min(buffer.length(), sequence.length()); 1804 int min= Math.min(buffer.length(), sequence.length());
1805 for (int c= 0; c < min; c++) { 1805 for (int c= 0; c < min; c++) {
1806 if (sequence.charAt(c) !is buffer.slice()[c]) { 1806 if (sequence.charAt(c) !is buffer.charAt(c)) {
1807 buffer.truncate(c); 1807 buffer.delete_(c, buffer.length());
1808 return; 1808 return;
1809 } 1809 }
1810 } 1810 }
1811 1811
1812 // all equal up to minimum 1812 // all equal up to minimum
1813 buffer.truncate(min); 1813 buffer.delete_(min, buffer.length());
1814 } 1814 }
1815 1815
1816 /** 1816 /**
1817 * Sets the message for the repetition affordance text at the bottom of the proposal. Only has 1817 * Sets the message for the repetition affordance text at the bottom of the proposal. Only has
1818 * an effect if {@link ContentAssistant#isRepeatedInvocationMode()} returns <code>true</code>. 1818 * an effect if {@link ContentAssistant#isRepeatedInvocationMode()} returns <code>true</code>.