Tabnine Logo
Gutter.getBookmarks
Code IndexAdd Tabnine to your IDE (free)

How to use
getBookmarks
method
in
org.fife.ui.rtextarea.Gutter

Best Java code snippets using org.fife.ui.rtextarea.Gutter.getBookmarks (Showing top 8 results out of 315)

origin: bobbylight/RSyntaxTextArea

@Test
public void getBookmarks_EmptyArray() {
  RTextArea textArea = new RTextArea(PLAIN_TEXT);
  Gutter gutter = new Gutter(textArea);
  Assert.assertEquals(0, gutter.getBookmarks().length); // Non-null
}
origin: bobbylight/RSyntaxTextArea

@Test
public void getBookmarks_SomeBookmarks_BookmarkingDisabled() throws Exception {
  RTextArea textArea = new RTextArea(PLAIN_TEXT);
  Gutter gutter = new Gutter(textArea);
  Assert.assertEquals(0, gutter.getBookmarks().length); // Non-null
}
origin: bobbylight/RSyntaxTextArea

@Test
public void getBookmarks_SomeBookmarks_NoIcon() throws Exception {
  RTextArea textArea = new RTextArea(PLAIN_TEXT);
  Gutter gutter = new Gutter(textArea);
  gutter.setBookmarkingEnabled(true);
  // Both enabled state and icon are reuqired
  Assert.assertEquals(0, gutter.getBookmarks().length); // Non-null
}
origin: bobbylight/RSyntaxTextArea

GutterIconInfo[] bookmarks = gutter.getBookmarks();
if (bookmarks.length==0) {
  UIManager.getLookAndFeel().
origin: bobbylight/RSyntaxTextArea

@Test
public void getBookmarks_SomeBookmarks() throws Exception {
  RTextArea textArea = new RTextArea(PLAIN_TEXT);
  Gutter gutter = new Gutter(textArea);
  gutter.setBookmarkingEnabled(true);
  gutter.setBookmarkIcon(new TestIcon());
  Assert.assertTrue(gutter.toggleBookmark(1));
  Assert.assertTrue(gutter.toggleBookmark(2));
  Assert.assertEquals(2, gutter.getBookmarks().length); // Non-null
}
origin: org.codehaus.jtstand/jtstand-editor

GutterIconInfo[] bookmarks = gutter.getBookmarks();
if (bookmarks.length==0) {
  UIManager.getLookAndFeel().
origin: org.nuiton.thirdparty/rsyntaxtextarea

GutterIconInfo[] bookmarks = gutter.getBookmarks();
if (bookmarks.length==0) {
  UIManager.getLookAndFeel().
origin: com.fifesoft/rsyntaxtextarea

GutterIconInfo[] bookmarks = gutter.getBookmarks();
if (bookmarks.length==0) {
  UIManager.getLookAndFeel().
org.fife.ui.rtextareaGuttergetBookmarks

Javadoc

Returns the bookmarks known to this gutter.

Popular methods of Gutter

  • setLineNumberColor
    Sets the color to use to paint line numbers.
  • setBackground
  • <init>
    Constructor.
  • addLineTrackingIcon
    Adds an icon that tracks an offset in the document, and is displayed adjacent to the line numbers. T
  • addOffsetTrackingIcon
    Adds an icon that tracks an offset in the document, and is displayed adjacent to the line numbers. T
  • getLineNumbersEnabled
    Returns true if the line numbers are enabled and visible.
  • isIconRowHeaderEnabled
    Returns whether the icon row header is enabled.
  • setBorderColor
    Sets the color for the "border" line.
  • setIconRowHeaderEnabled
    Toggles whether the icon row header (used for breakpoints, bookmarks, etc.) is enabled.
  • setLineNumberFont
    Sets the font used for line numbers.
  • setLineNumbersEnabled
    Toggles whether or not line numbers are visible.
  • toggleBookmark
    Programatically toggles whether there is a bookmark for the specified line. If bookmarking is not en
  • setLineNumbersEnabled,
  • toggleBookmark,
  • add,
  • getBackground,
  • getBorder,
  • getComponent,
  • getComponentCount,
  • remove,
  • repaint

Popular in Java

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now