예제 #1
0
        public void execute(Editor editor, EditorCommandParameters parameters)
        {
            string current_text = editor.getText();
            string new_text     = current_text.Insert(parameters.current_selection_index, "\\tempo 4=120\r\n");

            editor.setText(new_text);
        }
예제 #2
0
        public void executeCommand(string command_name)
        {
            EditorCommandParameters parameters = new EditorCommandParameters(
                this._target.getCurrentSelection(),
                this._target.getCurrentIndex()
                );

            EditorCommand command;

            if (this._commands.TryGetValue(command_name, out command))
            {
                command.execute(this._target, parameters);
            }

            this._target.setCurrentIndex(parameters.current_selection_index);
        }
예제 #3
0
 public void execute(Editor editor, EditorCommandParameters parameters)
 {
     editor.saveToPDF();
 }
예제 #4
0
 public void execute(Editor editor, EditorCommandParameters parameters)
 {
     editor.openFile();
 }