Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornitind2011-03-02 15:27:00 +0000
committernitind2011-03-02 15:27:00 +0000
commit0bc10cc56f010247a7a473af8e1b2d2782457a74 (patch)
tree8b5ebc8cbf894e1257acbd7549f1db3f7835bd50 /bundles/org.eclipse.wst.xml.ui/src-wizards/org/eclipse/wst/xml/ui/internal/wizards/NamespaceInfoContentBuilder.java
parent9039eeb528e8460702d9820f089c077f10c70ea5 (diff)
downloadwebtools.sourceediting-201103021533.tar.gz
webtools.sourceediting-201103021533.tar.xz
webtools.sourceediting-201103021533.zip
This commit was manufactured by cvs2svn to create tag 'v201103021533'.v201103021533
Diffstat (limited to 'bundles/org.eclipse.wst.xml.ui/src-wizards/org/eclipse/wst/xml/ui/internal/wizards/NamespaceInfoContentBuilder.java')
-rw-r--r--bundles/org.eclipse.wst.xml.ui/src-wizards/org/eclipse/wst/xml/ui/internal/wizards/NamespaceInfoContentBuilder.java51
1 files changed, 0 insertions, 51 deletions
diff --git a/bundles/org.eclipse.wst.xml.ui/src-wizards/org/eclipse/wst/xml/ui/internal/wizards/NamespaceInfoContentBuilder.java b/bundles/org.eclipse.wst.xml.ui/src-wizards/org/eclipse/wst/xml/ui/internal/wizards/NamespaceInfoContentBuilder.java
deleted file mode 100644
index 09eed81a69..0000000000
--- a/bundles/org.eclipse.wst.xml.ui/src-wizards/org/eclipse/wst/xml/ui/internal/wizards/NamespaceInfoContentBuilder.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2001, 2006 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.xml.ui.internal.wizards;
-
-import java.util.Hashtable;
-import java.util.List;
-import java.util.Vector;
-
-import org.eclipse.wst.xml.core.internal.contentmodel.CMAnyElement;
-import org.eclipse.wst.xml.core.internal.contentmodel.CMElementDeclaration;
-import org.eclipse.wst.xml.core.internal.contentmodel.util.ContentBuilder;
-import org.eclipse.wst.xml.core.internal.contentmodel.util.NamespaceInfo;
-
-public class NamespaceInfoContentBuilder extends ContentBuilder {
- protected int count = 1;
- public List list = new Vector();
- protected Hashtable table = new Hashtable();
-
- public NamespaceInfoContentBuilder() {
- super();
- }
-
- public void visitCMElementDeclaration(CMElementDeclaration ed) {
- if (ed.getProperty("http://org.eclipse.wst/cm/properties/definitionInfo") != null) //$NON-NLS-1$
- {
- super.visitCMElementDeclaration(ed);
- }
- }
-
- protected void createAnyElementNode(CMAnyElement anyElement) {
- String uri = anyElement.getNamespaceURI();
- if ((uri != null) && !uri.startsWith("##")) //$NON-NLS-1$
- {
- if (table.get(uri) == null) {
- NamespaceInfo info = new NamespaceInfo();
- info.uri = uri;
- info.prefix = "p" + count++; //$NON-NLS-1$
- table.put(uri, info);
- list.add(info);
- }
- }
- }
-}

Back to the top