Mercurial > projects > dwt-addons
comparison dwtx/jface/text/contentassist/AdditionalInfoController.d @ 162:1a5b8f8129df
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 08 Sep 2008 00:51:37 +0200 |
parents | 3678e4f1a766 |
children | 862b05e0334a |
comparison
equal
deleted
inserted
replaced
161:f8d52b926852 | 162:1a5b8f8129df |
---|---|
88 /** | 88 /** |
89 * A <code>Task</code> is {@link Task#run() run} when {@link #delay()} milliseconds have | 89 * A <code>Task</code> is {@link Task#run() run} when {@link #delay()} milliseconds have |
90 * elapsed after it was scheduled without a {@link #reset(ICompletionProposal) reset} | 90 * elapsed after it was scheduled without a {@link #reset(ICompletionProposal) reset} |
91 * to occur. | 91 * to occur. |
92 */ | 92 */ |
93 private abstract class Task : Runnable { | 93 private static abstract class Task : Runnable { |
94 /** | 94 /** |
95 * @return the delay in milliseconds before this task should be run | 95 * @return the delay in milliseconds before this task should be run |
96 */ | 96 */ |
97 public abstract long delay(); | 97 public abstract long delay(); |
98 /** | 98 /** |
209 if (!fDisplay.isDisposed()) { | 209 if (!fDisplay.isDisposed()) { |
210 fDisplay.asyncExec(new class() Runnable { | 210 fDisplay.asyncExec(new class() Runnable { |
211 public void run() { | 211 public void run() { |
212 synchronized (this.outer) { | 212 synchronized (this.outer) { |
213 if (proposal is getCurrentProposal()) { | 213 if (proposal is getCurrentProposal()) { |
214 Object info= proposal.getAdditionalProposalInfo(); | 214 Object info= stringcast(proposal.getAdditionalProposalInfo()); |
215 showInformation(proposal, info); | 215 showInformation(proposal, info); |
216 } | 216 } |
217 } | 217 } |
218 } | 218 } |
219 }); | 219 }); |
641 * @see dwtx.jface.text.AbstractInformationControlManager#hideInformationControl() | 641 * @see dwtx.jface.text.AbstractInformationControlManager#hideInformationControl() |
642 */ | 642 */ |
643 protected void hideInformationControl() { | 643 protected void hideInformationControl() { |
644 super.hideInformationControl(); | 644 super.hideInformationControl(); |
645 } | 645 } |
646 package void hideInformationControl_package() { | |
647 this.hideInformationControl(); | |
648 } | |
646 | 649 |
647 /** | 650 /** |
648 * @return the current information control, or <code>null</code> if none available | 651 * @return the current information control, or <code>null</code> if none available |
649 */ | 652 */ |
650 public IInformationControl getCurrentInformationControl2() { | 653 public IInformationControl getCurrentInformationControl2() { |