/** * Disposes the column's resources. */ protected void handleDispose() { if (fCachedTextViewer != null) { fCachedTextViewer.removeViewportListener(fInternalListener); fCachedTextViewer.removeTextListener(fInternalListener); } if (fBuffer != null) { fBuffer.dispose(); fBuffer= null; } }
/** * Disposes the column's resources. */ protected void handleDispose() { if (fCachedTextViewer != null) { fCachedTextViewer.removeViewportListener(fInternalListener); fCachedTextViewer.removeTextListener(fInternalListener); } if (fBuffer != null) { fBuffer.dispose(); fBuffer= null; } }
/** * Disposes the column's resources. */ protected void handleDispose() { if (fCachedTextViewer != null) { fCachedTextViewer.removeViewportListener(fInternalListener); fCachedTextViewer.removeTextListener(fInternalListener); } if (fBuffer != null) { fBuffer.dispose(); fBuffer= null; } }
/** * Disposes the ruler's resources. */ private void handleDispose() { if (fCachedTextViewer != null) { fCachedTextViewer.removeViewportListener(fInternalListener); fCachedTextViewer.removeTextListener(fInternalListener); } if (fModel != null) fModel.removeAnnotationModelListener(fInternalListener); if (fBuffer != null) { fBuffer.dispose(); fBuffer= null; } fConfiguredAnnotationTypes.clear(); fAllowedAnnotationTypes.clear(); fAnnotationAccessExtension= null; }
/** * Disposes this ruler column. * <p> * Subclasses may extend this method.</p> * <p> * Clients who created this column are responsible to call this method * once the column is no longer used.</p> */ public void dispose() { if (fTextViewer != null) { fTextViewer.removeViewportListener(fInternalListener); fTextViewer.removeTextListener(fInternalListener); fTextViewer= null; } if (fStyledText != null) fStyledText= null; if (fCanvas != null) { fCanvas.dispose(); fCanvas= null; } }
/** * Disposes this ruler column. * <p> * Subclasses may extend this method.</p> * <p> * Clients who created this column are responsible to call this method * once the column is no longer used.</p> */ public void dispose() { if (fTextViewer != null) { fTextViewer.removeViewportListener(fInternalListener); fTextViewer.removeTextListener(fInternalListener); fTextViewer= null; } if (fStyledText != null) fStyledText= null; if (fCanvas != null) { fCanvas.dispose(); fCanvas= null; } }
/** * Disposes the ruler's resources. */ private void handleDispose() { if (fTextViewer != null) { fTextViewer.removeViewportListener(fInternalListener); fTextViewer.removeTextListener(fInternalListener); fTextViewer= null; } if (fModel != null) fModel.removeAnnotationModelListener(fInternalListener); if (fBuffer != null) { fBuffer.dispose(); fBuffer= null; } }
/** * Disposes the ruler's resources. */ private void handleDispose() { if (fTextViewer != null) { fTextViewer.removeViewportListener(fInternalListener); fTextViewer.removeTextListener(fInternalListener); fTextViewer= null; } if (fModel != null) fModel.removeAnnotationModelListener(fInternalListener); if (fBuffer != null) { fBuffer.dispose(); fBuffer= null; } }
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); } }
@Override public void stop() { if (!fIsActive) return; fIsActive= false; fTextViewer.removeViewportListener(this); if (fInformationControlToClose != null) fInformationControlToClose.removeFocusListener(this); if (fSubjectControl != null && !fSubjectControl.isDisposed()) { fSubjectControl.removeControlListener(this); fSubjectControl.removeMouseListener(this); fSubjectControl.removeFocusListener(this); fSubjectControl.removeKeyListener(this); } }
@Override public void stop() { if (!fIsActive) return; fIsActive= false; fTextViewer.removeViewportListener(this); if (fInformationControlToClose != null) fInformationControlToClose.removeFocusListener(this); if (fSubjectControl != null && !fSubjectControl.isDisposed()) { fSubjectControl.removeControlListener(this); fSubjectControl.removeMouseListener(this); fSubjectControl.removeFocusListener(this); fSubjectControl.removeKeyListener(this); } }
/** * Uninstalls this closer from the viewer's text widget. */ protected void uninstall() { Shell shell= fShell; fShell= null; if (Helper2.okToUse(shell)) shell.removeControlListener(this); Control w= fViewer.getTextWidget(); if (Helper2.okToUse(w)) { w.removeMouseListener(this); w.removeFocusListener(this); /* * 1GGYYWK: ITPJUI:ALL - Dismissing editor with code assist up causes lots of Internal Errors */ w.removeDisposeListener(this); } fViewer.removeViewportListener(this); }
/** * Uninstalls this closer from the viewer's text widget. */ protected void uninstall() { Control shell= fShell; fShell= null; if (Helper.okToUse(shell)) shell.removeControlListener(this); Control control= fControl; fControl= null; if (Helper.okToUse(control)) { control.removeMouseListener(this); control.removeFocusListener(this); /* * 1GGYYWK: ITPJUI:ALL - Dismissing editor with code assist up causes lots of * Internal Errors */ control.removeDisposeListener(this); } if (fViewer != null) fViewer.removeViewportListener(this); }
/** * Uninstalls this closer from the viewer's text widget. */ protected void uninstall() { Control shell= fShell; fShell= null; if (Helper.okToUse(shell)) shell.removeControlListener(this); Control control= fControl; fControl= null; if (Helper.okToUse(control)) { control.removeMouseListener(this); control.removeFocusListener(this); /* * 1GGYYWK: ITPJUI:ALL - Dismissing editor with code assist up causes lots of * Internal Errors */ control.removeDisposeListener(this); } if (fViewer != null) fViewer.removeViewportListener(this); }
/** * Uninstalls this closer from the viewer's text widget. */ protected void uninstall() { Shell shell= fShell; fShell= null; if (Helper2.okToUse(shell)) shell.removeControlListener(this); Control w= fViewer.getTextWidget(); if (Helper2.okToUse(w)) { w.removeMouseListener(this); w.removeFocusListener(this); /* * 1GGYYWK: ITPJUI:ALL - Dismissing editor with code assist up causes lots of Internal Errors */ w.removeDisposeListener(this); } fViewer.removeViewportListener(this); }