@@ -181,27 +181,32 @@ class Hover {
181181 /**
182182 * This info hover's shell.
183183 */
184+ @ Deprecated
184185 Shell hoverShell ;
185186
186187 /**
187188 * The info hover text.
188189 */
190+ @ Deprecated
189191 String text = EMPTY ;
190192
191193 /**
192194 * The region used to manage the shell shape
193195 */
196+ @ Deprecated
194197 Region region ;
195198
196199 /**
197200 * Boolean indicating whether the last computed polygon location had an
198201 * arrow on left. (true if left, false if right).
199202 */
203+ @ Deprecated
200204 boolean arrowOnLeft = true ;
201205
202206 /*
203207 * Create a hover parented by the specified shell.
204208 */
209+ @ Deprecated
205210 Hover (Shell parent ) {
206211 final Display display = parent .getDisplay ();
207212 hoverShell = new Shell (parent , SWT .NO_TRIM | SWT .ON_TOP
@@ -229,6 +234,7 @@ public void mouseDown(MouseEvent e) {
229234 * border is true, compute the polygon inset by 1-pixel border. Consult
230235 * the arrowOnLeft flag to determine which side the arrow is on.
231236 */
237+ @ Deprecated
232238 int [] getPolygon (boolean border ) {
233239 Point e = getExtent ();
234240 int b = border ? 1 : 0 ;
@@ -246,6 +252,7 @@ int[] getPolygon(boolean border) {
246252 * Dispose the hover, it is no longer needed. Dispose any resources
247253 * allocated by the hover.
248254 */
255+ @ Deprecated
249256 void dispose () {
250257 if (!hoverShell .isDisposed ()) {
251258 hoverShell .dispose ();
@@ -258,6 +265,7 @@ void dispose() {
258265 /*
259266 * Set the visibility of the hover.
260267 */
268+ @ Deprecated
261269 void setVisible (boolean visible ) {
262270 if (visible ) {
263271 if (!hoverShell .isVisible ()) {
@@ -273,6 +281,7 @@ void setVisible(boolean visible) {
273281 * and location of the hover to hover near the specified control,
274282 * pointing the arrow toward the target control.
275283 */
284+ @ Deprecated
276285 void setText (String t , Control hoverNear , Control targetControl ) {
277286 if (t == null ) {
278287 t = EMPTY ;
@@ -304,13 +313,15 @@ void setText(String t, Control hoverNear, Control targetControl) {
304313 /*
305314 * Return whether or not the hover (shell) is visible.
306315 */
316+ @ Deprecated
307317 boolean isVisible () {
308318 return hoverShell .isVisible ();
309319 }
310320
311321 /*
312322 * Compute the extent of the hover for the current text.
313323 */
324+ @ Deprecated
314325 Point getExtent () {
315326 GC gc = new GC (hoverShell );
316327 Point e = gc .textExtent (text );
@@ -323,6 +334,7 @@ Point getExtent() {
323334 /*
324335 * Compute a new shape for the hover shell.
325336 */
337+ @ Deprecated
326338 void setNewShape () {
327339 Region oldRegion = region ;
328340 region = new Region ();
0 commit comments