Subversion Repositories svn.mios

Rev

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

Rev 800 Rev 808
Line 1... Line 1...
1
package org.midibox.apps.miosstudio.xml;
1
package org.midibox.apps.miosstudio.xml;
2
2
3
import org.midibox.apps.miosstudio.MIOSStudio;
3
import org.midibox.apps.miosstudio.MIOSStudio;
4
import org.midibox.midi.xml.MidiDeviceManagerXML;
4
import org.midibox.midi.xml.MidiDeviceManagerXML;
5
import org.midibox.midi.xml.MidiDeviceRoutingXML;
5
import org.midibox.midi.xml.MidiDeviceRoutingXML;
6
import org.midibox.midi.xml.MidiFilterDeviceManagerXML;
6
import org.midibox.midi.xml.MidiFilterManagerXML;
7
import org.midibox.midi.xml.MidiFilterDeviceXML;
7
import org.midibox.midi.xml.MidiFilterXML;
8
import org.midibox.midi.xml.MidiKeyboardControllerDeviceXML;
8
import org.midibox.midi.xml.MidiKeyboardControllerXML;
9
import org.midibox.midi.xml.MidiMonitorFilteredDeviceXML;
9
import org.midibox.midi.xml.MidiMonitorFilteredXML;
10
import org.midibox.midi.xml.SysexSendReceiveDeviceManagerXML;
10
import org.midibox.midi.xml.SysexSendReceiveManagerXML;
11
import org.midibox.mios.xml.DebugFunctionDeviceXML;
11
import org.midibox.mios.xml.DebugFunctionXML;
12
import org.midibox.mios.xml.HexFileUploadDeviceManagerXML;
12
import org.midibox.mios.xml.HexFileUploadManagerXML;
13
import org.midibox.mios.xml.LCDMessageDeviceXML;
13
import org.midibox.mios.xml.LCDMessageXML;
14
import org.midibox.utils.xml.XMLUtils;
14
import org.midibox.utils.xml.XMLUtils;
15
import org.w3c.dom.Element;
15
import org.w3c.dom.Element;
16
import org.w3c.dom.Node;
16
import org.w3c.dom.Node;
17
17
18
public class MIOSStudioXML extends XMLUtils {
18
public class MIOSStudioXML extends XMLUtils {
19
19
20
    public static final String TAG_ROOT_ELEMENT = "miosStudio";
20
    public static final String TAG_ROOT_ELEMENT = "miosStudio";
21
21
22
    public static final String TAG_MIDI_THRU_FILTER_DEVICE = "thruMidiFilterDevice";
22
    public static final String TAG_MIDI_THRU_FILTER = "thruMidiFilter";
23
23
24
    public static final String TAG_MIDI_DEVICE_MANAGER = "midiDeviceManager";
24
    public static final String TAG_MIDI_DEVICE_MANAGER = "midiDeviceManager";
25
25
26
    public static final String TAG_MIDI_FILTER_DEVICE_MANAGER = "midiFilterDeviceManager";
26
    public static final String TAG_MIDI_FILTER_MANAGER = "midiFilterManager";
27
27
28
    public static final String TAG_IN_PORT_MIDI_MONITOR_FILTERED_DEVICE = "inPortMidiMonitorFilteredDevice";
28
    public static final String TAG_IN_PORT_MIDI_MONITOR_FILTERED = "inPortMidiMonitorFiltered";
29
29
30
    public static final String TAG_OUT_PORT_MIDI_MONITOR_FILTERED_DEVICE = "outPortMidiMonitorFilteredDevice";
30
    public static final String TAG_OUT_PORT_MIDI_MONITOR_FILTERED = "outPortMidiMonitorFiltered";
31
31
32
    public static final String TAG_MIDI_KEYBOARD_CONTROLLER_DEVICE = "midiKeyboardControllerDevice";
32
    public static final String TAG_MIDI_KEYBOARD_CONTROLLER = "midiKeyboardController";
33
   
33
34
    public static final String TAG_SYSEX_SEND_RECEIVE_DEVICE_MANAGER = "sysexSendReciveDeviceManager";
34
    public static final String TAG_SYSEX_SEND_RECEIVE_MANAGER = "sysexSendReciveManager";
35
35
36
    public static final String TAG_HEX_FILE_UPLOAD_DEVICE_MANAGER = "hexFileUploadDeviceManager";
36
    public static final String TAG_HEX_FILE_UPLOAD_MANAGER = "hexFileUploadManager";
37
37
38
    public static final String TAG_LCD_MESSAGE_DEVICE = "lcdMessageDevice";
38
    public static final String TAG_LCD_MESSAGE = "lcdMessage";
39
39
40
    public static final String TAG_DEBUG_FUNCTION_DEVICE = "debugFunctionDevice";
40
    public static final String TAG_DEBUG_FUNCTION = "debugFunction";
41
41
42
    public static final String TAG_MIOS_TERMINAL_MIDI_MONITOR_FILTERED_DEVICE = "miosTeminalMidiMonitorFilteredDevice";
42
    public static final String TAG_MIOS_TERMINAL_MIDI_MONITOR_FILTERED = "miosTeminalMidiMonitorFiltered";
43
43
44
    public static final String TAG_MIDI_DEVICE_ROUTING = "midiDeviceRouting";
44
    public static final String TAG_MIDI_DEVICE_ROUTING = "midiDeviceRouting";
45
45
46
    public static final String ATTR_MIDI_THRU_OUT_PORT = "midiThruOutPort";
46
    public static final String ATTR_MIDI_THRU_OUT_PORT = "midiThruOutPort";
47
47
Line 53... Line 53...
53
53
54
        super(rootElementTag);
54
        super(rootElementTag);
55
55
56
        this.miosStudio = miosStudio;
56
        this.miosStudio = miosStudio;
57
57
58
        addTag(TAG_MIDI_THRU_FILTER_DEVICE);
58
        addTag(TAG_MIDI_THRU_FILTER);
59
        addTag(TAG_MIDI_DEVICE_MANAGER);
59
        addTag(TAG_MIDI_DEVICE_MANAGER);
60
        addTag(TAG_MIDI_FILTER_DEVICE_MANAGER);
60
        addTag(TAG_MIDI_FILTER_MANAGER);
61
        addTag(TAG_OUT_PORT_MIDI_MONITOR_FILTERED_DEVICE);
61
        addTag(TAG_OUT_PORT_MIDI_MONITOR_FILTERED);
62
        addTag(TAG_IN_PORT_MIDI_MONITOR_FILTERED_DEVICE);
62
        addTag(TAG_IN_PORT_MIDI_MONITOR_FILTERED);
63
        addTag(TAG_MIDI_KEYBOARD_CONTROLLER_DEVICE);
63
        addTag(TAG_MIDI_KEYBOARD_CONTROLLER);
64
        addTag(TAG_SYSEX_SEND_RECEIVE_DEVICE_MANAGER);
64
        addTag(TAG_SYSEX_SEND_RECEIVE_MANAGER);
65
        addTag(TAG_HEX_FILE_UPLOAD_DEVICE_MANAGER);
65
        addTag(TAG_HEX_FILE_UPLOAD_MANAGER);
66
        addTag(TAG_LCD_MESSAGE_DEVICE);
66
        addTag(TAG_LCD_MESSAGE);
67
        addTag(TAG_DEBUG_FUNCTION_DEVICE);
67
        addTag(TAG_DEBUG_FUNCTION);
68
        addTag(TAG_MIOS_TERMINAL_MIDI_MONITOR_FILTERED_DEVICE);
68
        addTag(TAG_MIOS_TERMINAL_MIDI_MONITOR_FILTERED);
69
        addTag(TAG_MIDI_DEVICE_ROUTING);
69
        addTag(TAG_MIDI_DEVICE_ROUTING);
70
    }
70
    }
71
71
72
    protected void parseElement(Element element) {
72
    protected void parseElement(Element element) {
73
73
Line 81... Line 81...
81
                    .getAttribute(ATTR_MIDI_THRU_OUT_PORT)));
81
                    .getAttribute(ATTR_MIDI_THRU_OUT_PORT)));
82
82
83
            miosStudio.setRouteIndividualDevices(stringToBoolean(element
83
            miosStudio.setRouteIndividualDevices(stringToBoolean(element
84
                    .getAttribute(ATTR_ROUTE_INDIVIDUAL_DEVICES)));
84
                    .getAttribute(ATTR_ROUTE_INDIVIDUAL_DEVICES)));
85
85
86
        } else if (name == TAG_MIDI_THRU_FILTER_DEVICE) {
86
        } else if (name == TAG_MIDI_THRU_FILTER) {
87
87
88
            MidiFilterDeviceXML midiFilterDeviceXML = new MidiFilterDeviceXML(
88
            MidiFilterXML midiFilterXML = new MidiFilterXML(miosStudio
89
                    miosStudio.getMidiThruFilterDevice(),
-
 
90
                    TAG_MIDI_THRU_FILTER_DEVICE);
89
                    .getMidiThruFilter(), TAG_MIDI_THRU_FILTER);
91
90
92
            midiFilterDeviceXML.loadXML(element);
91
            midiFilterXML.loadXML(element);
93
92
94
        } else if (name == TAG_MIDI_DEVICE_MANAGER) {
93
        } else if (name == TAG_MIDI_DEVICE_MANAGER) {
95
94
96
            MidiDeviceManagerXML midiDeviceManagerXML = new MidiDeviceManagerXML(
95
            MidiDeviceManagerXML midiDeviceManagerXML = new MidiDeviceManagerXML(
97
                    miosStudio.getMidiDeviceManager(), TAG_MIDI_DEVICE_MANAGER);
96
                    miosStudio.getMidiDeviceManager(), TAG_MIDI_DEVICE_MANAGER);
98
97
99
            midiDeviceManagerXML.loadXML(element);
98
            midiDeviceManagerXML.loadXML(element);
100
99
101
        } else if (name == TAG_MIDI_FILTER_DEVICE_MANAGER) {
100
        } else if (name == TAG_MIDI_FILTER_MANAGER) {
102
101
103
            MidiFilterDeviceManagerXML midiFilterDeviceManagerXML = new MidiFilterDeviceManagerXML(
102
            MidiFilterManagerXML midiFilterDeviceManagerXML = new MidiFilterManagerXML(
104
                    miosStudio.getMidiFilterManager(),
103
                    miosStudio.getMidiFilterManager(), TAG_MIDI_FILTER_MANAGER);
105
                    TAG_MIDI_FILTER_DEVICE_MANAGER);
-
 
106
104
107
            midiFilterDeviceManagerXML.loadXML(element);
105
            midiFilterDeviceManagerXML.loadXML(element);
108
106
109
        } else if (name == TAG_OUT_PORT_MIDI_MONITOR_FILTERED_DEVICE) {
107
        } else if (name == TAG_OUT_PORT_MIDI_MONITOR_FILTERED) {
110
108
111
            MidiMonitorFilteredDeviceXML midiMonitorFilteredDeviceXML = new MidiMonitorFilteredDeviceXML(
109
            MidiMonitorFilteredXML midiMonitorFilteredXML = new MidiMonitorFilteredXML(
112
                    miosStudio.getMidiOutPortMonitorDevice(),
110
                    miosStudio.getMidiOutPortMonitor(),
113
                    TAG_OUT_PORT_MIDI_MONITOR_FILTERED_DEVICE);
111
                    TAG_OUT_PORT_MIDI_MONITOR_FILTERED);
114
112
115
            midiMonitorFilteredDeviceXML.loadXML(element);
113
            midiMonitorFilteredXML.loadXML(element);
116
114
117
        } else if (name == TAG_IN_PORT_MIDI_MONITOR_FILTERED_DEVICE) {
115
        } else if (name == TAG_IN_PORT_MIDI_MONITOR_FILTERED) {
118
116
119
            MidiMonitorFilteredDeviceXML midiMonitorFilteredDeviceXML = new MidiMonitorFilteredDeviceXML(
117
            MidiMonitorFilteredXML midiMonitorFilteredXML = new MidiMonitorFilteredXML(
120
                    miosStudio.getMidiInPortMonitorDevice(),
118
                    miosStudio.getMidiInPortMonitor(),
121
                    TAG_IN_PORT_MIDI_MONITOR_FILTERED_DEVICE);
119
                    TAG_IN_PORT_MIDI_MONITOR_FILTERED);
122
120
123
            midiMonitorFilteredDeviceXML.loadXML(element);
121
            midiMonitorFilteredXML.loadXML(element);
124
122
125
        } else if (name == TAG_MIDI_KEYBOARD_CONTROLLER_DEVICE) {
123
        } else if (name == TAG_MIDI_KEYBOARD_CONTROLLER) {
126
124
127
            MidiKeyboardControllerDeviceXML midiKeyboardControllerDeviceXML = new MidiKeyboardControllerDeviceXML(
125
            MidiKeyboardControllerXML midiKeyboardControllerXML = new MidiKeyboardControllerXML(
128
                    miosStudio.getMidiKeyboardControllerDevice(),
126
                    miosStudio.getMidiKeyboardController(),
129
                    TAG_MIDI_KEYBOARD_CONTROLLER_DEVICE);
127
                    TAG_MIDI_KEYBOARD_CONTROLLER);
130
128
131
            midiKeyboardControllerDeviceXML.loadXML(element);
129
            midiKeyboardControllerXML.loadXML(element);
132
130
133
        } else if (name == TAG_SYSEX_SEND_RECEIVE_DEVICE_MANAGER) {
131
        } else if (name == TAG_SYSEX_SEND_RECEIVE_MANAGER) {
134
132
135
            SysexSendReceiveDeviceManagerXML sysexSendReceiveDeviceManagerXML = new SysexSendReceiveDeviceManagerXML(
133
            SysexSendReceiveManagerXML sysexSendReceiveManagerXML = new SysexSendReceiveManagerXML(
136
                    miosStudio.getSysexSendReceiveDeviceManager(),
134
                    miosStudio.getSysexSendReceiveManager(),
137
                    TAG_SYSEX_SEND_RECEIVE_DEVICE_MANAGER);
135
                    TAG_SYSEX_SEND_RECEIVE_MANAGER);
138
136
139
            sysexSendReceiveDeviceManagerXML.loadXML(element);
137
            sysexSendReceiveManagerXML.loadXML(element);
140
138
141
        } else if (name == TAG_HEX_FILE_UPLOAD_DEVICE_MANAGER) {
139
        } else if (name == TAG_HEX_FILE_UPLOAD_MANAGER) {
142
140
143
            HexFileUploadDeviceManagerXML hexFileUploadDeviceManagerXML = new HexFileUploadDeviceManagerXML(
141
            HexFileUploadManagerXML hexFileUploadManagerXML = new HexFileUploadManagerXML(
144
                    miosStudio.getHexFileUploadDeviceManager(),
142
                    miosStudio.getHexFileUploadManager(),
145
                    TAG_HEX_FILE_UPLOAD_DEVICE_MANAGER);
143
                    TAG_HEX_FILE_UPLOAD_MANAGER);
146
144
147
            hexFileUploadDeviceManagerXML.loadXML(element);
145
            hexFileUploadManagerXML.loadXML(element);
148
146
149
        } else if (name == TAG_LCD_MESSAGE_DEVICE) {
147
        } else if (name == TAG_LCD_MESSAGE) {
150
148
151
            LCDMessageDeviceXML lcdMessageDeviceXML = new LCDMessageDeviceXML(
149
            LCDMessageXML lcdMessageXML = new LCDMessageXML(miosStudio
152
                    miosStudio.getLcdMessageDevice(), TAG_LCD_MESSAGE_DEVICE);
150
                    .getLcdMessage(), TAG_LCD_MESSAGE);
153
151
154
            lcdMessageDeviceXML.loadXML(element);
152
            lcdMessageXML.loadXML(element);
155
153
156
        } else if (name == TAG_DEBUG_FUNCTION_DEVICE) {
154
        } else if (name == TAG_DEBUG_FUNCTION) {
157
155
158
            DebugFunctionDeviceXML debugFunctionDeviceXML = new DebugFunctionDeviceXML(
156
            DebugFunctionXML debugFunctionXML = new DebugFunctionXML(miosStudio
159
                    miosStudio.getDebugFunctionDevice(),
-
 
160
                    TAG_DEBUG_FUNCTION_DEVICE);
157
                    .getDebugFunction(), TAG_DEBUG_FUNCTION);
161
158
162
            debugFunctionDeviceXML.loadXML(element);
159
            debugFunctionXML.loadXML(element);
163
160
164
        } else if (name == TAG_MIOS_TERMINAL_MIDI_MONITOR_FILTERED_DEVICE) {
161
        } else if (name == TAG_MIOS_TERMINAL_MIDI_MONITOR_FILTERED) {
165
162
166
            MidiMonitorFilteredDeviceXML midiMonitorFilteredDeviceXML = new MidiMonitorFilteredDeviceXML(
163
            MidiMonitorFilteredXML midiMonitorFilteredXML = new MidiMonitorFilteredXML(
167
                    miosStudio.getMIOSTerminalDevice(),
164
                    miosStudio.getMIOSTerminal(),
168
                    TAG_MIOS_TERMINAL_MIDI_MONITOR_FILTERED_DEVICE);
165
                    TAG_MIOS_TERMINAL_MIDI_MONITOR_FILTERED);
169
166
170
            midiMonitorFilteredDeviceXML.loadXML(element);
167
            midiMonitorFilteredXML.loadXML(element);
171
168
172
        } else if (name == TAG_MIDI_DEVICE_ROUTING) {
169
        } else if (name == TAG_MIDI_DEVICE_ROUTING) {
173
170
174
            boolean routeIndividualDevices = miosStudio
171
            boolean routeIndividualDevices = miosStudio
175
                    .isRouteIndividualDevices();
172
                    .isRouteIndividualDevices();
Line 193... Line 190...
193
                .isRouteIndividualDevices() ? "true" : "false");
190
                .isRouteIndividualDevices() ? "true" : "false");
194
191
195
        rootElement.setAttribute(ATTR_MIDI_THRU_OUT_PORT, miosStudio
192
        rootElement.setAttribute(ATTR_MIDI_THRU_OUT_PORT, miosStudio
196
                .isMidiThruOutPort() ? "true" : "false");
193
                .isMidiThruOutPort() ? "true" : "false");
197
194
198
        MidiFilterDeviceXML midiFilterDeviceXML = new MidiFilterDeviceXML(
195
        MidiFilterXML midiFilterXML = new MidiFilterXML(miosStudio
199
                miosStudio.getMidiThruFilterDevice(),
-
 
200
                TAG_MIDI_THRU_FILTER_DEVICE);
196
                .getMidiThruFilter(), TAG_MIDI_THRU_FILTER);
201
197
202
        midiFilterDeviceXML.saveXML(rootElement);
198
        midiFilterXML.saveXML(rootElement);
203
199
204
        saveMIDIXML(miosStudio);
200
        saveMIDIXML(miosStudio);
205
201
206
        saveMIOSXML(miosStudio);
202
        saveMIOSXML(miosStudio);
207
203
Line 216... Line 212...
216
        MidiDeviceManagerXML midiDeviceManagerXML = new MidiDeviceManagerXML(
212
        MidiDeviceManagerXML midiDeviceManagerXML = new MidiDeviceManagerXML(
217
                miosStudio.getMidiDeviceManager(), TAG_MIDI_DEVICE_MANAGER);
213
                miosStudio.getMidiDeviceManager(), TAG_MIDI_DEVICE_MANAGER);
218
214
219
        midiDeviceManagerXML.saveXML(rootElement);
215
        midiDeviceManagerXML.saveXML(rootElement);
220
216
221
        MidiFilterDeviceManagerXML midiFilterDeviceManagerXML = new MidiFilterDeviceManagerXML(
217
        MidiFilterManagerXML midiFilterDeviceManagerXML = new MidiFilterManagerXML(
222
                miosStudio.getMidiFilterManager(),
218
                miosStudio.getMidiFilterManager(), TAG_MIDI_FILTER_MANAGER);
223
                TAG_MIDI_FILTER_DEVICE_MANAGER);
-
 
224
219
225
        midiFilterDeviceManagerXML.saveXML(rootElement);
220
        midiFilterDeviceManagerXML.saveXML(rootElement);
226
221
227
        MidiMonitorFilteredDeviceXML midiMonitorFilteredDeviceXML = new MidiMonitorFilteredDeviceXML(
222
        MidiMonitorFilteredXML midiMonitorFilteredXML = new MidiMonitorFilteredXML(
228
                miosStudio.getMidiOutPortMonitorDevice(),
223
                miosStudio.getMidiOutPortMonitor(),
229
                TAG_OUT_PORT_MIDI_MONITOR_FILTERED_DEVICE);
224
                TAG_OUT_PORT_MIDI_MONITOR_FILTERED);
230
225
231
        midiMonitorFilteredDeviceXML.saveXML(rootElement);
226
        midiMonitorFilteredXML.saveXML(rootElement);
232
227
233
        midiMonitorFilteredDeviceXML = new MidiMonitorFilteredDeviceXML(
228
        midiMonitorFilteredXML = new MidiMonitorFilteredXML(miosStudio
234
                miosStudio.getMidiInPortMonitorDevice(),
-
 
235
                TAG_IN_PORT_MIDI_MONITOR_FILTERED_DEVICE);
229
                .getMidiInPortMonitor(), TAG_IN_PORT_MIDI_MONITOR_FILTERED);
236
230
237
        midiMonitorFilteredDeviceXML.saveXML(rootElement);
231
        midiMonitorFilteredXML.saveXML(rootElement);
238
232
239
        MidiKeyboardControllerDeviceXML midiControllerDeviceXML = new MidiKeyboardControllerDeviceXML(
233
        MidiKeyboardControllerXML midiControllerXML = new MidiKeyboardControllerXML(
240
                miosStudio.getMidiKeyboardControllerDevice(),
234
                miosStudio.getMidiKeyboardController(),
241
                TAG_MIDI_KEYBOARD_CONTROLLER_DEVICE);
235
                TAG_MIDI_KEYBOARD_CONTROLLER);
242
236
243
        midiControllerDeviceXML.saveXML(rootElement);
237
        midiControllerXML.saveXML(rootElement);
244
       
238
245
        SysexSendReceiveDeviceManagerXML sysexSendReceiveDeviceManagerXML = new SysexSendReceiveDeviceManagerXML(
239
        SysexSendReceiveManagerXML sysexSendReceiveManagerXML = new SysexSendReceiveManagerXML(
246
                miosStudio.getSysexSendReceiveDeviceManager(),
240
                miosStudio.getSysexSendReceiveManager(),
247
                TAG_SYSEX_SEND_RECEIVE_DEVICE_MANAGER);
241
                TAG_SYSEX_SEND_RECEIVE_MANAGER);
248
242
249
        sysexSendReceiveDeviceManagerXML.saveXML(rootElement);
243
        sysexSendReceiveManagerXML.saveXML(rootElement);
250
    }
244
    }
251
245
252
    protected void saveMIOSXML(MIOSStudio miosStudio) {
246
    protected void saveMIOSXML(MIOSStudio miosStudio) {
253
247
254
        HexFileUploadDeviceManagerXML hexFileUploadDeviceManagerXML = new HexFileUploadDeviceManagerXML(
248
        HexFileUploadManagerXML hexFileUploadManagerXML = new HexFileUploadManagerXML(
255
                miosStudio.getHexFileUploadDeviceManager(),
249
                miosStudio.getHexFileUploadManager(),
256
                TAG_HEX_FILE_UPLOAD_DEVICE_MANAGER);
250
                TAG_HEX_FILE_UPLOAD_MANAGER);
257
251
258
        hexFileUploadDeviceManagerXML.saveXML(rootElement);
252
        hexFileUploadManagerXML.saveXML(rootElement);
259
253
260
        LCDMessageDeviceXML lcdMessageDeviceXML = new LCDMessageDeviceXML(
254
        LCDMessageXML lcdMessageXML = new LCDMessageXML(miosStudio
261
                miosStudio.getLcdMessageDevice(), TAG_LCD_MESSAGE_DEVICE);
255
                .getLcdMessage(), TAG_LCD_MESSAGE);
262
256
263
        lcdMessageDeviceXML.saveXML(rootElement);
257
        lcdMessageXML.saveXML(rootElement);
264
258
265
        DebugFunctionDeviceXML debugFunctionDeviceXML = new DebugFunctionDeviceXML(
259
        DebugFunctionXML debugFunctionXML = new DebugFunctionXML(miosStudio
266
                miosStudio.getDebugFunctionDevice(), TAG_DEBUG_FUNCTION_DEVICE);
260
                .getDebugFunction(), TAG_DEBUG_FUNCTION);
267
261
268
        debugFunctionDeviceXML.saveXML(rootElement);
262
        debugFunctionXML.saveXML(rootElement);
269
263
270
        MidiMonitorFilteredDeviceXML midiMonitorFilteredDeviceXML = new MidiMonitorFilteredDeviceXML(
264
        MidiMonitorFilteredXML midiMonitorFilteredXML = new MidiMonitorFilteredXML(
271
                miosStudio.getMIOSTerminalDevice(),
265
                miosStudio.getMIOSTerminal(),
272
                TAG_MIOS_TERMINAL_MIDI_MONITOR_FILTERED_DEVICE);
266
                TAG_MIOS_TERMINAL_MIDI_MONITOR_FILTERED);
273
267
274
        midiMonitorFilteredDeviceXML.saveXML(rootElement);
268
        midiMonitorFilteredXML.saveXML(rootElement);
275
    }
269
    }
276
}
270
}