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)); }
public EditorCommandStatus GetCommandStatus(EditorCommand command) => FocusedEditor?.GetCommandStatus(command) ?? EditorCommandStatus.Unsupported;
public void ExecuteCommand(EditorCommand command) => FocusedEditor?.ExecuteCommand(command);
public virtual EditorCommandStatus GetCommandStatus(EditorCommand command) => EditorCommandStatus.Hidden;
public virtual void ExecuteCommand(EditorCommand command) { throw new NotImplementedException(); }
public virtual bool TryGetCommand(string commandId, out EditorCommand command) { command = default(EditorCommand); return(false); }