Author: dsakovich
Date: 2008-03-27 12:36:28 -0400 (Thu, 27 Mar 2008)
New Revision: 7150
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesToolBarTemplate.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1953
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesToolBarTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesToolBarTemplate.java 2008-03-27
15:54:22 UTC (rev 7149)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesToolBarTemplate.java 2008-03-27
16:36:28 UTC (rev 7150)
@@ -448,11 +448,13 @@
}
if (isItemSeparatorExists() && !isLeftItemsExists()) {
+ if (rightToolBarItems.size() > 0)
rightToolBarItems.remove(0);
}
if (isItemSeparatorExists() && !isRightItemsExists()) {
- leftToolBarItems.remove(leftToolBarItems.size()-1);
+ if (leftToolBarItems.size() > 0)
+ leftToolBarItems.remove(leftToolBarItems.size()-1);
}
}