comparison dwtx/jface/internal/text/link/contentassist/ContentAssistant2.d @ 135:65801ad2b265

Regex fix for anon classes
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 01:52:31 +0200
parents 51e6e63f930e
children b6bad70d540a
comparison
equal deleted inserted replaced
134:51e6e63f930e 135:65801ad2b265
192 if (fViewer !is null) { 192 if (fViewer !is null) {
193 Control control= fViewer.getTextWidget(); 193 Control control= fViewer.getTextWidget();
194 if (control !is null) { 194 if (control !is null) {
195 Display d= control.getDisplay(); 195 Display d= control.getDisplay();
196 if (d !is null) { 196 if (d !is null) {
197 d.asyncExec(new Runnable() { 197 d.asyncExec(new class() Runnable {
198 public void run() { 198 public void run() {
199 if (!hasFocus()) 199 if (!hasFocus())
200 hide(); 200 hide();
201 } 201 }
202 }); 202 });
329 protected void showAssist(final int showStyle) { 329 protected void showAssist(final int showStyle) {
330 Control control= fViewer.getTextWidget(); 330 Control control= fViewer.getTextWidget();
331 Display d= control.getDisplay(); 331 Display d= control.getDisplay();
332 if (d !is null) { 332 if (d !is null) {
333 try { 333 try {
334 d.syncExec(new Runnable() { 334 d.syncExec(new class() Runnable {
335 public void run() { 335 public void run() {
336 if (showStyle is SHOW_PROPOSALS) 336 if (showStyle is SHOW_PROPOSALS)
337 fProposalPopup.showProposals(true); 337 fProposalPopup.showProposals(true);
338 else if (showStyle is SHOW_CONTEXT_INFO) 338 else if (showStyle is SHOW_CONTEXT_INFO)
339 fContextInfoPopup.showContextProposals(true); 339 fContextInfoPopup.showContextProposals(true);
745 * Creates an <code>IInformationControlCreator</code> to be used to display context information. 745 * Creates an <code>IInformationControlCreator</code> to be used to display context information.
746 * 746 *
747 * @return an <code>IInformationControlCreator</code> to be used to display context information 747 * @return an <code>IInformationControlCreator</code> to be used to display context information
748 */ 748 */
749 private IInformationControlCreator getInformationControlCreator() { 749 private IInformationControlCreator getInformationControlCreator() {
750 return new IInformationControlCreator() { 750 return new class() IInformationControlCreator {
751 public IInformationControl createInformationControl(Shell parent) { 751 public IInformationControl createInformationControl(Shell parent) {
752 return new DefaultInformationControl(parent, false); 752 return new DefaultInformationControl(parent, false);
753 } 753 }
754 }; 754 };
755 } 755 }