Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,9 @@ public void setVisibleRegion(int start, int length) {
expandOutsideCurrentVisibleRegion(document);
collapseOutsideOfNewVisibleRegion(start, end, document);
fConfiguredVisibleRegion= newVisibleRegion;
hideProjectionAnnotationsOutsideOfVisibleRegion();
if (fProjectionAnnotationModel != null) {
hideProjectionAnnotationsOutsideOfVisibleRegion();
}
} catch (BadLocationException e) {
ILog log= ILog.of(getClass());
log.log(new Status(IStatus.WARNING, getClass(), IStatus.OK, null, e));
Expand Down Expand Up @@ -887,10 +889,12 @@ public void resetVisibleRegion() {
super.resetVisibleRegion();
}
fConfiguredVisibleRegion= null;
for (Iterator<Annotation> it= fProjectionAnnotationModel.getAnnotationIterator(); it.hasNext();) {
Annotation annotation= it.next();
if (annotation instanceof ProjectionAnnotation a) {
a.setHidden(false);
if (fProjectionAnnotationModel != null) {
for (Iterator<Annotation> it= fProjectionAnnotationModel.getAnnotationIterator(); it.hasNext();) {
Annotation annotation= it.next();
if (annotation instanceof ProjectionAnnotation a) {
a.setHidden(false);
}
}
}
}
Expand Down
Loading