Fixes an issue on the opening of types and improves preference labels

This commit is contained in:
emmanue1 2015-04-12 23:28:25 +02:00
parent 5257db58e9
commit 3b0ad10e90
3 changed files with 8 additions and 3 deletions

View File

@ -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 {

View File

@ -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)
}

View File

@ -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)