[jbosstools-commits] JBoss Tools SVN: r23892 - trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/src/org/jboss/tools/modeshape/rest/views.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Tue Aug 3 17:04:20 EDT 2010
Author: elvisisking
Date: 2010-08-03 17:04:20 -0400 (Tue, 03 Aug 2010)
New Revision: 23892
Modified:
trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/src/org/jboss/tools/modeshape/rest/views/ServerView.java
Log:
JBIDE-6770 ModeShape View Incorrectly Updates StatusBar: Invalid Java assert has been removed. When zero or more than one object is selected in the ModeShape view the status bar is now cleared. Otherwise, the status bar is updated as before.
Modified: trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/src/org/jboss/tools/modeshape/rest/views/ServerView.java
===================================================================
--- trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/src/org/jboss/tools/modeshape/rest/views/ServerView.java 2010-08-03 20:57:50 UTC (rev 23891)
+++ trunk/modeshape/plugins/org.jboss.tools.modeshape.rest/src/org/jboss/tools/modeshape/rest/views/ServerView.java 2010-08-03 21:04:20 UTC (rev 23892)
@@ -323,9 +323,7 @@
* @param selection the current viewer selection (never <code>null</code>)
*/
private void updateStatusLine( IStructuredSelection selection ) {
- assert (selection.size() < 2);
-
- String msg = (selection.isEmpty() ? "" : ((IModeShapeObject)selection.getFirstElement()).getShortDescription());
+ String msg = (selection.size() != 1 ? "" : ((IModeShapeObject)selection.getFirstElement()).getShortDescription());
getViewSite().getActionBars().getStatusLineManager().setMessage(msg);
}
More information about the jbosstools-commits
mailing list