Mercurial > projects > dwt-addons
comparison dwtx/jface/viewers/ViewerDropAdapter.d @ 70:46a6e0e6ccd4
Merge with d-fied sources of 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 22 May 2008 01:36:46 +0200 |
parents | ea8ff534f622 |
children |
comparison
equal
deleted
inserted
replaced
69:07b9d96fd764 | 70:46a6e0e6ccd4 |
---|---|
107 */ | 107 */ |
108 private bool feedbackEnabled = true; | 108 private bool feedbackEnabled = true; |
109 | 109 |
110 /** | 110 /** |
111 * A flag that allows adapter users to turn auto scrolling | 111 * A flag that allows adapter users to turn auto scrolling |
112 * and expanding on or off. Default is <code>true</code>. | 112 * on or off. Default is <code>true</code>. |
113 */ | 113 */ |
114 private bool scrollExpandEnabled = true; | 114 private bool scrollEnabled = true; |
115 | 115 |
116 /** | |
117 * A flag that allows adapter users to turn auto | |
118 * expanding on or off. Default is <code>true</code>. | |
119 */ | |
120 private bool expandEnabled = true; | |
121 | |
116 /** | 122 /** |
117 * A flag that allows adapter users to turn selection feedback | 123 * A flag that allows adapter users to turn selection feedback |
118 * on or off. Default is <code>true</code>. | 124 * on or off. Default is <code>true</code>. |
119 */ | 125 */ |
120 private bool selectFeedbackEnabled = true; | 126 private bool selectFeedbackEnabled = true; |
399 // Explicitly inhibit SELECT feedback if desired | 405 // Explicitly inhibit SELECT feedback if desired |
400 if (!selectFeedbackEnabled) { | 406 if (!selectFeedbackEnabled) { |
401 event.feedback &= ~DND.FEEDBACK_SELECT; | 407 event.feedback &= ~DND.FEEDBACK_SELECT; |
402 } | 408 } |
403 | 409 |
404 if (scrollExpandEnabled) { | 410 if (expandEnabled) { |
405 event.feedback |= DND.FEEDBACK_EXPAND | DND.FEEDBACK_SCROLL; | 411 event.feedback |= DND.FEEDBACK_EXPAND; |
412 } | |
413 if (scrollEnabled) { | |
414 event.feedback |= DND.FEEDBACK_SCROLL; | |
406 } | 415 } |
407 } | 416 } |
408 | 417 |
409 /** | 418 /** |
410 * Sets whether visible insertion feedback should be presented to the user. | 419 * Sets whether visible insertion feedback should be presented to the user. |
439 * @param value <code>true</code> if scrolling and expanding is desired, and | 448 * @param value <code>true</code> if scrolling and expanding is desired, and |
440 * <code>false</code> if not | 449 * <code>false</code> if not |
441 * @since 2.0 | 450 * @since 2.0 |
442 */ | 451 */ |
443 public void setScrollExpandEnabled(bool value) { | 452 public void setScrollExpandEnabled(bool value) { |
444 scrollExpandEnabled = value; | 453 expandEnabled = value; |
454 scrollEnabled = value; | |
455 } | |
456 | |
457 /** | |
458 * Sets whether auto expanding should be provided during dragging. | |
459 * | |
460 * @param value <code>true</code> if expanding is desired, and | |
461 * <code>false</code> if not | |
462 * @since 3.4 | |
463 */ | |
464 public void setExpandEnabled(bool value) { | |
465 expandEnabled = value; | |
466 } | |
467 | |
468 /** | |
469 * Sets whether auto scrolling should be provided during dragging. | |
470 * | |
471 * @param value <code>true</code> if scrolling is desired, and | |
472 * <code>false</code> if not | |
473 * @since 3.4 | |
474 */ | |
475 public void setScrollEnabled(bool value) { | |
476 scrollEnabled = value; | |
445 } | 477 } |
446 | 478 |
447 /** | 479 /** |
448 * Validates dropping on the given object. This method is called whenever some | 480 * Validates dropping on the given object. This method is called whenever some |
449 * aspect of the drop operation changes. | 481 * aspect of the drop operation changes. |