Skip to content

Commit

Permalink
Fixes an issue on the opening of types and improves preference labels
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue1 committed Apr 12, 2015
1 parent 5257db5 commit 3b0ad10
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class MainTabbedPanel extends TabbedPanel implements UriOpenable, PageChangeList
// Enable page changed event
pageChangedListenersEnabled = true
// Search & display sub tab
page.openUri(uri)
return page.openUri(uri)
}
return true
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,12 @@ class TreeTabbedPanel extends JPanel implements UriGettable, UriOpenable, PageCh
def childU = it.uri.toString()

if (u.length() > childU.length()) {
return u.startsWith(childU) && (u.charAt(childU.length()) == '/')
if (u.startsWith(childU)) {
char c = u.charAt(childU.length())
return (c == '/') || (c == '!')
} else {
return false
}
} else {
return u.equals(childU)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ClassFileSaverPreferencesProvider extends JPanel implements PreferencesPan
omitThisPrefixCheckBox = new JCheckBox("Omit the prefix 'this' if possible")
realignLineNumbersCheckBox = new JCheckBox('Realign line numbers')
writeDefaultConstructorCheckBox = new JCheckBox('Write default constructor')
writeLineNumbersCheckBox = new JCheckBox('Write line numbers')
writeLineNumbersCheckBox = new JCheckBox('Write original line numbers')
writeMetadataCheckBox = new JCheckBox('Write metadata')

add(escapeUnicodeCharactersCheckBox)
Expand Down

0 comments on commit 3b0ad10

Please sign in to comment.