/** * Create a new SourceBuffer using the given TextTagTable. * * @since 4.0.12 */ public SourceBuffer(TextTagTable tags) { super(GtkSourceBuffer.createSourceBuffer(tags)); }
/** * Enable/disable syntax higlighting. The SourceLangage is configured with <code>setLanguage * </code>. Highlighting is enabled by default. * * @since 4.0.12 */ public void setHighlightSyntax(boolean highlight) { GtkSourceBuffer.setHighlightSyntax(this, highlight); }
/** * Indicate the end of an action that cannot be undone. * * @since 4.0.12 */ public void endNotUndoableAction() { GtkSourceBuffer.endNotUndoableAction(this); }
/** * Create a new SourceBuffer. This uses the same default TextTagTable as used by the no-arg * TextTags; see the no-arg TextBuffer {@link org.gnome.gtk.TextBuffer#TextBuffer() * <init>()} for details. * * @since 4.0.12 */ public SourceBuffer() { super(GtkSourceBuffer.createSourceBuffer(getDefaultTable()), true); }
/** * Redo the last undone operation. You should only call this method if there is an operation that * can be redone. This can be checked with <code>canRedo()</code>. * * @since 4.0.12 */ public void redo() { GtkSourceBuffer.redo(this); }
/** * Indicate the beginning of an action that cannot be undone. This is especially useful when * setting the initial content of the buffer. * * @since 4.0.12 */ public void beginNotUndoableAction() { GtkSourceBuffer.beginNotUndoableAction(this); }
/** * Return <code>true</code> if an operation can be redone. * * @since 4.0.12 */ public boolean canRedo() { return GtkSourceBuffer.canRedo(this); }
/** * Undo the last operation. You should only call this method if there is an operation that can be * undone. This can be checked with <code>canUndo()</code>. * * @since 4.0.12 */ public void undo() { GtkSourceBuffer.undo(this); }
/** * Enable or disable highlighting of matching brackets. Enabled by default. * * @since 4.0.12 */ public void setHighlightMatchingBrackets(boolean highlight) { GtkSourceBuffer.setHighlightMatchingBrackets(this, highlight); }
/** * Return whether matching brackets are highlighted. * * @since 4.0.12 */ public boolean getHighlightMatchingBrackets() { return GtkSourceBuffer.getHighlightMatchingBrackets(this); }
/** * Get the {@link StyleScheme} that is used. * * @since 4.1.2 */ public StyleScheme getStyleScheme() { return GtkSourceBuffer.getStyleScheme(this); }
/** * Set the {@link StyleScheme} that is used. * * @since 4.1.2 */ public void setStyleScheme(StyleScheme scheme) { GtkSourceBuffer.setStyleScheme(this, scheme); }
/** * Get the Language that is used for syntax highlighting. * * @since 4.0.12 */ public Language getLanguage() { return GtkSourceBuffer.getLanguage(this); }
/** * Set the Language that is used for syntax highlighting. * * @since 4.0.12 */ public void setLanguage(Language language) { GtkSourceBuffer.setLanguage(this, language); }
/** * Return whether syntax highlighting is enabled or not. * * @since 4.0.12 */ public boolean getHighlightSyntax() { return GtkSourceBuffer.getHighlightSyntax(this); }