diff options
| author | 2014-09-30 00:25:36 -0400 | |
|---|---|---|
| committer | 2014-09-30 00:25:36 -0400 | |
| commit | a83bbfd5c510367a194073b1db132022cacf65ed (patch) | |
| tree | abfd7520b79ef1e64b7430bd81e75a30353b7f14 /src/cuchaz/enigma/gui/Gui.java | |
| parent | fixed recognition of static initializer tokens (diff) | |
| download | enigma-fork-a83bbfd5c510367a194073b1db132022cacf65ed.tar.gz enigma-fork-a83bbfd5c510367a194073b1db132022cacf65ed.tar.xz enigma-fork-a83bbfd5c510367a194073b1db132022cacf65ed.zip | |
fixed nasty issue with renaming inner classes, but alas, more bugs remain
Diffstat (limited to 'src/cuchaz/enigma/gui/Gui.java')
| -rw-r--r-- | src/cuchaz/enigma/gui/Gui.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cuchaz/enigma/gui/Gui.java b/src/cuchaz/enigma/gui/Gui.java index dbfcba8..faa9b7b 100644 --- a/src/cuchaz/enigma/gui/Gui.java +++ b/src/cuchaz/enigma/gui/Gui.java | |||
| @@ -1124,7 +1124,7 @@ public class Gui | |||
| 1124 | { | 1124 | { |
| 1125 | // init the text box | 1125 | // init the text box |
| 1126 | final JTextField text = new JTextField(); | 1126 | final JTextField text = new JTextField(); |
| 1127 | text.setText( m_reference.getNameableEntry().getName() ); | 1127 | text.setText( m_reference.getNamableName() ); |
| 1128 | text.setPreferredSize( new Dimension( 360, text.getPreferredSize().height ) ); | 1128 | text.setPreferredSize( new Dimension( 360, text.getPreferredSize().height ) ); |
| 1129 | text.addKeyListener( new KeyAdapter( ) | 1129 | text.addKeyListener( new KeyAdapter( ) |
| 1130 | { | 1130 | { |
| @@ -1175,7 +1175,7 @@ public class Gui | |||
| 1175 | // abort the rename | 1175 | // abort the rename |
| 1176 | JPanel panel = (JPanel)m_infoPanel.getComponent( 0 ); | 1176 | JPanel panel = (JPanel)m_infoPanel.getComponent( 0 ); |
| 1177 | panel.remove( panel.getComponentCount() - 1 ); | 1177 | panel.remove( panel.getComponentCount() - 1 ); |
| 1178 | panel.add( GuiTricks.unboldLabel( new JLabel( m_reference.getNameableEntry().getName(), JLabel.LEFT ) ) ); | 1178 | panel.add( GuiTricks.unboldLabel( new JLabel( m_reference.getNamableName(), JLabel.LEFT ) ) ); |
| 1179 | 1179 | ||
| 1180 | m_editor.grabFocus(); | 1180 | m_editor.grabFocus(); |
| 1181 | 1181 | ||