src/solaris/classes/sun/awt/X11/XMenuPeer.java
Print this page
*** 109,129 ****
* addSeparator routines are not used
* in peers. Shared code invokes addItem("-")
* for adding separators
*/
public void addSeparator() {
! if (log.isLoggable(PlatformLogger.FINER)) {
log.finer("addSeparator is not implemented");
}
}
public void addItem(MenuItem item) {
XMenuWindow menuWindow = getMenuWindow();
if (menuWindow != null) {
menuWindow.addItem(item);
} else {
! if (log.isLoggable(PlatformLogger.FINE)) {
log.fine("Attempt to use XMenuWindowPeer without window");
}
}
}
--- 109,129 ----
* addSeparator routines are not used
* in peers. Shared code invokes addItem("-")
* for adding separators
*/
public void addSeparator() {
! if (log.isLoggable(PlatformLogger.Level.FINER)) {
log.finer("addSeparator is not implemented");
}
}
public void addItem(MenuItem item) {
XMenuWindow menuWindow = getMenuWindow();
if (menuWindow != null) {
menuWindow.addItem(item);
} else {
! if (log.isLoggable(PlatformLogger.Level.FINE)) {
log.fine("Attempt to use XMenuWindowPeer without window");
}
}
}
*** 130,140 ****
public void delItem(int index) {
XMenuWindow menuWindow = getMenuWindow();
if (menuWindow != null) {
menuWindow.delItem(index);
} else {
! if (log.isLoggable(PlatformLogger.FINE)) {
log.fine("Attempt to use XMenuWindowPeer without window");
}
}
}
--- 130,140 ----
public void delItem(int index) {
XMenuWindow menuWindow = getMenuWindow();
if (menuWindow != null) {
menuWindow.delItem(index);
} else {
! if (log.isLoggable(PlatformLogger.Level.FINE)) {
log.fine("Attempt to use XMenuWindowPeer without window");
}
}
}