Ejemplo n.º 1
0
 /**
  * Create a new SourceBuffer using the given TextTagTable.
  *
  * @since 4.0.12
  */
 public SourceBuffer(TextTagTable tags) {
   super(GtkSourceBuffer.createSourceBuffer(tags));
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }
Ejemplo n.º 3
0
 /**
  * Indicate the end of an action that cannot be undone.
  *
  * @since 4.0.12
  */
 public void endNotUndoableAction() {
   GtkSourceBuffer.endNotUndoableAction(this);
 }
Ejemplo n.º 4
0
 /**
  * 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()
  * &lt;init&gt;()} for details.
  *
  * @since 4.0.12
  */
 public SourceBuffer() {
   super(GtkSourceBuffer.createSourceBuffer(getDefaultTable()), true);
 }
Ejemplo n.º 5
0
 /**
  * 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);
 }
Ejemplo n.º 6
0
 /**
  * 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);
 }
Ejemplo n.º 7
0
 /**
  * Return <code>true</code> if an operation can be redone.
  *
  * @since 4.0.12
  */
 public boolean canRedo() {
   return GtkSourceBuffer.canRedo(this);
 }
Ejemplo n.º 8
0
 /**
  * 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);
 }
Ejemplo n.º 9
0
 /**
  * Enable or disable highlighting of matching brackets. Enabled by default.
  *
  * @since 4.0.12
  */
 public void setHighlightMatchingBrackets(boolean highlight) {
   GtkSourceBuffer.setHighlightMatchingBrackets(this, highlight);
 }
Ejemplo n.º 10
0
 /**
  * Return whether matching brackets are highlighted.
  *
  * @since 4.0.12
  */
 public boolean getHighlightMatchingBrackets() {
   return GtkSourceBuffer.getHighlightMatchingBrackets(this);
 }
Ejemplo n.º 11
0
 /**
  * Get the {@link StyleScheme} that is used.
  *
  * @since 4.1.2
  */
 public StyleScheme getStyleScheme() {
   return GtkSourceBuffer.getStyleScheme(this);
 }
Ejemplo n.º 12
0
 /**
  * Set the {@link StyleScheme} that is used.
  *
  * @since 4.1.2
  */
 public void setStyleScheme(StyleScheme scheme) {
   GtkSourceBuffer.setStyleScheme(this, scheme);
 }
Ejemplo n.º 13
0
 /**
  * Get the Language that is used for syntax highlighting.
  *
  * @since 4.0.12
  */
 public Language getLanguage() {
   return GtkSourceBuffer.getLanguage(this);
 }
Ejemplo n.º 14
0
 /**
  * Set the Language that is used for syntax highlighting.
  *
  * @since 4.0.12
  */
 public void setLanguage(Language language) {
   GtkSourceBuffer.setLanguage(this, language);
 }
Ejemplo n.º 15
0
 /**
  * Return whether syntax highlighting is enabled or not.
  *
  * @since 4.0.12
  */
 public boolean getHighlightSyntax() {
   return GtkSourceBuffer.getHighlightSyntax(this);
 }