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)
()
| 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 | /** |
no test coverage detected