|
|
|
@ -1,7 +1,8 @@
|
|
|
|
|
import { app } from '../ApplicationServices/Application';
|
|
|
|
|
import { JigUtils } from './JigUtils';
|
|
|
|
|
import { CommandState } from './CommandState';
|
|
|
|
|
import { arrayRemoveOnce } from '../Common/ArrayExt';
|
|
|
|
|
import { reportError } from '../Common/ErrorMonitoring';
|
|
|
|
|
import { CommandState } from './CommandState';
|
|
|
|
|
import { JigUtils } from './JigUtils';
|
|
|
|
|
export interface Command
|
|
|
|
|
{
|
|
|
|
|
exec: Function;//函数可以返回true,实现放弃命令的任何操作.
|
|
|
|
@ -40,6 +41,7 @@ class CommandMachine
|
|
|
|
|
catch (error)
|
|
|
|
|
{
|
|
|
|
|
console.error(error.stack);
|
|
|
|
|
reportError(error.stack);
|
|
|
|
|
app.m_Editor.Prompt("抱歉,命令造成了错误,请联系开发人员.");
|
|
|
|
|
}
|
|
|
|
|
this.CommandEnd(abort);
|
|
|
|
|