@Override protected void installImp(ProjectContainer project) { // super will sort out setting my real device super.installImp(project); this.project = project; System.out.println("Installing DRUMMAPER "); if (target != null) { // target might not be installed at this point. target.install(project); ((DrumMapper) ((SynthWrapper) midiDevice).getRealDevice()) .setDefaultMidiDevice(target.getMidiDevice()); } ((DrumMapper) ((SynthWrapper) midiDevice).getRealDevice()).setNoteMap(noteMap); }
public DrumMapperDescriptor(SynthWrapper midiDevice, ProjectContainer proj) { super(midiDevice); assert (midiDevice.getRealDevice() instanceof DrumMapper); project = proj; }