Author: sdzmitrovich
Date: 2009-01-19 10:16:50 -0500 (Mon, 19 Jan 2009)
New Revision: 13121
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3579
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-01-19
14:46:55 UTC (rev 13120)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-01-19
15:16:50 UTC (rev 13121)
@@ -597,8 +597,7 @@
// update current class style value
currentClassStyle = classCombo.getText().trim();
- boolean inputNewClass = Arrays.binarySearch(classCombo.getItems(),
- currentClassStyle) < 0;
+ boolean inputNewClass = classCombo.indexOf(currentClassStyle) == -1;
// if new css was added
applyButton.setEnabled(inputNewClass);
classCombo.add(currentClassStyle);