public void uninstall() { if (fLineDiffer != null) { ((IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener); fLineDiffer = null; } }
/** * Disposes of this painter and releases any resources. */ private void handleDispose() { if (fLineDiffer != null) { ((IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener); fLineDiffer= null; } }
protected void unregisterListener() { if (annotationModel != null) { annotationModel.removeAnnotationModelListener(this); annotationModel = null; } }
/** * Disposes of this painter and releases any resources. */ private void handleDispose() { if (fLineDiffer != null) { ((IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener); fLineDiffer= null; } }
public void removeAnnotationModelListener(IAnnotationModelListener listener) { if(delegate != null) { delegate.removeAnnotationModelListener(listener); } }
private void setDiffer(IAnnotationModel differ) { if (differ instanceof ILineDiffer || differ == null) { if (fLineDiffer != differ) { if (fLineDiffer != null) ((IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener); fLineDiffer = (ILineDiffer) differ; if (fLineDiffer != null) ((IAnnotationModel) fLineDiffer).addAnnotationModelListener(fAnnotationListener); } } }
/** * Removes the projection annotation model from the given annotation model. * * @param model the mode from which the projection annotation model is removed * @return the removed projection annotation model or <code>null</code> if there was none */ private IAnnotationModel removeProjectionAnnotationModel(IAnnotationModel model) { if (model instanceof IAnnotationModelExtension) { model.removeAnnotationModelListener(fAnnotationModelListener); IAnnotationModelExtension extension= (IAnnotationModelExtension) model; return extension.removeAnnotationModel(ProjectionSupport.PROJECTION); } return null; }
@Override public IAnnotationModel removeAnnotationModel(Object key) { IAnnotationModel ret= fAttachments.remove(key); if (ret != null) { for (int i= 0; i < fOpenConnections; i++) ret.disconnect(fDocument); ret.removeAnnotationModelListener(fModelListener); } return ret; }
@Override public IAnnotationModel removeAnnotationModel(Object key) { IAnnotationModel ret= fAttachments.remove(key); if (ret != null) { for (int i= 0; i < fOpenConnections; i++) ret.disconnect(fDocument); ret.removeAnnotationModelListener(fModelListener); } return ret; }
/** * Removes the projection annotation model from the given annotation model. * * @param model the mode from which the projection annotation model is removed * @return the removed projection annotation model or <code>null</code> if there was none */ private IAnnotationModel removeProjectionAnnotationModel(IAnnotationModel model) { if (model instanceof IAnnotationModelExtension) { model.removeAnnotationModelListener(fAnnotationModelListener); IAnnotationModelExtension extension= (IAnnotationModelExtension) model; return extension.removeAnnotationModel(ProjectionSupport.PROJECTION); } return null; }
@Override public void setModel(IAnnotationModel model) { if (fAllowSetModel && model != fModel) { if (fModel != null) fModel.removeAnnotationModelListener(fAnnotationListener); fModel= model; if (fModel != null) fModel.addAnnotationModelListener(fAnnotationListener); postRedraw(); } }
@Override public void setModel(IAnnotationModel model) { if (model != fModel) { if (fModel != null) fModel.removeAnnotationModelListener(fInternalListener); fModel= model; if (fModel != null) fModel.addAnnotationModelListener(fInternalListener); update(); } }
@Override public void setModel(IAnnotationModel model) { if (model != fModel) { if (fModel != null) fModel.removeAnnotationModelListener(fInternalListener); fModel= model; if (fModel != null) fModel.addAnnotationModelListener(fInternalListener); update(); } }
/** * Disposes of the painter's resources. */ private void handleDispose() { updateFocusLine(-1); if (fLineDiffer != null) { ((IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener); fLineDiffer= null; } fRevisionSelectionProvider.uninstall(); }
@Override public void setModel(IAnnotationModel model) { if (model != fModel || model != null) { if (fModel != null) fModel.removeAnnotationModelListener(fInternalListener); fModel= model; if (fModel != null) fModel.addAnnotationModelListener(fInternalListener); update(); } }
@Override public void setModel(IAnnotationModel model) { if (model != fModel || model != null) { if (fModel != null) fModel.removeAnnotationModelListener(fInternalListener); fModel= model; if (fModel != null) fModel.addAnnotationModelListener(fInternalListener); update(); } }
/** * Disposes of the painter's resources. */ private void handleDispose() { updateFocusLine(-1); if (fLineDiffer != null) { ((IAnnotationModel) fLineDiffer).removeAnnotationModelListener(fAnnotationListener); fLineDiffer= null; } fRevisionSelectionProvider.uninstall(); }
@Override public void setModel(IAnnotationModel model) { if (fAllowSetModel && model != fModel) { if (fModel != null) fModel.removeAnnotationModelListener(fInternalListener); fModel= model; if (fModel != null) fModel.addAnnotationModelListener(fInternalListener); postRedraw(); } }
protected void disposeFileInfo(Object element, FileInfo info) { if (info instanceof CompilationUnitInfo) { CompilationUnitInfo cuInfo= (CompilationUnitInfo) info; try { cuInfo.fCopy.discardWorkingCopy(); } catch (JavaModelException x) { handleCoreException(x, x.getMessage()); } if (cuInfo.fModel != null) cuInfo.fModel.removeAnnotationModelListener(fGlobalAnnotationModelListener); } super.disposeFileInfo(element, info); }
@Override protected void disposeFileInfo(Object element, FileInfo info) { if (info instanceof CompilationUnitInfo) { CompilationUnitInfo cuInfo= (CompilationUnitInfo) info; try { cuInfo.fCopy.discardWorkingCopy(); } catch (JavaModelException x) { handleCoreException(x, x.getMessage()); } if (cuInfo.fModel != null) cuInfo.fModel.removeAnnotationModelListener(fGlobalAnnotationModelListener); } super.disposeFileInfo(element, info); }