Lines 24-29
Link Here
|
24 |
|
24 |
|
25 |
import org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel; |
25 |
import org.eclipse.ui.texteditor.AbstractMarkerAnnotationModel; |
26 |
import org.eclipse.ui.texteditor.ITextEditor; |
26 |
import org.eclipse.ui.texteditor.ITextEditor; |
|
|
27 |
import org.eclipse.ui.texteditor.ITextEditorExtension; |
27 |
import org.eclipse.ui.texteditor.MarkerUtilities; |
28 |
import org.eclipse.ui.texteditor.MarkerUtilities; |
28 |
import org.eclipse.ui.texteditor.SelectMarkerRulerAction; |
29 |
import org.eclipse.ui.texteditor.SelectMarkerRulerAction; |
29 |
|
30 |
|
Lines 66-71
Link Here
|
66 |
} |
67 |
} |
67 |
|
68 |
|
68 |
public void update() { |
69 |
public void update() { |
|
|
70 |
// Begin Fix for http://dev.eclipse.org/bugs/show_bug.cgi?id=20114 |
71 |
if (fMyTextEditor instanceof ITextEditorExtension && ((ITextEditorExtension)fMyTextEditor).isEditorInputReadOnly()) { |
72 |
fPosition= null; |
73 |
super.update(); |
74 |
return; |
75 |
} |
76 |
// End Fix for http://dev.eclipse.org/bugs/show_bug.cgi?id=20114 |
69 |
fPosition= getProblemPosition(); |
77 |
fPosition= getProblemPosition(); |
70 |
if (fPosition != null) |
78 |
if (fPosition != null) |
71 |
setEnabled(true); |
79 |
setEnabled(true); |