Mercurial > projects > dwt-addons
diff dwtx/jface/text/contentassist/AdditionalInfoController.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 |
line wrap: on
line diff
--- a/dwtx/jface/text/contentassist/AdditionalInfoController.d Sun Aug 24 01:29:22 2008 +0200 +++ b/dwtx/jface/text/contentassist/AdditionalInfoController.d Sun Aug 24 01:46:20 2008 +0200 @@ -148,7 +148,7 @@ */ return new Status(IStatus.WARNING, "dwtx.jface.text", IStatus.OK, "", x); //$NON-NLS-1$ //$NON-NLS-2$ } - setInfo((ICompletionProposal) proposal, info); + setInfo(cast(ICompletionProposal) proposal, info); return new Status(IStatus.OK, "dwtx.jface.text", IStatus.OK, "", null); //$NON-NLS-1$ //$NON-NLS-2$ } }; @@ -357,7 +357,7 @@ ICompletionProposalExtension5 getCurrentProposalEx() { Assert.isTrue(fCurrentProposal instanceof ICompletionProposalExtension5); - return (ICompletionProposalExtension5) fCurrentProposal; + return cast(ICompletionProposalExtension5) fCurrentProposal; } synchronized void setInfo(ICompletionProposal proposal, Object info) { @@ -487,7 +487,7 @@ super.install(control.getShell()); Assert.isTrue(control instanceof Table); - fProposalTable= (Table) control; + fProposalTable= cast(Table) control; fProposalTable.addSelectionListener(fSelectionListener); getInternalAccessor().getInformationControlReplacer().install(fProposalTable); @@ -535,7 +535,7 @@ Object d= item.getData(); if (d instanceof ICompletionProposal) { - ICompletionProposal p= (ICompletionProposal) d; + ICompletionProposal p= cast(ICompletionProposal) d; fTimer.reset(p); } } @@ -559,7 +559,7 @@ */ protected void computeInformation() { if (fProposal instanceof ICompletionProposalExtension3) - setCustomInformationControlCreator(((ICompletionProposalExtension3) fProposal).getInformationControlCreator()); + setCustomInformationControlCreator((cast(ICompletionProposalExtension3) fProposal).getInformationControlCreator()); else setCustomInformationControlCreator(null); @@ -600,7 +600,7 @@ // to the computed constraints. Need to remove them here, to make the outer bounds of the additional // info shell fit the bounds of the proposal shell: if (fInformationControl instanceof IInformationControlExtension3) { - Rectangle shellTrim= ((IInformationControlExtension3) fInformationControl).computeTrim(); + Rectangle shellTrim= (cast(IInformationControlExtension3) fInformationControl).computeTrim(); size.x -= shellTrim.width; size.y -= shellTrim.height; }