/** * Installs the differ annotation model with the current quick diff display. * * @param column the column to install the model on */ private void installChangeRulerModel(IVerticalRulerColumn column) { if (column instanceof IChangeRulerColumn) { IAnnotationModel model= getAnnotationModelWithDiffer(); ((IChangeRulerColumn) column).setModel(model); if (model != null) { ISourceViewer viewer= fViewer; if (viewer != null && viewer.getAnnotationModel() == null) viewer.showAnnotations(true); } } }
/** * Uninstalls the differ annotation model from the current quick diff display. * * @param column the column to remove the model from */ private void uninstallChangeRulerModel(IVerticalRulerColumn column) { if (column instanceof IChangeRulerColumn) ((IChangeRulerColumn) column).setModel(null); IAnnotationModel model= getDiffer(); if (model instanceof ILineDifferExtension) ((ILineDifferExtension) model).suspend(); ISourceViewer viewer= fViewer; if (viewer != null && viewer.getAnnotationModel() == null) viewer.showAnnotations(false); }
/** * Uninstalls the differ annotation model from the current quick diff display. * * @param column the column to remove the model from */ private void uninstallChangeRulerModel(IVerticalRulerColumn column) { if (column instanceof IChangeRulerColumn) ((IChangeRulerColumn) column).setModel(null); IAnnotationModel model= getDiffer(); if (model instanceof ILineDifferExtension) ((ILineDifferExtension) model).suspend(); ISourceViewer viewer= fViewer; if (viewer != null && viewer.getAnnotationModel() == null) viewer.showAnnotations(false); }
/** * Installs the differ annotation model with the current quick diff display. * * @param column the column to install the model on */ private void installChangeRulerModel(IVerticalRulerColumn column) { if (column instanceof IChangeRulerColumn) { IAnnotationModel model= getAnnotationModelWithDiffer(); ((IChangeRulerColumn) column).setModel(model); if (model != null) { ISourceViewer viewer= fViewer; if (viewer != null && viewer.getAnnotationModel() == null && column.getControl() != null) viewer.showAnnotations(true); } } }
fSourceViewer.setDocument(document, model); fSourceViewer.setEditable(isEditable()); fSourceViewer.showAnnotations(model != null);
fSourceViewer.setDocument(document, model); fSourceViewer.setEditable(isEditable()); fSourceViewer.showAnnotations(model != null);
fSourceViewer.setDocument(document, model); fSourceViewer.setEditable(isEditable()); fSourceViewer.showAnnotations(model != null);