/** * Gets the number of text lines. * * @return the number of lines in the widget * @exception SWTException <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> */ public int getLineCount() { checkWidget(); return content.getLineCount(); } /**
void setContent(StyledTextContent content) { reset(); this.content = content; lineCount = content.getLineCount(); lineWidth = new int[lineCount]; lineHeight = new int[lineCount]; maxWidth = 0; maxWidthLineIndex = -1; reset(0, lineCount); } void setFont(Font font, int tabs) {
void setContent(StyledTextContent content) { reset(); this.content = content; lineCount = content.getLineCount(); lineWidth = new int[lineCount]; lineHeight = new int[lineCount]; maxWidth = 0; maxWidthLineIndex = -1; reset(0, lineCount); } void setFont(Font font, int tabs) {
void setContent(StyledTextContent content) { reset(); this.content = content; lineCount = content.getLineCount(); lineWidth = new int[lineCount]; lineHeight = new int[lineCount]; maxWidth = 0; maxWidthLineIndex = -1; reset(0, lineCount); } void setFont(Font font, int tabs) {
void setContent(StyledTextContent content) { reset(); this.content = content; lineCount = content.getLineCount(); lineWidth = new int[lineCount]; lineHeight = new int[lineCount]; maxWidth = 0; maxWidthLineIndex = -1; reset(0, lineCount); } void setFont(Font font, int tabs) {
void setContent(StyledTextContent content) { reset(); this.content = content; lineCount = content.getLineCount(); lineWidth = new int[lineCount]; lineHeight = new int[lineCount]; maxWidth = 0; maxWidthLineIndex = -1; reset(0, lineCount); } void setFont(Font font, int tabs) {
void resetBidiData() { caretDirection = SWT.NULL; resetCache(0, content.getLineCount()); setCaretLocation(); keyActionMap.clear(); createKeyBindings(); super.redraw(); } void resetCache(int firstLine, int count) {
void resetBidiData() { caretDirection = SWT.NULL; resetCache(0, content.getLineCount()); setCaretLocation(); keyActionMap.clear(); createKeyBindings(); super.redraw(); } void resetCache(int firstLine, int count) {
void resetBidiData() { caretDirection = SWT.NULL; resetCache(0, content.getLineCount()); setCaretLocation(); keyActionMap.clear(); createKeyBindings(); super.redraw(); } void resetCache(int firstLine, int count) {
void calculateClientArea () { int index = styledText.getTopIndex(); int lineCount = content.getLineCount(); int height = styledText.getClientArea().height; int y = 0; while (height > y && lineCount > index) { calculate(index, 1); y += lineHeight[index++]; } } void calculateIdle () {
void resetBidiData() { caretDirection = SWT.NULL; resetCache(0, content.getLineCount()); setCaretLocation(); keyActionMap.clear(); createKeyBindings(); super.redraw(); } void resetCache(int firstLine, int count) {
/** * @see Control#setBackground(Color) */ @Override public void setBackground(Color color) { checkWidget(); background = color; super.setBackground(color); resetCache(0, content.getLineCount()); setCaretLocation(); super.redraw(); } /**
/** * @see Control#setBackground(Color) */ @Override public void setBackground(Color color) { checkWidget(); background = color; super.setBackground(color); resetCache(0, content.getLineCount()); setCaretLocation(); super.redraw(); } /**
/** * @see Control#setBackground(Color) */ @Override public void setBackground(Color color) { checkWidget(); background = color; super.setBackground(color); resetCache(0, content.getLineCount()); setCaretLocation(); super.redraw(); } /**
/** * @see Control#setBackground(Color) */ public void setBackground(Color color) { checkWidget(); background = color; super.setBackground(color); resetCache(0, content.getLineCount()); setCaretLocation(); super.redraw(); } /**
public void setForeground(Color color) { checkWidget(); foreground = color; super.setForeground(getForeground()); resetCache(0, content.getLineCount()); setCaretLocation(); super.redraw(); } /**
@Override public void setForeground(Color color) { checkWidget(); foreground = color; super.setForeground(getForeground()); resetCache(0, content.getLineCount()); setCaretLocation(); super.redraw(); } /**
@Override public void setForeground(Color color) { checkWidget(); foreground = color; super.setForeground(getForeground()); resetCache(0, content.getLineCount()); setCaretLocation(); super.redraw(); } /**
@Override public void setForeground(Color color) { checkWidget(); foreground = color; super.setForeground(getForeground()); resetCache(0, content.getLineCount()); setCaretLocation(); super.redraw(); } /**
@Override public void setForeground(Color color) { checkWidget(); foreground = color; super.setForeground(getForeground()); resetCache(0, content.getLineCount()); setCaretLocation(); super.redraw(); } /**