[jbosstools-commits] JBoss Tools SVN: r22364 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu May 27 05:15:38 EDT 2010


Author: yradtsevich
Date: 2010-05-27 05:15:38 -0400 (Thu, 27 May 2010)
New Revision: 22364

Modified:
   trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
Log:
A little code beautifying has been done.

Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java	2010-05-27 09:14:28 UTC (rev 22363)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java	2010-05-27 09:15:38 UTC (rev 22364)
@@ -1120,10 +1120,9 @@
 						// TODO check selection and if are appear errors then
 						// uncommented next code
 					    // reason != nsISelectionListener.NO_REASON
-						reason == nsISelectionListener.KEYPRESS_REASON
-						|| reason == nsISelectionListener.SELECTALL_REASON
-						|| (reason & nsISelectionListener.MOUSEDOWN_REASON) == nsISelectionListener.MOUSEDOWN_REASON)
-						 {
+						(reason & (nsISelectionListener.KEYPRESS_REASON
+								| nsISelectionListener.SELECTALL_REASON
+								| nsISelectionListener.MOUSEDOWN_REASON)) != 0) {
 					if (VpeDebug.PRINT_VISUAL_SELECTION_EVENT) {
 						System.out
 								.println("<<< notifySelectionChanged: " + reason); //$NON-NLS-1$



More information about the jbosstools-commits mailing list