Author: sdzmitrovich
Date: 2009-09-30 06:09:05 -0400 (Wed, 30 Sep 2009)
New Revision: 17812
Added:
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/common/StyleElementRuleContainer.java
Modified:
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/common/CSSStyleManager.java
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/view/CSSEditorView.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4951
Modified:
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/common/CSSStyleManager.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/common/CSSStyleManager.java 2009-09-30
07:46:46 UTC (rev 17811)
+++
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/common/CSSStyleManager.java 2009-09-30
10:09:05 UTC (rev 17812)
@@ -99,7 +99,7 @@
CSSStyleRule styleRule = getStyleRule(node);
if (styleRule != null) {
- container = new CSSStyleRuleContainer(styleRule);
+ container = new StyleElementRuleContainer(styleText, styleRule);
}
}
}
Added:
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/common/StyleElementRuleContainer.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/common/StyleElementRuleContainer.java
(rev 0)
+++
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/common/StyleElementRuleContainer.java 2009-09-30
10:09:05 UTC (rev 17812)
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jst.css.common;
+
+import org.w3c.dom.Node;
+import org.w3c.dom.css.CSSStyleRule;
+
+/**
+ * @author Sergey Dzmitrovich
+ *
+ */
+public class StyleElementRuleContainer extends CSSStyleRuleContainer {
+
+ private Node styleNode;
+
+ public StyleElementRuleContainer(Node styleNode, CSSStyleRule styleRule) {
+ super(styleRule);
+ this.styleNode = styleNode;
+ }
+
+ public Object getStyleObject() {
+ return styleNode;
+ }
+
+}
Property changes on:
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/common/StyleElementRuleContainer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:eol-style
+ native
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 2009-09-30
07:46:46 UTC (rev 17811)
+++
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/properties/CSSPropertyPage.java 2009-09-30
10:09:05 UTC (rev 17812)
@@ -124,14 +124,8 @@
.getStyleProperties());
}
- notifySelectionChanged(getCurrentSelection());
-
}
- protected void notifySelectionChanged(ISelection selection) {
- part.postSelectionChanged(new SelectionChangedEvent(part
- .getSelectionProvider(), selection));
- }
/**
*
Modified:
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/view/CSSEditorView.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/view/CSSEditorView.java 2009-09-30
07:46:46 UTC (rev 17811)
+++
trunk/jst/plugins/org.jboss.tools.jst.css/src/org/jboss/tools/jst/css/view/CSSEditorView.java 2009-09-30
10:09:05 UTC (rev 17812)
@@ -93,10 +93,6 @@
return super.getSelectionProvider();
}
- public void postSelectionChanged(SelectionChangedEvent event) {
- getSelectionProvider().postSelectionChanged(event);
- }
-
@Override
public Object getAdapter(Class key) {
if (key == IContributedContentsView.class) {