Java Code Examples for org.eclipse.jface.text.source.ISourceViewer#removeTextInputListener()
The following examples show how to use
org.eclipse.jface.text.source.ISourceViewer#removeTextInputListener() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TypeScriptEditor.java From typescript.java with MIT License | 5 votes |
public void uninstall() { ISourceViewer sourceViewer = getSourceViewer(); if (sourceViewer != null) sourceViewer.removeTextInputListener(this); IDocumentProvider documentProvider = getDocumentProvider(); if (documentProvider != null) { IDocument document = documentProvider.getDocument(getEditorInput()); if (document != null) document.removeDocumentListener(this); } }
Example 2
Source File: CommonOccurrencesUpdater.java From APICloud-Studio with GNU General Public License v3.0 | 5 votes |
/** * uninstall */ public void uninstall() { ISourceViewer sourceViewer = getSourceViewer(); IDocument document = getDocument(); if (sourceViewer != null) { sourceViewer.removeTextInputListener(this); } if (document != null) { document.removeDocumentListener(this); } }
Example 3
Source File: JavaEditor.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
public void uninstall() { ISourceViewer sourceViewer= getSourceViewer(); if (sourceViewer != null) sourceViewer.removeTextInputListener(this); IDocumentProvider documentProvider= getDocumentProvider(); if (documentProvider != null) { IDocument document= documentProvider.getDocument(getEditorInput()); if (document != null) document.removeDocumentListener(this); } }