View | Details | Raw Unified | Return to bug 25707
Collapse All | Expand All

(-)AbstractHoverInformationControlManager.java (-3 / +20 lines)
Lines 274-280 Link Here
274
			if (fSubjectControl != null && !fSubjectControl.isDisposed()) {
274
			if (fSubjectControl != null && !fSubjectControl.isDisposed()) {
275
				fSubjectControl.removeMouseTrackListener(this);
275
				fSubjectControl.removeMouseTrackListener(this);
276
				fSubjectControl.removeMouseMoveListener(this);
276
				fSubjectControl.removeMouseMoveListener(this);
277
				fSubjectControl.getShell().removeShellListener(this);
277
				fSubjectControl.getShell().removeShellListener(this);
278
			}
278
			}
279
			
279
			
280
			fMouseLost= false;
280
			fMouseLost= false;
Lines 421-426 Link Here
421
	 * @see AbstractInformationControlManager#presentInformation()
421
	 * @see AbstractInformationControlManager#presentInformation()
422
	 */
422
	 */
423
	protected void presentInformation() {
423
	protected void presentInformation() {
424
		if (fMouseTracker == null) {
425
			super.presentInformation();
426
			return;
427
		}
424
		
428
		
425
		Rectangle area= getSubjectArea();
429
		Rectangle area= getSubjectArea();
426
		if (area != null)
430
		if (area != null)
Lines 444-457 Link Here
444
		super.setEnabled(enabled);
448
		super.setEnabled(enabled);
445
		boolean is= isEnabled();
449
		boolean is= isEnabled();
446
		
450
		
447
		if (was != is) {
451
		if (was != is && fMouseTracker != null) {
448
			if (is)
452
			if (is)
449
				fMouseTracker.start(getSubjectControl());
453
				fMouseTracker.start(getSubjectControl());
450
			else
454
			else
451
				fMouseTracker.stop();
455
				fMouseTracker.stop();
452
		}
456
		}
453
	}
457
	}
454
	
458
459
460
	/**
461
	 * Disposes this manager's information control.
462
	 */
463
	public void dispose() {
464
		if (fMouseTracker != null) {
465
			fMouseTracker.stop();
466
			fMouseTracker.fSubjectControl= null;
467
			fMouseTracker= null;
468
		}
469
		super.dispose();
470
	}
471
455
	/**
472
	/**
456
	 * Returns the location at which the most recent mouse hover event
473
	 * Returns the location at which the most recent mouse hover event
457
	 * has been issued.
474
	 * has been issued.

Return to bug 25707