conPath2 = new File(GlobalConfigure.instance().getProperty(
conPath2 = new File(GlobalConfigure.getInstance().getProperty(
   public static void loadMacros(Session session, Macronizer macros, JMenu menu) {      final Session ses = session;      Vector mv = new Vector();      Action action;      menu.addSeparator();      String[] macrosList = Macronizer.getMacroList();      for (int x = 0; x < macrosList.length; x++) {         mv.add(macrosList[x]);      }      Collections.sort(mv);      for (int x = 0; x < mv.size(); x++) {         action = new AbstractAction((String)mv.get(x)) {               public void actionPerformed(ActionEvent e) {                  ses.executeMeMacro(e);               }           };         JMenuItem mi = menu.add(action);         final Gui5250 ji = (Gui5250)session;         mi.addMouseListener(new MouseAdapter() {            public void mouseReleased(MouseEvent e) {               if (SwingUtilities.isRightMouseButton(e)) {                  doOptionsPopup(e,ses);               }            }            public void mousePressed(MouseEvent e) {               if (SwingUtilities.isRightMouseButton(e)) {                  doOptionsPopup(e,ses);               }            }            public void mouseClicked(MouseEvent e) {               if (SwingUtilities.isRightMouseButton(e)) {                  doOptionsPopup(e,ses);               }            }       });      }      scriptDir("scripts",menu,session);      String conPath = "";      String conPath2 = "";      try {         conPath = new File("scripts").getCanonicalPath();         conPath2 = new File(GlobalConfigure.instance().getProperty(                              "emulator.settingsDirectory") +                              "scripts").getCanonicalPath();      }      catch (IOException ioe ) {      }      // lets not load the menu again if they point to the same place      if (!conPath.equals(conPath2))         scriptDir(GlobalConfigure.instance().getProperty(                              "emulator.settingsDirectory") +                              "scripts",menu,session);   }