Exemplo n.º 1
0
        public bool TryGetCommand(string commandId, out EditorCommand command)
        {
            var editor = FocusedEditor;

            if (editor == null)
            {
                command = default(EditorCommand);
                return(false);
            }

            return(editor.TryGetCommand(commandId, out command));
        }
Exemplo n.º 2
0
 public EditorCommandStatus GetCommandStatus(EditorCommand command)
 => FocusedEditor?.GetCommandStatus(command) ?? EditorCommandStatus.Unsupported;
Exemplo n.º 3
0
 public void ExecuteCommand(EditorCommand command)
 => FocusedEditor?.ExecuteCommand(command);
Exemplo n.º 4
0
 public virtual EditorCommandStatus GetCommandStatus(EditorCommand command) =>
 EditorCommandStatus.Hidden;
Exemplo n.º 5
0
 public virtual void ExecuteCommand(EditorCommand command)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 6
0
 public virtual bool TryGetCommand(string commandId, out EditorCommand command)
 {
     command = default(EditorCommand);
     return(false);
 }