コード例 #1
0
 /**
  * Create a new SourceBuffer using the given TextTagTable.
  *
  * @since 4.0.12
  */
 public SourceBuffer(TextTagTable tags) {
   super(GtkSourceBuffer.createSourceBuffer(tags));
 }
コード例 #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);
 }
コード例 #3
0
 /**
  * Indicate the end of an action that cannot be undone.
  *
  * @since 4.0.12
  */
 public void endNotUndoableAction() {
   GtkSourceBuffer.endNotUndoableAction(this);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #7
0
 /**
  * Return <code>true</code> if an operation can be redone.
  *
  * @since 4.0.12
  */
 public boolean canRedo() {
   return GtkSourceBuffer.canRedo(this);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #10
0
 /**
  * Return whether matching brackets are highlighted.
  *
  * @since 4.0.12
  */
 public boolean getHighlightMatchingBrackets() {
   return GtkSourceBuffer.getHighlightMatchingBrackets(this);
 }
コード例 #11
0
 /**
  * Get the {@link StyleScheme} that is used.
  *
  * @since 4.1.2
  */
 public StyleScheme getStyleScheme() {
   return GtkSourceBuffer.getStyleScheme(this);
 }
コード例 #12
0
 /**
  * Set the {@link StyleScheme} that is used.
  *
  * @since 4.1.2
  */
 public void setStyleScheme(StyleScheme scheme) {
   GtkSourceBuffer.setStyleScheme(this, scheme);
 }
コード例 #13
0
 /**
  * Get the Language that is used for syntax highlighting.
  *
  * @since 4.0.12
  */
 public Language getLanguage() {
   return GtkSourceBuffer.getLanguage(this);
 }
コード例 #14
0
 /**
  * Set the Language that is used for syntax highlighting.
  *
  * @since 4.0.12
  */
 public void setLanguage(Language language) {
   GtkSourceBuffer.setLanguage(this, language);
 }
コード例 #15
0
 /**
  * Return whether syntax highlighting is enabled or not.
  *
  * @since 4.0.12
  */
 public boolean getHighlightSyntax() {
   return GtkSourceBuffer.getHighlightSyntax(this);
 }