Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
ce192979
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ce192979
编写于
7月 05, 2016
作者:
J
Johannes Rieken
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debt - some small clean ups in actions.ts
上级
bc854f2e
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
15 addition
and
23 deletion
+15
-23
src/vs/base/common/actions.ts
src/vs/base/common/actions.ts
+15
-23
未找到文件。
src/vs/base/common/actions.ts
浏览文件 @
ce192979
...
...
@@ -76,16 +76,16 @@ export class Action extends EventEmitter implements IAction {
static
ENABLED
:
string
=
'
enabled
'
;
static
CHECKED
:
string
=
'
checked
'
;
p
ublic
_id
:
string
;
p
ublic
_label
:
string
;
p
ublic
_tooltip
:
string
;
p
ublic
_cssClass
:
string
;
p
ublic
_enabled
:
boolean
;
p
ublic
_checked
:
boolean
;
p
ublic
_actionCallback
:
IActionCallback
;
p
ublic
_order
:
number
;
constructor
(
id
:
string
,
label
=
''
,
cssClass
=
''
,
enabled
=
true
,
actionCallback
:
IActionCallback
=
null
)
{
p
rotected
_id
:
string
;
p
rotected
_label
:
string
;
p
rotected
_tooltip
:
string
;
p
rotected
_cssClass
:
string
;
p
rotected
_enabled
:
boolean
;
p
rotected
_checked
:
boolean
;
p
rotected
_actionCallback
:
IActionCallback
;
p
rotected
_order
:
number
;
constructor
(
id
:
string
,
label
:
string
=
''
,
cssClass
:
string
=
''
,
enabled
:
boolean
=
true
,
actionCallback
:
IActionCallback
=
null
)
{
super
();
this
.
_id
=
id
;
...
...
@@ -107,7 +107,7 @@ export class Action extends EventEmitter implements IAction {
this
.
_setLabel
(
value
);
}
_setLabel
(
value
:
string
):
void
{
protected
_setLabel
(
value
:
string
):
void
{
if
(
this
.
_label
!==
value
)
{
this
.
_label
=
value
;
this
.
emit
(
Action
.
LABEL
,
{
source
:
this
});
...
...
@@ -122,7 +122,7 @@ export class Action extends EventEmitter implements IAction {
this
.
_setTooltip
(
value
);
}
_setTooltip
(
value
:
string
):
void
{
protected
_setTooltip
(
value
:
string
):
void
{
if
(
this
.
_tooltip
!==
value
)
{
this
.
_tooltip
=
value
;
this
.
emit
(
Action
.
TOOLTIP
,
{
source
:
this
});
...
...
@@ -137,7 +137,7 @@ export class Action extends EventEmitter implements IAction {
this
.
_setClass
(
value
);
}
_setClass
(
value
:
string
):
void
{
protected
_setClass
(
value
:
string
):
void
{
if
(
this
.
_cssClass
!==
value
)
{
this
.
_cssClass
=
value
;
this
.
emit
(
Action
.
CLASS
,
{
source
:
this
});
...
...
@@ -152,7 +152,7 @@ export class Action extends EventEmitter implements IAction {
this
.
_setEnabled
(
value
);
}
_setEnabled
(
value
:
boolean
):
void
{
protected
_setEnabled
(
value
:
boolean
):
void
{
if
(
this
.
_enabled
!==
value
)
{
this
.
_enabled
=
value
;
this
.
emit
(
Action
.
ENABLED
,
{
source
:
this
});
...
...
@@ -167,7 +167,7 @@ export class Action extends EventEmitter implements IAction {
this
.
_setChecked
(
value
);
}
_setChecked
(
value
:
boolean
):
void
{
protected
_setChecked
(
value
:
boolean
):
void
{
if
(
this
.
_checked
!==
value
)
{
this
.
_checked
=
value
;
this
.
emit
(
Action
.
CHECKED
,
{
source
:
this
});
...
...
@@ -182,14 +182,6 @@ export class Action extends EventEmitter implements IAction {
this
.
_order
=
value
;
}
public
get
actionCallback
():
IActionCallback
{
return
this
.
_actionCallback
;
}
public
set
actionCallback
(
value
:
IActionCallback
)
{
this
.
_actionCallback
=
value
;
}
public
run
(
event
?:
any
):
TPromise
<
any
>
{
if
(
this
.
_actionCallback
!==
null
)
{
return
this
.
_actionCallback
(
event
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录