Mercurial > projects > dwt-addons
diff dwtx/jface/internal/text/link/contentassist/CompletionProposalPopup2.d @ 150:5cf141e43417
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 23:05:26 +0200 |
parents | 53b889547456 |
children | f70d9508c95c |
line wrap: on
line diff
--- a/dwtx/jface/internal/text/link/contentassist/CompletionProposalPopup2.d Sun Aug 24 22:41:48 2008 +0200 +++ b/dwtx/jface/internal/text/link/contentassist/CompletionProposalPopup2.d Sun Aug 24 23:05:26 2008 +0200 @@ -120,11 +120,11 @@ /** * Tells whether colored labels support is enabled. * Only valid while the popup is active. - * + * * @since 3.4 */ private bool fIsColoredLabelsSupportEnabled= false; - + private final IEditingSupport fFocusEditingSupport= new class() IEditingSupport { public bool isOriginator(DocumentEvent event, IRegion focus) { @@ -278,7 +278,7 @@ // fProposalShell= new Shell(control.getShell(), DWT.ON_TOP | DWT.RESIZE ); fProposalTable= new Table(fProposalShell, DWT.H_SCROLL | DWT.V_SCROLL); // fProposalTable= new Table(fProposalShell, DWT.H_SCROLL | DWT.V_SCROLL); - + fIsColoredLabelsSupportEnabled= fContentAssistant.isColoredLabelsSupportEnabled(); if (fIsColoredLabelsSupportEnabled) @@ -556,7 +556,7 @@ item= new TableItem(fProposalTable, DWT.NULL); if (p.getImage() !is null) item.setImage(p.getImage()); - + String displayString; StyleRange[] styleRanges= null; if (fIsColoredLabelsSupportEnabled && cast(ICompletionProposalExtension6)p ) { @@ -569,7 +569,7 @@ item.setText(displayString); if (fIsColoredLabelsSupportEnabled) TableOwnerDrawSupport.storeStyleRanges(item, 0, styleRanges); - + item.setData(p); if (validate && validateProposal(document, p, endOffset, null)) { @@ -924,13 +924,13 @@ List filtered= new ArrayList(length); for (int i= 0; i < length; i++) { - if (proposals[i] instanceof ICompletionProposalExtension2) { + if (cast(ICompletionProposalExtension2)proposals[i] ) { ICompletionProposalExtension2 p= cast(ICompletionProposalExtension2) proposals[i]; if (p.validate(document, offset, event)) filtered.add(p); - } else if (proposals[i] instanceof ICompletionProposalExtension) { + } else if (cast(ICompletionProposalExtension)proposals[i] ) { ICompletionProposalExtension p= cast(ICompletionProposalExtension) proposals[i]; if (p.isValidFor(document, offset))