comparison dwtx/jface/internal/text/link/contentassist/AdditionalInfoController2.d @ 138:b6bad70d540a

Regex instanceof changes
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 02:26:23 +0200
parents 65801ad2b265
children 75302ef3f92f
comparison
equal deleted inserted replaced
137:25170b5a8951 138:b6bad70d540a
114 return; 114 return;
115 } 115 }
116 116
117 super.install(control); 117 super.install(control);
118 118
119 Assert.isTrue(control instanceof Table); 119 Assert.isTrue( cast(Table)control );
120 fProposalTable= cast(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();
232 232
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 ( cast(ICompletionProposal)d ) {
238 ICompletionProposal p= cast(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 ( cast(ICompletionProposalExtension3)d )
243 setCustomInformationControlCreator((cast(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