Changeset 603

Show
Ignore:
Timestamp:
01/31/10 14:56:33 (3 years ago)
Author:
stefan
Message:

reload gproperties when saving the file in the editor

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/jlatexeditor/JLatexEditorJFrame.java

    r602 r603  
    570570    AbstractResource resource = editor.getResource(); 
    571571 
     572    boolean gPropertiesSaved = false; 
     573 
    572574    File file = null; 
    573575    if (resource instanceof UntitledDoc) { 
     
    600602      FileDoc fileDoc = (FileDoc) resource; 
    601603      file = fileDoc.getFile(); 
     604      gPropertiesSaved = file.equals(GProperties.CONFIG_FILE); 
    602605    } 
    603606 
     
    643646      lastModified.put(file, file.lastModified()); 
    644647      editor.getTextPane().getDocument().setModified(false); 
     648 
     649      if (gPropertiesSaved) { 
     650        GProperties.load(); 
     651      } 
    645652    } catch(IOException ex){ 
    646653      ex.printStackTrace();