diff options
Diffstat (limited to 'bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/util/ImportedCollector.java')
-rw-r--r-- | bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/util/ImportedCollector.java | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/util/ImportedCollector.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/util/ImportedCollector.java deleted file mode 100644 index 2c4751ef8f..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/util/ImportedCollector.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are 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 - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.css.core.internal.util; - - - -import java.util.List; -import java.util.Vector; - -import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode; - - -/** - * - */ -public class ImportedCollector extends org.eclipse.wst.css.core.internal.util.AbstractCssTraverser { - - protected java.util.Vector externals = new Vector(); - - /** - * - */ - public ImportedCollector() { - super(); - setTraverseImported(true); - } - - /** - * - */ - public List getExternals() { - return externals; - } - - /** - * - */ - protected short preNode(ICSSNode node) { - if (node.getNodeType() == ICSSNode.MEDIARULE_NODE) { - return TRAV_CONT; - } - if (node.getNodeType() == ICSSNode.STYLESHEET_NODE) { - if (!externals.contains(node)) { - externals.add(node); - } - return TRAV_CONT; - } - if (node.getNodeType() == ICSSNode.IMPORTRULE_NODE) { - return TRAV_CONT; - } - return TRAV_PRUNE; - } -}
\ No newline at end of file |