Mercurial > projects > dwt-addons
comparison dwtx/jface/text/contentassist/CompletionProposalPopup.d @ 136:6dcb0baaa031
Regex removal of throws decls, some instanceof
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:20:40 +0200 |
parents | 65801ad2b265 |
children | b6bad70d540a |
comparison
equal
deleted
inserted
replaced
135:65801ad2b265 | 136:6dcb0baaa031 |
---|---|
164 | 164 |
165 /* | 165 /* |
166 * @see dwtx.core.commands.AbstractHandler#execute(dwtx.core.commands.ExecutionEvent) | 166 * @see dwtx.core.commands.AbstractHandler#execute(dwtx.core.commands.ExecutionEvent) |
167 * @since 3.4 | 167 * @since 3.4 |
168 */ | 168 */ |
169 public Object execute(ExecutionEvent event) throws ExecutionException { | 169 public Object execute(ExecutionEvent event) { |
170 int itemCount= fProposalTable.getItemCount(); | 170 int itemCount= fProposalTable.getItemCount(); |
171 int selectionIndex= fProposalTable.getSelectionIndex(); | 171 int selectionIndex= fProposalTable.getSelectionIndex(); |
172 switch (fOperationCode) { | 172 switch (fOperationCode) { |
173 case SELECT_NEXT: | 173 case SELECT_NEXT: |
174 selectionIndex+= 1; | 174 selectionIndex+= 1; |
1741 } | 1741 } |
1742 | 1742 |
1743 /* | 1743 /* |
1744 * @since 3.1 | 1744 * @since 3.1 |
1745 */ | 1745 */ |
1746 private bool isPrefixCompatible(CharSequence oneSequence, int oneOffset, CharSequence twoSequence, int twoOffset, IDocument document) throws BadLocationException { | 1746 private bool isPrefixCompatible(CharSequence oneSequence, int oneOffset, CharSequence twoSequence, int twoOffset, IDocument document) { |
1747 if (oneSequence is null || twoSequence is null) | 1747 if (oneSequence is null || twoSequence is null) |
1748 return true; | 1748 return true; |
1749 | 1749 |
1750 int min= Math.min(oneOffset, twoOffset); | 1750 int min= Math.min(oneOffset, twoOffset); |
1751 int oneEnd= oneOffset + oneSequence.length(); | 1751 int oneEnd= oneOffset + oneSequence.length(); |