48 |
import org.jsampler.view.InstrumentsDbTreeModel; |
import org.jsampler.view.InstrumentsDbTreeModel; |
49 |
|
|
50 |
import org.linuxsampler.lscp.DbInstrumentInfo; |
import org.linuxsampler.lscp.DbInstrumentInfo; |
51 |
|
import org.linuxsampler.lscp.Parser; |
52 |
|
|
53 |
import static org.jsampler.view.std.StdI18n.i18n; |
import static org.jsampler.view.std.StdI18n.i18n; |
54 |
|
|
156 |
|
|
157 |
public void |
public void |
158 |
setSelectedInstrument(String instr) { |
setSelectedInstrument(String instr) { |
159 |
String parentDir = InstrumentsDbTreeModel.getParentDirectory(instr); |
String parentDir = Parser.getParentDirectory(instr); |
160 |
if(parentDir == null) return; |
if(parentDir == null) return; |
161 |
instrumentsDbTree.setSelectedDirectory(parentDir); |
instrumentsDbTree.setSelectedDirectory(parentDir); |
162 |
if(instrumentsDbTable.getParentDirectoryNode() == null) return; |
if(instrumentsDbTable.getParentDirectoryNode() == null) return; |