protected int getWidthDimension() { int newWidth = 0; if (annos.isGlyphColumn() || AnnotationTypes.getTypes().isShowGlyphGutter().booleanValue()) newWidth += glyphWidth; if (annos.isGlyphButtonColumn()) newWidth += glyphButtonWidth; if (showLineNumbers) { int lineNumberWidth = getLineNumberWidth(); if (drawOverLineNumbers) { if (lineNumberWidth > newWidth) newWidth = lineNumberWidth; } else newWidth += lineNumberWidth; } return newWidth; }
protected int getWidthDimension() { int newWidth = 0; if (editorUI != null) { if (annos.isGlyphColumn() || AnnotationTypes.getTypes().isShowGlyphGutter().booleanValue()) newWidth += glyphWidth; if (annos.isGlyphButtonColumn()) newWidth += glyphButtonWidth; if (showLineNumbers) { int lineNumberWidth = getLineNumberWidth(); if (drawOverLineNumbers) { if (lineNumberWidth > newWidth) newWidth = lineNumberWidth; } else newWidth += lineNumberWidth; } } return newWidth; }