import org.eclipse.jface.text.source.IOverviewRuler;
import org.eclipse.jface.text.source.ISharedTextColors;
import org.eclipse.jface.text.source.ISourceViewer;
+import org.eclipse.swt.SWT;
import org.eclipse.ui.texteditor.SourceViewerDecorationSupport;
public class CobolViewerDecorationSupport extends SourceViewerDecorationSupport {
private List<MarginPainter> fMarginPainters = new ArrayList<MarginPainter>();
- private List<Integer> rulerColumns = Arrays.asList(6, 7, 12, 72, 80);
+ private List<Integer> rulerColumns = Arrays.asList(6, 7, 11, 72, 80);
public CobolViewerDecorationSupport(ISourceViewer sourceViewer,
IOverviewRuler overviewRuler, IAnnotationAccess annotationAccess,
marginPainter = new MarginPainter(sourceViewer);
marginPainter.setMarginRulerColor(fSharedTextColors.getColor(ICobolColorConstants.MARGIN));
marginPainter.setMarginRulerColumn(iter.next());
+ marginPainter.setMarginRulerWidth(1);
+ marginPainter.setMarginRulerStyle(SWT.LINE_SOLID);
ITextViewerExtension2 extension= (ITextViewerExtension2) sourceViewer;
extension.addPainter(marginPainter);
fMarginPainters.add(marginPainter);