@Override public void uninstall() { fViewer.removeTextInputListener(fInternalListener); // Ensure we uninstall all listeners fInternalListener.inputDocumentAboutToBeChanged(fViewer.getDocument(), null); }
@Override public void uninstall() { fViewer.removeTextInputListener(fInternalListener); // Ensure we uninstall all listeners fInternalListener.inputDocumentAboutToBeChanged(fViewer.getDocument(), null); }
/** * Disposes this paint manager. The paint manager uninstalls itself * and clears all registered painters. This method is also called when the * last painter is removed from the list of managed painters. */ public void dispose() { if (fManager != null) { fManager.dispose(); fManager= null; } for (Iterator<IPainter> e = fPainters.iterator(); e.hasNext();) e.next().dispose(); fPainters.clear(); fTextViewer.removeTextInputListener(this); removeListeners(); }
/** * Disposes this paint manager. The paint manager uninstalls itself * and clears all registered painters. This method is also called when the * last painter is removed from the list of managed painters. */ public void dispose() { if (fManager != null) { fManager.dispose(); fManager= null; } for (IPainter iPainter : fPainters) iPainter.dispose(); fPainters.clear(); fTextViewer.removeTextInputListener(this); removeListeners(); }
/** * Unregister all previously installed listeners from the text viewer. */ private void removeListeners() { StyledText text= fTextViewer.getTextWidget(); if (text != null) { if (fKeyAndMouseListener != null) { text.removeMouseListener(fKeyAndMouseListener); text.removeKeyListener(fKeyAndMouseListener); fKeyAndMouseListener= null; } if (fTextInputListener != null) { fTextViewer.removeTextInputListener(fTextInputListener); fTextInputListener= null; } } }
@Override public void uninstall() { if (fListener != null) { fViewer.removeTextInputListener(fListener); if (fDocument != null) { fListener.inputDocumentAboutToBeChanged(fDocument, null); fListener.inputDocumentChanged(fDocument, null); } fListener= null; synchronized (this) { // http://dev.eclipse.org/bugs/show_bug.cgi?id=19135 BackgroundThread bt= fThread; fThread= null; bt.cancel(); } } }
/** * Unregister all previously installed listeners from the text viewer. */ private void removeListeners() { StyledText text= fTextViewer.getTextWidget(); if (text != null) { if (fKeyAndMouseListener != null) { text.removeMouseListener(fKeyAndMouseListener); text.removeKeyListener(fKeyAndMouseListener); fKeyAndMouseListener= null; } if (fTextInputListener != null) { fTextViewer.removeTextInputListener(fTextInputListener); fTextInputListener= null; } } }
@Override public void uninstall() { if (fListener != null) { fViewer.removeTextInputListener(fListener); if (fDocument != null) { fListener.inputDocumentAboutToBeChanged(fDocument, null); fListener.inputDocumentChanged(fDocument, null); } fListener= null; synchronized (this) { // http://dev.eclipse.org/bugs/show_bug.cgi?id=19135 BackgroundThread bt= fThread; fThread= null; bt.cancel(); } } }
void uninstall() { StyledText editorTextWidget = fEditorViewer.getTextWidget(); // untrack changed content of styled text of the editor if (editorTextWidget.getContent() != null) { editorTextWidget.getContent().removeTextChangeListener(this); } // untrack changed styles of styled text of the editor if (fEditorViewer instanceof ITextViewerExtension4) { ((ITextViewerExtension4) fEditorViewer).removeTextPresentationListener(this); } fEditorViewer.removeTextInputListener(this); // track changed of vertical bar scroll to update highlight // Viewport. fEditorViewer.removeViewportListener(this); editorTextWidget.removeControlListener(this); fScaledFonts.values().forEach(Font::dispose); } }
/** * Unregister all previously installed listeners from the text viewer. */ private void removeListeners() { StyledText text= fTextViewer.getTextWidget(); if (text != null) { if (fKeyAndMouseListener != null) { text.removeMouseListener(fKeyAndMouseListener); text.removeKeyListener(fKeyAndMouseListener); fKeyAndMouseListener= null; } if (fTextInputListener != null) { fTextViewer.removeTextInputListener(fTextInputListener); fTextInputListener= null; } listenToTextChanges(false); fHistory.removeOperationHistoryListener(fHistoryListener); } }
public void uninstall() { if (isInstalled) { textViewer.removeTextInputListener(textInputListener); isInstalled = false; if (documentListener != null) { if (textViewer instanceof ISourceViewerExtension4) { ContentAssistantFacade facade = ((ISourceViewerExtension4) textViewer).getContentAssistantFacade(); facade.removeCompletionListener(documentListener); } if (textViewer.getDocument() instanceof IXtextDocument) { ((IXtextDocument) textViewer.getDocument()).removeXtextDocumentContentObserver(documentListener); } } } }
/** * Unregister all previously installed listeners from the text viewer. */ private void removeListeners() { StyledText text= fTextViewer.getTextWidget(); if (text != null) { if (fKeyAndMouseListener != null) { text.removeMouseListener(fKeyAndMouseListener); text.removeKeyListener(fKeyAndMouseListener); fKeyAndMouseListener= null; } if (fTextInputListener != null) { fTextViewer.removeTextInputListener(fTextInputListener); fTextInputListener= null; } listenToTextChanges(false); fHistory.removeOperationHistoryListener(fHistoryListener); } }
@Override public void uninstall() { fTextViewer.removeTextInputListener(this); IDocument document= fTextViewer.getDocument(); if (document != null) document.removeDocumentListener(this); if (fColor != null) { if (fDisposeColor) fColor.dispose(); fColor= null; } if (fTextViewer instanceof ITextViewerExtension4) ((ITextViewerExtension4)fTextViewer).removeTextPresentationListener(this); fTextViewer= null; if (fPreferenceStore != null) { fPreferenceStore.removePropertyChangeListener(this); fPreferenceStore= null; } }
@Override public void uninstall() { fTextViewer.removeTextInputListener(this); IDocument document= fTextViewer.getDocument(); if (document != null) document.removeDocumentListener(this); if (fColor != null) { if (fDisposeColor) fColor.dispose(); fColor= null; } if (fTextViewer instanceof ITextViewerExtension4) ((ITextViewerExtension4)fTextViewer).removeTextPresentationListener(this); fTextViewer= null; if (fPreferenceStore != null) { fPreferenceStore.removePropertyChangeListener(this); fPreferenceStore= null; } }