本文整理了Java中org.eclipse.jface.text.source.ISourceViewer.removeTextInputListener()方法的一些代码示例,展示了ISourceViewer.removeTextInputListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ISourceViewer.removeTextInputListener()方法的具体详情如下:包路径:org.eclipse.jface.text.source.ISourceViewer类名称:ISourceViewer方法名:removeTextInputListener
ISourceViewer.removeTextInputListener介绍
暂无
代码示例
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text
/** * Clears the list of annotation types whose annotations are * painted by this painter. */public void removeAllAnnotationTypes() { fCachedAnnotationType2PaintingStrategy.clear(); fAnnotationType2PaintingStrategyId.clear(); if (fTextInputListener != null) { fSourceViewer.removeTextInputListener(fTextInputListener); fTextInputListener= null; }}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text
/** * Clears the list of annotation types whose annotations are * painted by this painter. */public void removeAllAnnotationTypes() { fCachedAnnotationType2PaintingStrategy.clear(); fAnnotationType2PaintingStrategyId.clear(); if (fTextInputListener != null) { fSourceViewer.removeTextInputListener(fTextInputListener); fTextInputListener= null; }}
代码示例来源:origin: org.eclipse.platform/org.eclipse.jface.text
/** * Removes the given annotation type from the list of annotation types whose * annotations are painted by this painter. If the annotation type is not * in this list, this method is without effect. * * @param annotationType the annotation type */public void removeAnnotationType(Object annotationType) { fCachedAnnotationType2PaintingStrategy.clear(); fAnnotationType2PaintingStrategyId.remove(annotationType); if (fAnnotationType2PaintingStrategyId.isEmpty() fTextInputListener= null; fInputDocumentAboutToBeChanged= false; }}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text
/** * Removes the given annotation type from the list of annotation types whose * annotations are painted by this painter. If the annotation type is not * in this list, this method is without effect. * * @param annotationType the annotation type */public void removeAnnotationType(Object annotationType) { fCachedAnnotationType2PaintingStrategy.clear(); fAnnotationType2PaintingStrategyId.remove(annotationType); if (fAnnotationType2PaintingStrategyId.isEmpty() fTextInputListener= null; fInputDocumentAboutToBeChanged= false; }}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
/** * Uninstall this reconciler from the editor */public void uninstall() { if (fPresenter != null) fPresenter.setCanceled(true); if (fEditor != null) { if (fEditor instanceof CompilationUnitEditor) ((CompilationUnitEditor)fEditor).removeReconcileListener(this); else fSourceViewer.removeTextInputListener(this); fEditor= null; } fSourceViewer= null; fSemanticHighlightings= null; fHighlightings= null; fPresenter= null;}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
/** * Uninstall this reconciler from the editor */public void uninstall() { if (fPresenter != null) fPresenter.setCanceled(true); if (fEditor != null) { if (fEditor instanceof CompilationUnitEditor) ((CompilationUnitEditor)fEditor).removeReconcileListener(this); else fSourceViewer.removeTextInputListener(this); fEditor= null; } fSourceViewer= null; fSemanticHighlightings= null; fHighlightings= null; fPresenter= null;}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
/** * Uninstall this reconciler from the editor */public void uninstall() { if (fPresenter != null) fPresenter.setCanceled(true); if (fEditor != null) { if (fEditor instanceof CompilationUnitEditor) ((CompilationUnitEditor)fEditor).removeReconcileListener(this); else fSourceViewer.removeTextInputListener(this); fEditor= null; } fSourceViewer= null; fSemanticHighlightings= null; fHighlightings= null; fPresenter= null;}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
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); }}
代码示例来源:origin: org.eclipse.xtext/ui
@Overridepublic void dispose() { contribution.deregister(this); sourceViewer.removeTextInputListener(textInputListener); if (modelListener != null) { xtextDocument.removeModelListener(modelListener); modelListener = null; } contentProvider.dispose(); super.dispose();}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
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); }}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
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); }}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ant.ui
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); }}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.workbench.texteditor
@Overridepublic boolean validateEditorInputState() { boolean enabled= false; synchronized (this) { enabled= fIsStateValidationEnabled; } if (enabled) { ISourceViewer viewer= fSourceViewer; if (viewer == null) return false; fTextInputListener.inputChanged= false; viewer.addTextInputListener(fTextInputListener); try { final IEditorInput input= getEditorInput(); BusyIndicator.showWhile(getSite().getShell().getDisplay(), new Runnable() { @Override public void run() { validateState(input); } }); sanityCheckState(input); return !isEditorInputReadOnly() } finally { viewer.removeTextInputListener(fTextInputListener); } } return !isEditorInputReadOnly();}
代码示例来源:origin: org.eclipse/org.eclipse.ui.workbench.texteditor
public boolean validateEditorInputState() { boolean enabled= false; synchronized (this) { enabled= fIsStateValidationEnabled; } if (enabled) { ISourceViewer viewer= fSourceViewer; if (viewer == null) return false; fTextInputListener.inputChanged= false; viewer.addTextInputListener(fTextInputListener); try { final IEditorInput input= getEditorInput(); BusyIndicator.showWhile(getSite().getShell().getDisplay(), new Runnable() { /* * @see java.lang.Runnable#run() */ public void run() { validateState(input); } }); sanityCheckState(input); return !isEditorInputReadOnly() } finally { viewer.removeTextInputListener(fTextInputListener); } } return !isEditorInputReadOnly();}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench.texteditor
@Overridepublic boolean validateEditorInputState() { boolean enabled= false; synchronized (this) { enabled= fIsStateValidationEnabled; } if (enabled) { ISourceViewer viewer= fSourceViewer; if (viewer == null) return false; fTextInputListener.inputChanged= false; viewer.addTextInputListener(fTextInputListener); try { final IEditorInput input= getEditorInput(); BusyIndicator.showWhile(getSite().getShell().getDisplay(), () -> validateState(input)); sanityCheckState(input); return !isEditorInputReadOnly() } finally { viewer.removeTextInputListener(fTextInputListener); } } return !isEditorInputReadOnly();}
代码示例来源:origin: org.eclipse/org.eclipse.ui.workbench.texteditor
fSourceViewer.removeTextInputListener(fTextListener);fTextListener= null;
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.workbench.texteditor
fSourceViewer.removeTextInputListener(fTextListener);fTextListener= null;
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.workbench.texteditor
fSourceViewer.removeTextInputListener(fTextListener);fTextListener= null;