Author: sdzmitrovich
Date: 2009-02-23 10:19:03 -0500 (Mon, 23 Feb 2009)
New Revision: 13725
Removed:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Selector.java
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java
Log:
code cleaning
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java 2009-02-23
13:37:19 UTC (rev 13724)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/CSSModel.java 2009-02-23
15:19:03 UTC (rev 13725)
@@ -174,33 +174,6 @@
}
/**
- * Get selectors
- *
- * @return List<String>
- */
- public List<Selector> getSelectors() {
- List<Selector> selectors = new ArrayList<Selector>();
-
- if (styleSheet != null) {
- CSSRuleList list = styleSheet.getCssRules();
-
- if (list != null) {
- for (int i = 0; i < list.getLength(); i++) {
- if (list.item(i) instanceof CSSStyleRule) {
- CSSStyleRule rule = ((CSSStyleRule) list.item(i));
- Selector selector = new Selector(rule.toString(),
rule.getSelectorText());
- selectors.add(selector);
- }
- }
- }
- }
-
- return selectors;
- }
-
-
-
- /**
* Gets CSS attributes for the given selector in string representation.
*
* @param selector CSS selector value
Deleted:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Selector.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Selector.java 2009-02-23
13:37:19 UTC (rev 13724)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Selector.java 2009-02-23
15:19:03 UTC (rev 13725)
@@ -1,78 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007-2008 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.jsp.outline.cssdialog.common;
-
-/**
- * Selector class.
- */
-public class Selector {
-
- private String value = null;
- private String id = null;
-
- /**
- * Constructor.
- *
- * @param id
- * @param value
- */
- public Selector(String id, String value) {
- this.id = id;
- this.value = value;
- }
-
- /**
- * @return the value
- */
- public String getValue() {
- return value;
- }
-
- /**
- * @param value the value to set
- */
- public void setValue(String value) {
- this.value = value;
- }
-
- /**
- * @return the id
- */
- public String getId() {
- return id;
- }
-
- /**
- * @return
- * @see java.lang.String#toString()
- */
- public String toString() {
- return id;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#equals(java.lang.Object)
- */
- @Override
- public boolean equals(Object obj) {
- if (obj == null || !(obj instanceof Selector)) {
- return false;
- }
- Selector selector = (Selector) obj;
- if (id == null || selector.getId() == null) {
- return false;
- }
- if (id.equals(selector.getId())) {
- return true;
- }
- return super.equals(obj);
- }
-}
\ No newline at end of file