示例#1
0
 public List<InterpreterSetting> getBindedInterpreterSettings(String id) {
   Note note = getNote(id);
   if (note != null) {
     return note.getNoteReplLoader().getInterpreterSettings();
   } else {
     return new LinkedList<InterpreterSetting>();
   }
 }
示例#2
0
 public void bindInterpretersToNote(String id, List<String> interpreterSettingIds)
     throws IOException {
   Note note = getNote(id);
   if (note != null) {
     note.getNoteReplLoader().setInterpreters(interpreterSettingIds);
     replFactory.putNoteInterpreterSettingBinding(id, interpreterSettingIds);
   }
 }