use of blue.projects.BlueProject in project blue by kunstmusik.
the class ProjectPropertiesTopComponent method reinitialize.
public void reinitialize() {
BlueProject project = BlueProjectManager.getInstance().getCurrentProject();
ProjectProperties projectProperties = null;
BlueData data = null;
if (project != null) {
data = project.getData();
if (data != null) {
projectProperties = data.getProjectProperties();
}
}
for (ProjectPluginEditor editor : pluginEditors.values()) {
editor.edit(data);
}
this.projectInformationPanel1.setProjectProperties(projectProperties);
this.realtimeRenderSettingsPanel1.setProjectProperties(projectProperties);
this.diskRenderSettingsPanel1.setProjectProperties(projectProperties);
}
use of blue.projects.BlueProject in project blue by kunstmusik.
the class RenderToDiskAndOpenAction method actionPerformed.
@Override
public void actionPerformed(ActionEvent e) {
BlueProject project = BlueProjectManager.getInstance().getCurrentProject();
if (project != null) {
BlueData data = project.getData();
if (data != null) {
RenderToDiskUtility.getInstance().renderToDisk(data, f -> {
DiskRenderSettings settings = DiskRenderSettings.getInstance();
String command = settings.externalOpenCommand;
try {
if (System.getProperty("os.name").contains("Windows")) {
String p = f.getAbsolutePath().replace("\\", "\\\\");
command = command.replaceAll("\\$outfile", p);
Runtime.getRuntime().exec(command);
} else {
command = command.replaceAll("\\$outfile", f.getAbsolutePath());
String[] cmdArray = ProcessConsole.splitCommandString(command);
Runtime.getRuntime().exec(cmdArray);
}
System.out.println(command);
} catch (Exception ex) {
JOptionPane.showMessageDialog(WindowManager.getDefault().getMainWindow(), "Could not run command: " + command, "Error", JOptionPane.ERROR_MESSAGE);
System.err.println("[" + BlueSystem.getString("message.error") + "] - " + ex.getLocalizedMessage());
ex.printStackTrace();
}
});
}
}
}
use of blue.projects.BlueProject in project blue by kunstmusik.
the class UserDefinedOpcodeTopComponent method reinitialize.
private void reinitialize() {
BlueProject project = BlueProjectManager.getInstance().getCurrentProject();
if (project == null) {
opcodeListEditPanel1.setOpcodeList(null);
} else {
OpcodeList opcodeList = project.getData().getOpcodeList();
opcodeListEditPanel1.setOpcodeList(opcodeList);
}
}
use of blue.projects.BlueProject in project blue by kunstmusik.
the class MixerTopComponent method reinitialize.
protected void reinitialize() {
BlueProject project = BlueProjectManager.getInstance().getCurrentProject();
BlueData data = null;
channelGroupsPanel.removeAll();
if (project != null) {
data = project.getData();
for (ChannelList list : data.getMixer().getChannelListGroups()) {
ChannelListPanel panel = new ChannelListPanel();
channelGroupsPanel.add(panel);
panel.setChannelList(list, data.getMixer().getSubChannels());
panel.revalidate();
}
channelGroupsPanel.add(channelsPanel);
channelGroupsPanel.add(subChannelsPanel);
setMixer(data.getMixer());
setArrangement(data.getArrangement());
}
channelGroupsPanel.revalidate();
channelGroupsPanel.repaint();
}
use of blue.projects.BlueProject in project blue by kunstmusik.
the class MidiInputEngine method reinitialize.
protected void reinitialize() {
BlueProject project = BlueProjectManager.getInstance().getCurrentProject();
BlueData data = null;
if (project != null) {
data = project.getData();
arrangement = data.getArrangement().getArrangement();
processor = data.getMidiInputProcessor();
}
}
Aggregations