Subversion Repositories svn.mios

Rev

Rev 808 | Rev 871 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 808 Rev 850
Line 393... Line 393...
393
            HexFileUploadGUI.getMRU().removeAllElements();
393
            HexFileUploadGUI.getMRU().removeAllElements();
394
394
395
        } else if (name == TAG_HEX_FILE_UPLOAD_GUI_MRU) {
395
        } else if (name == TAG_HEX_FILE_UPLOAD_GUI_MRU) {
396
396
397
            HexFileUploadGUI.saveMRU(element.getTextContent());
397
            HexFileUploadGUI.saveMRU(element.getTextContent());
-
 
398
-
 
399
        } else if (name == TAG_SYSEX_SEND_RECEIVE_GUI_MRU_LIST) {
-
 
400
-
 
401
            HexFileUploadGUI.getMRU().removeAllElements();
-
 
402
-
 
403
        } else if (name == TAG_SYSEX_SEND_RECEIVE_GUI_MRU) {
-
 
404
-
 
405
            SysexSendReceiveGUI.saveMRU(element.getTextContent());
398
        }
406
        }
-
 
407
399
    }
408
    }
400
409
401
    public void saveXML(Node node) {
410
    public void saveXML(Node node) {
402
411
403
        super.saveXML(node);
412
        super.saveXML(node);
Line 552... Line 561...
552
            sysexSendReceiveDeviceManagerGUIelement
561
            sysexSendReceiveDeviceManagerGUIelement
553
                    .appendChild(sysexSendReceiveCurrentDirectoryElement);
562
                    .appendChild(sysexSendReceiveCurrentDirectoryElement);
554
563
555
            sysexSendReceiveCurrentDirectoryElement
564
            sysexSendReceiveCurrentDirectoryElement
556
                    .setTextContent(SysexSendReceiveGUI.getCurrentDirectory());
565
                    .setTextContent(SysexSendReceiveGUI.getCurrentDirectory());
-
 
566
-
 
567
            Element mruListElement = document
-
 
568
                    .createElement(TAG_SYSEX_SEND_RECEIVE_GUI_MRU_LIST);
-
 
569
-
 
570
            sysexSendReceiveDeviceManagerGUIelement.appendChild(mruListElement);
-
 
571
-
 
572
            Iterator it = SysexSendReceiveGUI.getMRU().iterator();
-
 
573
-
 
574
            while (it.hasNext()) {
-
 
575
-
 
576
                Element mru = document
-
 
577
                        .createElement(TAG_SYSEX_SEND_RECEIVE_GUI_MRU);
-
 
578
-
 
579
                mruListElement.appendChild(mru);
-
 
580
-
 
581
                mru.setTextContent((String) it.next());
-
 
582
            }
557
583
558
            Element hexFileCurrentDirectoryElement = document
584
            Element hexFileCurrentDirectoryElement = document
559
                    .createElement(TAG_HEX_FILE_UPLOAD_GUI_CURRENT_DIRECTORY);
585
                    .createElement(TAG_HEX_FILE_UPLOAD_GUI_CURRENT_DIRECTORY);
560
586
561
            if (hexFileUploadDeviceManagerGUIelement == null) {
587
            if (hexFileUploadDeviceManagerGUIelement == null) {
Line 569... Line 595...
569
                    .appendChild(hexFileCurrentDirectoryElement);
595
                    .appendChild(hexFileCurrentDirectoryElement);
570
596
571
            hexFileCurrentDirectoryElement.setTextContent(HexFileUploadGUI
597
            hexFileCurrentDirectoryElement.setTextContent(HexFileUploadGUI
572
                    .getCurrentDirectory());
598
                    .getCurrentDirectory());
573
599
574
            Element mruListElement = document
600
            mruListElement = document
575
                    .createElement(TAG_HEX_FILE_UPLOAD_GUI_MRU_LIST);
601
                    .createElement(TAG_HEX_FILE_UPLOAD_GUI_MRU_LIST);
576
602
577
            hexFileUploadDeviceManagerGUIelement.appendChild(mruListElement);
603
            hexFileUploadDeviceManagerGUIelement.appendChild(mruListElement);
578
604
579
            Iterator it = HexFileUploadGUI.getMRU().iterator();
605
            it = HexFileUploadGUI.getMRU().iterator();
580
606
581
            while (it.hasNext()) {
607
            while (it.hasNext()) {
582
608
583
                Element mru = document
609
                Element mru = document
584
                        .createElement(TAG_HEX_FILE_UPLOAD_GUI_MRU);
610
                        .createElement(TAG_HEX_FILE_UPLOAD_GUI_MRU);