~krause/xabsleditor/master

« back to all changes in this revision

Viewing changes to src/de/naoth/xabsleditor/Main.java

  • Committer: Philipp Strobel
  • Date: 2018-03-09 09:33:10 UTC
  • Revision ID: git-v1:ffd28ad345f714e078efb70545f67c5849a9e197
bugfix: project reload

Show diffs side-by-side

added added

removed removed

Lines of Context:
487
487
      if (agentFile != null && !foundAgents.contains(agentFile) && context !=null)
488
488
      {
489
489
        JMenu miAgent = new JMenu(agentFile.getParentFile().getName() + "/" + agentFile.getName());
 
490
        // HACK: 're-load' xabsl context, otherwise new files wouldn't get added to tree/menu!
 
491
        editorPanel.loadXABSLContext(agentFile.getParentFile(), context);
490
492
 
491
493
        addFilesToMenu(miAgent, agentFile.getParentFile(), context);
492
494
        mProject.add(miAgent);