Mercurial > projects > dwt-addons
comparison dwtx/jface/internal/text/link/contentassist/AdditionalInfoController2.d @ 134:51e6e63f930e
Regex fix for casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:46:20 +0200 |
parents | 7d818bd32d63 |
children | 65801ad2b265 |
comparison
equal
deleted
inserted
replaced
133:7d818bd32d63 | 134:51e6e63f930e |
---|---|
115 } | 115 } |
116 | 116 |
117 super.install(control); | 117 super.install(control); |
118 | 118 |
119 Assert.isTrue(control instanceof Table); | 119 Assert.isTrue(control instanceof Table); |
120 fProposalTable= (Table) control; | 120 fProposalTable= cast(Table) control; |
121 fProposalTable.addSelectionListener(fSelectionListener); | 121 fProposalTable.addSelectionListener(fSelectionListener); |
122 synchronized (fThreadAccess) { | 122 synchronized (fThreadAccess) { |
123 if (fThread !is null) | 123 if (fThread !is null) |
124 fThread.interrupt(); | 124 fThread.interrupt(); |
125 fThread= new Thread(this, ContentAssistMessages.getString("InfoPopup.info_delay_timer_name")); //$NON-NLS-1$ | 125 fThread= new Thread(this, ContentAssistMessages.getString("InfoPopup.info_delay_timer_name")); //$NON-NLS-1$ |
233 // compute information | 233 // compute information |
234 String information= null; | 234 String information= null; |
235 Object d= item.getData(); | 235 Object d= item.getData(); |
236 | 236 |
237 if (d instanceof ICompletionProposal) { | 237 if (d instanceof ICompletionProposal) { |
238 ICompletionProposal p= (ICompletionProposal) d; | 238 ICompletionProposal p= cast(ICompletionProposal) d; |
239 information= p.getAdditionalProposalInfo(); | 239 information= p.getAdditionalProposalInfo(); |
240 } | 240 } |
241 | 241 |
242 if (d instanceof ICompletionProposalExtension3) | 242 if (d instanceof ICompletionProposalExtension3) |
243 setCustomInformationControlCreator(((ICompletionProposalExtension3) d).getInformationControlCreator()); | 243 setCustomInformationControlCreator((cast(ICompletionProposalExtension3) d).getInformationControlCreator()); |
244 else | 244 else |
245 setCustomInformationControlCreator(null); | 245 setCustomInformationControlCreator(null); |
246 | 246 |
247 // compute subject area | 247 // compute subject area |
248 setMargins(4, -1); | 248 setMargins(4, -1); |