/** * Gets the selection text. * * <p>Note: This method should be invoked in the GUI thread. */ public String getSelectionText() { final HtmlBlockPanel block = this.htmlBlockPanel; if (block == null) { return null; } else { return block.getSelectionText(); } }