comparison dwtx/jface/internal/text/link/contentassist/AdditionalInfoController2.d @ 159:7926b636c282

...
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 01:57:58 +0200
parents eb21d3dfc767
children 1a5b8f8129df
comparison
equal deleted inserted replaced
158:25f1f92fa3df 159:7926b636c282
23 import dwtx.jface.internal.text.link.contentassist.PopupCloser2; // packageimport 23 import dwtx.jface.internal.text.link.contentassist.PopupCloser2; // packageimport
24 import dwtx.jface.internal.text.link.contentassist.IContentAssistListener2; // packageimport 24 import dwtx.jface.internal.text.link.contentassist.IContentAssistListener2; // packageimport
25 import dwtx.jface.internal.text.link.contentassist.ContentAssistant2; // packageimport 25 import dwtx.jface.internal.text.link.contentassist.ContentAssistant2; // packageimport
26 26
27 import dwt.dwthelper.utils; 27 import dwt.dwthelper.utils;
28 28 import tango.core.Thread;
29
30
31
32 29
33 import dwt.events.SelectionEvent; 30 import dwt.events.SelectionEvent;
34 import dwt.events.SelectionListener; 31 import dwt.events.SelectionListener;
35 import dwt.graphics.Point; 32 import dwt.graphics.Point;
36 import dwt.graphics.Rectangle; 33 import dwt.graphics.Rectangle;
78 /** The thread controlling the delayed display of the additional info */ 75 /** The thread controlling the delayed display of the additional info */
79 private Thread fThread; 76 private Thread fThread;
80 /** Indicates whether the display delay has been reset */ 77 /** Indicates whether the display delay has been reset */
81 private bool fIsReset= false; 78 private bool fIsReset= false;
82 /** Object to synchronize display thread and table selection changes */ 79 /** Object to synchronize display thread and table selection changes */
83 private const Object fMutex= new Object(); 80 private const Object fMutex;
84 /** Thread access lock. */ 81 /** Thread access lock. */
85 private const Object fThreadAccess= new Object(); 82 private const Object fThreadAccess;
86 /** Object to synchronize initial display of additional info */ 83 /** Object to synchronize initial display of additional info */
87 private Object fStartSignal; 84 private Object fStartSignal;
88 /** The table selection listener */ 85 /** The table selection listener */
89 private SelectionListener fSelectionListener= new TableSelectionListener(); 86 private SelectionListener fSelectionListener;
90 /** The delay after which additional information is displayed */ 87 /** The delay after which additional information is displayed */
91 private int fDelay; 88 private int fDelay;
92 89
93 90
94 /** 91 /**
96 * 93 *
97 * @param creator the information control creator to be used by this controller 94 * @param creator the information control creator to be used by this controller
98 * @param delay time in milliseconds after which additional info should be displayed 95 * @param delay time in milliseconds after which additional info should be displayed
99 */ 96 */
100 this(IInformationControlCreator creator, int delay) { 97 this(IInformationControlCreator creator, int delay) {
98 fSelectionListener= new TableSelectionListener();
99 fThreadAccess= new Object();
100 fMutex= new Object();
101 super(creator); 101 super(creator);
102 fDelay= delay; 102 fDelay= delay;
103 setAnchor(ANCHOR_RIGHT); 103 setAnchor(ANCHOR_RIGHT);
104 setFallbackAnchors([ANCHOR_RIGHT, ANCHOR_LEFT, ANCHOR_BOTTOM ]); 104 setFallbackAnchors([ANCHOR_RIGHT, ANCHOR_LEFT, ANCHOR_BOTTOM ]);
105 } 105 }