Author: mareshkau
Date: 2011-03-09 12:22:42 -0500 (Wed, 09 Mar 2011)
New Revision: 29654
Modified:
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/properties/CSSPropertyPage.java
Log:
https://issues.jboss.org/browse/JBIDE-8523
Modified:
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/properties/CSSPropertyPage.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/properties/CSSPropertyPage.java 2011-03-09
17:17:34 UTC (rev 29653)
+++
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/properties/CSSPropertyPage.java 2011-03-09
17:22:42 UTC (rev 29654)
@@ -92,14 +92,13 @@
if ((this.part != part) && (selection instanceof IStructuredSelection)) {
IStructuredSelection structuredSelection = (IStructuredSelection) selection;
Object newSelectedObject = structuredSelection.getFirstElement();
-
- if ((selectedObject == null)
- || (!selectedObject.equals(newSelectedObject)))
+ //added by Maksim Areshkay as fix for
https://issues.jboss.org/browse/JBIDE-8523
+ //here we should process only elements of StyleContainer or set selection to
null(clean)
+ if(newSelectedObject==null||(newSelectedObject instanceof StyleContainer)){
super.selectionChanged(part, selection);
- selectedObject = newSelectedObject;
-
- update();
-
+ selectedObject = newSelectedObject;
+ update();
+ }
}
}