Author: sdzmitrovich
Date: 2009-01-19 10:56:30 -0500 (Mon, 19 Jan 2009)
New Revision: 13125
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-3588
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
15:53:00 UTC (rev 13124)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-01-19
15:56:30 UTC (rev 13125)
@@ -599,9 +599,10 @@
boolean inputNewClass = classCombo.indexOf(currentClassStyle) == -1;
// if new css was added
- applyButton.setEnabled(inputNewClass);
- classCombo.add(currentClassStyle);
-
+ if (inputNewClass) {
+ applyButton.setEnabled(inputNewClass);
+ classCombo.add(currentClassStyle);
+ }
styleComposite.revertPreview();
updateStyleComposite();
styleAttributes.setCssSelector(currentClassStyle);