src/solaris/classes/sun/awt/X11/XBaseMenuWindow.java
Print this page
@@ -328,11 +328,11 @@
mp.setContainer(this);
synchronized(getMenuTreeLock()) {
items.add(mp);
}
} else {
- if (log.isLoggable(PlatformLogger.FINE)) {
+ if (log.isLoggable(PlatformLogger.Level.FINE)) {
log.fine("WARNING: Attempt to add menu item without a peer");
}
}
updateSize();
}
@@ -349,11 +349,11 @@
selectedIndex--;
}
if (index < items.size()) {
items.remove(index);
} else {
- if (log.isLoggable(PlatformLogger.FINE)) {
+ if (log.isLoggable(PlatformLogger.Level.FINE)) {
log.fine("WARNING: Attempt to remove non-existing menu item, index : " + index + ", item count : " + items.size());
}
}
}
updateSize();
@@ -384,11 +384,11 @@
void selectItem(XMenuItemPeer item, boolean showWindowIfMenu) {
synchronized(getMenuTreeLock()) {
XMenuPeer showingSubmenu = getShowingSubmenu();
int newSelectedIndex = (item != null) ? items.indexOf(item) : -1;
if (this.selectedIndex != newSelectedIndex) {
- if (log.isLoggable(PlatformLogger.FINEST)) {
+ if (log.isLoggable(PlatformLogger.Level.FINEST)) {
log.finest("Selected index changed, was : " + this.selectedIndex + ", new : " + newSelectedIndex);
}
this.selectedIndex = newSelectedIndex;
postPaintEvent();
}
@@ -424,11 +424,11 @@
}
XToolkit.awtLock();
try {
synchronized(getMenuTreeLock()) {
if (showingSubmenu != submenuToShow) {
- if (log.isLoggable(PlatformLogger.FINEST)) {
+ if (log.isLoggable(PlatformLogger.Level.FINEST)) {
log.finest("Changing showing submenu");
}
if (showingSubmenu != null) {
XMenuWindow showingSubmenuWindow = showingSubmenu.getMenuWindow();
if (showingSubmenuWindow != null) {
@@ -1120,11 +1120,11 @@
* Note that this function should be invoked
* only from root of menu window's hierarchy
* that grabs input focus
*/
void doHandleJavaKeyEvent(KeyEvent event) {
- if (log.isLoggable(PlatformLogger.FINER)) {
+ if (log.isLoggable(PlatformLogger.Level.FINER)) {
log.finer(event.toString());
}
if (event.getID() != KeyEvent.KEY_PRESSED) {
return;
}