# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /space/src/nb/trunk/jet-main # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: openide.awt/src/org/openide/awt/MouseUtils.java --- openide.awt/src/org/openide/awt/MouseUtils.java Base (BASE) +++ openide.awt/src/org/openide/awt/MouseUtils.java Locally Modified (Based On LOCAL) @@ -69,21 +69,26 @@ /** Determines if the event is originated from the right mouse button * @param e the MouseEvent * @return true if the event is originated from the right mouse button, false otherwise - * @deprecated Offers no advantages over the standard {@link SwingUtilities#isRightMouseButton}. */ - @Deprecated public static boolean isRightMouseButton(MouseEvent e) { - return SwingUtilities.isRightMouseButton(e); + return e.getButton() == MouseEvent.BUTTON3; } + /** Determines if the event is originated from the middle mouse button. + * + * @param e the MouseEvent + * @return true if the event is originated from the right mouse button, false otherwise + */ + public static boolean isMiddleMouseButton(MouseEvent e) { + return e.getButton() == MouseEvent.BUTTON2; + } + /** Determines if the event is originated from a left mouse button * @param e the MouseEvent * @return true if the event is originated from the left mouse button, false otherwise - * @deprecated Offers no advantages over the standard {@link SwingUtilities#isLeftMouseButton}. */ - @Deprecated public static boolean isLeftMouseButton(MouseEvent e) { - return javax.swing.SwingUtilities.isLeftMouseButton(e); + return e.getButton() == MouseEvent.BUTTON1; } /** Returns true if parametr is a 'doubleclick event'