/** * @param string * @return */ private static CybilArg createCybilArg(String argName) { switch (argName) { case "sq": return new sq(); case "li": return new li(); case "lo": return new lo(); case "ma": return new ma(); case "gr": return new gr(); case "ran": return new ran(); case "pik": return new pik(); case "pa": return new pa(); case "co": return new co(); default: break; } String errMessage = "[" + BlueSystem.getString("message.error") + "] - " + BlueSystem.getString("common.noClassFound") + " "; System.err.println(errMessage + argName); return null; }
@Override public void actionPerformed(ActionEvent e) { StatusDisplayer.getDefault().setStatusText(BlueSystem.getString("message.generatingCSD")); BlueData data = BlueProjectManager.getInstance().getCurrentBlueData(); try { float startTime = data.getRenderStartTime(); float endTime = data.getRenderEndTime(); /* * try { tempStart = Float.parseFloat(playStartText.getText()); } * catch(NumberFormatException nfe) { tempStart = 0.0f; * playStartText.setText(Float.toString(tempStart)); * JOptionPane.showMessageDialog(null, BlueSystem * .getString("message.generateScore.startingFromZero")); } */ CsdRenderResult result = CSDRenderService.getDefault().generateCSD(data, startTime, endTime, false, false); String csd = result.getCsdText(); InfoDialog.showInformationDialog( WindowManager.getDefault().getMainWindow(), csd, BlueSystem.getString("message.generateScore.csdTest")); } catch (Exception ex) { ExceptionDialog.showExceptionDialog(WindowManager.getDefault().getMainWindow(), ex); throw new RuntimeException("CSDRender Failed"); } }
public String getPresentationName() { if (presentationName != null) { return presentationName; } if (soundObjects.length > 1) { return BlueSystem.getString("scoreGUI.action.moveSoundObjects"); } return BlueSystem.getString("scoreGUI.action.moveSoundObject"); }
private void initScaleFileSelector() { final FileChooserManager fcm = FileChooserManager.getDefault(); if (fcm.isDialogDefined(FILE_CHOOSER_ID)) { return; } fcm.setDialogTitle(FILE_CHOOSER_ID, BlueSystem.getString("pianoRoll.selectScalaFile")); fcm.addFilter(FILE_CHOOSER_ID, new ExtensionFilter("Scala File (*.scl)", "*.scl")); // SET DEFAULT DIR String fileName = BlueSystem.getUserConfigurationDirectory(); fileName += File.separator + "scl"; File defaultDir = new File(fileName); if (defaultDir.exists() && defaultDir.isDirectory()) { fcm.setSelectedFile(FILE_CHOOSER_ID, defaultDir); } }
public void saveLibraries() { BlueSystem.saveUserInstrumentLibrary(); BlueSystem.saveUDOLibrary(); }