1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005-2010 Grigor Iliev <grigor@grigoriliev.com> |
* Copyright (C) 2005-2011 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
31 |
|
|
32 |
import java.util.logging.Level; |
import java.util.logging.Level; |
33 |
|
|
34 |
import javax.swing.SwingUtilities; |
import net.sf.juife.PDUtils; |
35 |
|
|
36 |
import org.jsampler.CC; |
import org.jsampler.CC; |
37 |
import org.jsampler.HF; |
import org.jsampler.HF; |
38 |
|
import org.jsampler.Prefs; |
39 |
|
|
40 |
/** |
/** |
41 |
* This class provides information about the available views in the current distribution. |
* This class provides information about the available views in the current distribution. |
101 |
return; |
return; |
102 |
} |
} |
103 |
if(CC.getMainFrame() != null) { |
if(CC.getMainFrame() != null) { |
104 |
SwingUtilities.invokeLater(new Runnable() { |
PDUtils.runOnUiThread(new Runnable() { |
105 |
public void |
public void |
106 |
run() { CC.getMainFrame().setVisible(false); } |
run() { CC.getMainFrame().setVisible(false); } |
107 |
}); |
}); |
111 |
CC.setViewConfig ( |
CC.setViewConfig ( |
112 |
(JSViewConfig)Class.forName(entry.viewConfig).newInstance() |
(JSViewConfig)Class.forName(entry.viewConfig).newInstance() |
113 |
); |
); |
114 |
|
CC.getViewConfig().setUIDefaultFont(Prefs.getInterfaceFont()); |
115 |
} catch(Exception e) { |
} catch(Exception e) { |
116 |
CC.getLogger().info(HF.getErrorMessage(e)); |
CC.getLogger().info(HF.getErrorMessage(e)); |
117 |
return; |
return; |