103104105106107108109110111112113
if (document != null) document.addDocumentListener(this); text.addKeyListener(this); text.addMouseListener(this); text.addMouseMoveListener(this); text.addFocusListener(this); text.addPaintListener(this); ((ITextViewerExtension4)sourceViewer).addTextPresentationListener(this);
342343344345346347348349350351352
if (document != null) document.addDocumentListener(this); text.addKeyListener(this); text.addMouseListener(this); text.addMouseMoveListener(this); text.addFocusListener(this); text.addPaintListener(this); updateKeyModifierMask();
157158159160161162163164165166167
return; text.getDisplay().addFilter(SWT.KeyUp, this); text.addKeyListener(this); text.addMouseListener(this); text.addMouseMoveListener(this); text.addFocusListener(this); text.addMouseTrackListener(this); fTextViewer.addTextListener(this);
167168169170171172173174175176177