diff options
Diffstat (limited to 'src/cuchaz/enigma/gui/GuiController.java')
| -rw-r--r-- | src/cuchaz/enigma/gui/GuiController.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cuchaz/enigma/gui/GuiController.java b/src/cuchaz/enigma/gui/GuiController.java index ce1c31b..6704ef8 100644 --- a/src/cuchaz/enigma/gui/GuiController.java +++ b/src/cuchaz/enigma/gui/GuiController.java | |||
| @@ -62,7 +62,7 @@ public class GuiController | |||
| 62 | FileReader in = new FileReader( file ); | 62 | FileReader in = new FileReader( file ); |
| 63 | m_deobfuscator.setMappings( new MappingsReader().read( in ) ); | 63 | m_deobfuscator.setMappings( new MappingsReader().read( in ) ); |
| 64 | in.close(); | 64 | in.close(); |
| 65 | m_gui.setMappingsLoaded( true ); | 65 | m_gui.setMappingsFile( file ); |
| 66 | refreshClasses(); | 66 | refreshClasses(); |
| 67 | refreshOpenFiles(); | 67 | refreshOpenFiles(); |
| 68 | } | 68 | } |
| @@ -78,7 +78,7 @@ public class GuiController | |||
| 78 | public void closeMappings( ) | 78 | public void closeMappings( ) |
| 79 | { | 79 | { |
| 80 | m_deobfuscator.setMappings( null ); | 80 | m_deobfuscator.setMappings( null ); |
| 81 | m_gui.setMappingsLoaded( false ); | 81 | m_gui.setMappingsFile( null ); |
| 82 | refreshOpenFiles(); | 82 | refreshOpenFiles(); |
| 83 | } | 83 | } |
| 84 | 84 | ||
| @@ -88,7 +88,7 @@ public class GuiController | |||
| 88 | deobfuscate( m_currentFile ); | 88 | deobfuscate( m_currentFile ); |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | public EntryPair getEntryPair( int pos ) | 91 | public EntryPair<Entry> getEntryPair( int pos ) |
| 92 | { | 92 | { |
| 93 | if( m_index == null ) | 93 | if( m_index == null ) |
| 94 | { | 94 | { |
| @@ -100,7 +100,7 @@ public class GuiController | |||
| 100 | { | 100 | { |
| 101 | return null; | 101 | return null; |
| 102 | } | 102 | } |
| 103 | return new EntryPair( m_deobfuscator.obfuscate( deobfEntry ), deobfEntry ); | 103 | return new EntryPair<Entry>( m_deobfuscator.obfuscate( deobfEntry ), deobfEntry ); |
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | public void rename( Entry obfsEntry, String newName ) | 106 | public void rename( Entry obfsEntry, String newName ) |