MCPcopy Create free account
hub / github.com/bobbylight/RText / getTitle

Method getTitle

src/main/java/org/fife/rtext/RText.java:730–738  ·  view source on GitHub ↗

Returns the title of this window, less any "header" information (e.g. without the leading " rtext - "). @return The title of this window. @see #setTitle(String)

()

Source from the content-addressed store, hash-verified

728 * @see #setTitle(String)
729 */
730 @Override
731 public String getTitle() {
732 String title = super.getTitle();
733 int hyphen = title.indexOf("- ");
734 if (hyphen>-1) { // Should always be true
735 title = title.substring(hyphen+2);
736 }
737 return title;
738 }
739
740
741 /**

Callers 4

propertyChangeMethod · 0.95
setShowHostNameMethod · 0.95
constructMethod · 0.80

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected