comparison dwtx/jface/text/AbstractHoverInformationControlManager.d @ 140:26688fec6d23

Following dsss compile errors
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 03:23:46 +0200
parents b6bad70d540a
children 893c017bcdc5
comparison
equal deleted inserted replaced
139:93a6ec48fd28 140:26688fec6d23
303 return; 303 return;
304 304
305 fIsActive= false; 305 fIsActive= false;
306 306
307 if cast(DEBUG) 307 if cast(DEBUG)
308 System.out.println("AbstractHoverInformationControlManager.Closer stopped"); //$NON-NLS-1$ 308 System.out_.println("AbstractHoverInformationControlManager.Closer stopped"); //$NON-NLS-1$
309 309
310 if (fSubjectControl !is null && !fSubjectControl.isDisposed()) { 310 if (fSubjectControl !is null && !fSubjectControl.isDisposed()) {
311 fSubjectControl.removeMouseListener(this); 311 fSubjectControl.removeMouseListener(this);
312 fSubjectControl.removeMouseMoveListener(this); 312 fSubjectControl.removeMouseMoveListener(this);
313 fSubjectControl.removeControlListener(this); 313 fSubjectControl.removeControlListener(this);
503 * @param event the event 503 * @param event the event
504 * @since 3.4 504 * @since 3.4
505 */ 505 */
506 private void handleMouseMove(Event event) { 506 private void handleMouseMove(Event event) {
507 // if cast(DEBUG) 507 // if cast(DEBUG)
508 // System.out.println("AbstractHoverInformationControl.Closer.handleMouseMove():" + event); //$NON-NLS-1$ 508 // System.out_.println("AbstractHoverInformationControl.Closer.handleMouseMove():" + event); //$NON-NLS-1$
509 509
510 if (!(event.widget instanceof Control)) 510 if (!(event.widget instanceof Control))
511 return; 511 return;
512 Control eventControl= cast(Control) event.widget; 512 Control eventControl= cast(Control) event.widget;
513 513
517 if (fSubjectArea.contains(mouseLoc)) 517 if (fSubjectArea.contains(mouseLoc))
518 return; 518 return;
519 519
520 IInformationControl iControl= getCurrentInformationControl(); 520 IInformationControl iControl= getCurrentInformationControl();
521 if (!hasInformationControlReplacer() || !canMoveIntoInformationControl(iControl)) { 521 if (!hasInformationControlReplacer() || !canMoveIntoInformationControl(iControl)) {
522 if (AbstractHoverInformationControlManager.this instanceof AnnotationBarHoverManager) { 522 if (this.outer instanceof AnnotationBarHoverManager) {
523 if (getInternalAccessor().getAllowMouseExit()) 523 if (getInternalAccessor().getAllowMouseExit())
524 return; 524 return;
525 } 525 }
526 hideInformationControl(); 526 hideInformationControl();
527 return; 527 return;
638 */ 638 */
639 public void mouseHover(MouseEvent event) { 639 public void mouseHover(MouseEvent event) {
640 if (fIsComputing || fIsInRestartMode || 640 if (fIsComputing || fIsInRestartMode ||
641 (fSubjectControl !is null && !fSubjectControl.isDisposed() && fSubjectControl.getShell() !is fSubjectControl.getShell().getDisplay().getActiveShell())) { 641 (fSubjectControl !is null && !fSubjectControl.isDisposed() && fSubjectControl.getShell() !is fSubjectControl.getShell().getDisplay().getActiveShell())) {
642 if cast(DEBUG) 642 if cast(DEBUG)
643 System.out.println("AbstractHoverInformationControlManager...mouseHover: @ " + event.x + "/" + event.y + " : hover cancelled: fIsComputing= " + fIsComputing + ", fIsInRestartMode= " + fIsInRestartMode); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ 643 System.out_.println("AbstractHoverInformationControlManager...mouseHover: @ " + event.x + "/" + event.y + " : hover cancelled: fIsComputing= " + fIsComputing + ", fIsInRestartMode= " + fIsInRestartMode); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
644 return; 644 return;
645 } 645 }
646 646
647 fIsInRestartMode= true; 647 fIsInRestartMode= true;
648 fIsComputing= true; 648 fIsComputing= true;
963 fWaitForMouseUp= false; 963 fWaitForMouseUp= false;
964 if (fReplacingDelayJob !is null && fReplacingDelayJob.getState() !is Job.RUNNING) { 964 if (fReplacingDelayJob !is null && fReplacingDelayJob.getState() !is Job.RUNNING) {
965 bool cancelled= fReplacingDelayJob.cancel(); 965 bool cancelled= fReplacingDelayJob.cancel();
966 fReplacingDelayJob= null; 966 fReplacingDelayJob= null;
967 // if cast(DEBUG) 967 // if cast(DEBUG)
968 // System.out.println("AbstractHoverInformationControlManager.cancelReplacingDelay(): cancelled=" + cancelled); //$NON-NLS-1$ 968 // System.out_.println("AbstractHoverInformationControlManager.cancelReplacingDelay(): cancelled=" + cancelled); //$NON-NLS-1$
969 return cancelled; 969 return cancelled;
970 } 970 }
971 // if cast(DEBUG) 971 // if cast(DEBUG)
972 // System.out.println("AbstractHoverInformationControlManager.cancelReplacingDelay(): not delayed"); //$NON-NLS-1$ 972 // System.out_.println("AbstractHoverInformationControlManager.cancelReplacingDelay(): not delayed"); //$NON-NLS-1$
973 return true; 973 return true;
974 } 974 }
975 975
976 /** 976 /**
977 * Starts replacing the information control, considering the current 977 * Starts replacing the information control, considering the current
993 fReplacingDelayJob= null; 993 fReplacingDelayJob= null;
994 if (! fWaitForMouseUp) 994 if (! fWaitForMouseUp)
995 replaceInformationControl(false); 995 replaceInformationControl(false);
996 } else { 996 } else {
997 // if cast(DEBUG) 997 // if cast(DEBUG)
998 // System.out.println("AbstractHoverInformationControlManager.startReplaceInformationControl(): rescheduled"); //$NON-NLS-1$ 998 // System.out_.println("AbstractHoverInformationControlManager.startReplaceInformationControl(): rescheduled"); //$NON-NLS-1$
999 fReplacingDelayJob.schedule(HOVER_AUTO_REPLACING_DELAY); 999 fReplacingDelayJob.schedule(HOVER_AUTO_REPLACING_DELAY);
1000 } 1000 }
1001 } 1001 }
1002 } 1002 }
1003 return; 1003 return;
1021 } 1021 }
1022 }; 1022 };
1023 fReplacingDelayJob.setSystem(true); 1023 fReplacingDelayJob.setSystem(true);
1024 fReplacingDelayJob.setPriority(Job.INTERACTIVE); 1024 fReplacingDelayJob.setPriority(Job.INTERACTIVE);
1025 // if cast(DEBUG) 1025 // if cast(DEBUG)
1026 // System.out.println("AbstractHoverInformationControlManager.startReplaceInformationControl(): scheduled"); //$NON-NLS-1$ 1026 // System.out_.println("AbstractHoverInformationControlManager.startReplaceInformationControl(): scheduled"); //$NON-NLS-1$
1027 fReplacingDelayJob.schedule(HOVER_AUTO_REPLACING_DELAY); 1027 fReplacingDelayJob.schedule(HOVER_AUTO_REPLACING_DELAY);
1028 } 1028 }
1029 1029
1030 /* 1030 /*
1031 * @see dwtx.jface.text.AbstractInformationControlManager#presentInformation() 1031 * @see dwtx.jface.text.AbstractInformationControlManager#presentInformation()