@Override
    public void setText(String text)
    {
        data.setLength(0);
        data.append(text, 0, Math.min(text.length(), Math.max(0, linesTimesColumns)));

        TextChangedEvent changedEvent = new TextChangedEvent(this);
        for (TextChangeListener textListener : textListeners) {
            try {
                textListener.textSet(changedEvent);
            } catch (Exception e) {
                log.debug("Internal error while notifying display content listeners: " + e.getClass().getName() + ": " + e.getMessage());
            }
        }
    }
@see org.eclipse.swt.custom.StyledTextContent#setText(java.lang.String)
plugins/org.jkiss.dbeaver.ui.editors.hex/src/org/jkiss/dbeaver/ui/editors/binary/DisplayedContent.java