Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
7b87c56a
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
3
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7b87c56a
编写于
3月 18, 2014
作者:
L
lana
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
ae3b395b
20ac2fb4
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
24 addition
and
5 deletion
+24
-5
.hgtags
.hgtags
+4
-0
src/share/classes/javax/swing/MenuSelectionManager.java
src/share/classes/javax/swing/MenuSelectionManager.java
+8
-1
src/share/classes/sun/swing/SwingUtilities2.java
src/share/classes/sun/swing/SwingUtilities2.java
+4
-1
src/share/native/sun/management/DiagnosticCommandImpl.c
src/share/native/sun/management/DiagnosticCommandImpl.c
+8
-3
未找到文件。
.hgtags
浏览文件 @
7b87c56a
...
...
@@ -253,6 +253,10 @@ a9088d517f2fa9919886d3d95023c518b59172b8 jdk8-b126
fbf251b8ef8a4a2aa1fd58efc8d0d5c8e2fd582b jdk8-b127
f644211c59fd7c1d0c81239c55b31e1d377d7650 jdk8-b128
80568a19aab7300bc92baf2dc225be929f5b03ed jdk8-b129
9543b632ab87368c887d8b29b21157ebb44228d0 jdk8u20-b02
5a9f04957f826ce23639479c9791c7d8fd282b01 jdk8u20-b03
c347889445c1153f11aaa56092d44a911e497454 jdk8u20-b04
c9117a5defe912b1f7ae92bb0730d6e7a5a045df jdk8u20-b05
43386cc9a017a9f9e704760050086bb18b778ae0 jdk8-b130
e291ac47c9a90366c3c0787a6f7ce547a2bda308 jdk8-b131
43cb25339b5500871f41388a5197f1b01c4b57b8 jdk8-b132
src/share/classes/javax/swing/MenuSelectionManager.java
浏览文件 @
7b87c56a
/*
* Copyright (c) 1997, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
4
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -30,6 +30,7 @@ import java.awt.event.*;
import
javax.swing.event.*
;
import
sun.awt.AppContext
;
import
sun.swing.SwingUtilities2
;
/**
* A MenuSelectionManager owns the selection in menu hierarchy.
...
...
@@ -60,6 +61,12 @@ public class MenuSelectionManager {
if
(
msm
==
null
)
{
msm
=
new
MenuSelectionManager
();
context
.
put
(
MENU_SELECTION_MANAGER_KEY
,
msm
);
// installing additional listener if found in the AppContext
Object
o
=
context
.
get
(
SwingUtilities2
.
MENU_SELECTION_MANAGER_LISTENER_KEY
);
if
(
o
!=
null
&&
o
instanceof
ChangeListener
)
{
msm
.
addChangeListener
((
ChangeListener
)
o
);
}
}
return
msm
;
...
...
src/share/classes/sun/swing/SwingUtilities2.java
浏览文件 @
7b87c56a
/*
* Copyright (c) 2002, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2002, 201
4
, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
...
...
@@ -81,6 +81,9 @@ public class SwingUtilities2 {
public
static
final
Object
LAF_STATE_KEY
=
new
StringBuffer
(
"LookAndFeel State"
);
public
static
final
Object
MENU_SELECTION_MANAGER_LISTENER_KEY
=
new
StringBuffer
(
"MenuSelectionManager listener key"
);
// Maintain a cache of CACHE_SIZE fonts and the left side bearing
// of the characters falling into the range MIN_CHAR_INDEX to
// MAX_CHAR_INDEX. The values in fontCache are created as needed.
...
...
src/share/native/sun/management/DiagnosticCommandImpl.c
浏览文件 @
7b87c56a
...
...
@@ -23,18 +23,19 @@
* questions.
*/
#include <stdlib.h>
#include <jni.h>
#include "management.h"
#include "sun_management_DiagnosticCommandImpl.h"
JNIEXPORT
void
JNICALL
Java_sun_management_DiagnosticCommandImpl_setNotificationEnabled
(
JNIEnv
*
env
,
jobject
dummy
,
jboolean
enabled
)
{
if
(
jmm_version
>
JMM_VERSION_1_2_2
)
{
jmm_interface
->
SetDiagnosticFrameworkNotificationEnabled
(
env
,
enabled
);
}
else
{
if
(
jmm_version
<=
JMM_VERSION_1_2_2
)
{
JNU_ThrowByName
(
env
,
"java/lang/UnsupportedOperationException"
,
"JMX interface to diagnostic framework notifications is not supported by this VM"
);
return
;
}
jmm_interface
->
SetDiagnosticFrameworkNotificationEnabled
(
env
,
enabled
);
}
JNIEXPORT
jobjectArray
JNICALL
...
...
@@ -121,6 +122,7 @@ Java_sun_management_DiagnosticCommandImpl_getDiagnosticCommandInfo
sizeof
(
dcmdInfo
));
if
(
dcmd_info_array
==
NULL
)
{
JNU_ThrowOutOfMemoryError
(
env
,
NULL
);
return
NULL
;
}
jmm_interface
->
GetDiagnosticCommandInfo
(
env
,
commands
,
dcmd_info_array
);
dcmdInfoCls
=
(
*
env
)
->
FindClass
(
env
,
...
...
@@ -129,6 +131,7 @@ Java_sun_management_DiagnosticCommandImpl_getDiagnosticCommandInfo
if
(
result
==
NULL
)
{
free
(
dcmd_info_array
);
JNU_ThrowOutOfMemoryError
(
env
,
0
);
return
NULL
;
}
for
(
i
=
0
;
i
<
num_commands
;
i
++
)
{
args
=
getDiagnosticCommandArgumentInfoArray
(
env
,
...
...
@@ -137,6 +140,7 @@ Java_sun_management_DiagnosticCommandImpl_getDiagnosticCommandInfo
if
(
args
==
NULL
)
{
free
(
dcmd_info_array
);
JNU_ThrowOutOfMemoryError
(
env
,
0
);
return
NULL
;
}
obj
=
JNU_NewObjectByName
(
env
,
"sun/management/DiagnosticCommandInfo"
,
...
...
@@ -152,6 +156,7 @@ Java_sun_management_DiagnosticCommandImpl_getDiagnosticCommandInfo
if
(
obj
==
NULL
)
{
free
(
dcmd_info_array
);
JNU_ThrowOutOfMemoryError
(
env
,
0
);
return
NULL
;
}
(
*
env
)
->
SetObjectArrayElement
(
env
,
result
,
i
,
obj
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录