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:
authorcsalter2005-06-05 21:12:04 +0000
committercsalter2005-06-05 21:12:04 +0000
commitb43bf53c090bfe77c0502b9785031d9d357893bc (patch)
tree9f48ace38000ff83153cb9b1d5bbb72339fb91d9 /bundles/org.eclipse.wst.xml.core/src-contentmodel/org/eclipse/wst
parentaad5c8c82f9cb95adfc47283ff771592955a5989 (diff)
downloadwebtools.sourceediting-b43bf53c090bfe77c0502b9785031d9d357893bc.tar.gz
webtools.sourceediting-b43bf53c090bfe77c0502b9785031d9d357893bc.tar.xz
webtools.sourceediting-b43bf53c090bfe77c0502b9785031d9d357893bc.zip
no longer required
Diffstat (limited to 'bundles/org.eclipse.wst.xml.core/src-contentmodel/org/eclipse/wst')
-rw-r--r--bundles/org.eclipse.wst.xml.core/src-contentmodel/org/eclipse/wst/xml/core/internal/contentmodel/internal/util/FTable.java68
1 files changed, 0 insertions, 68 deletions
diff --git a/bundles/org.eclipse.wst.xml.core/src-contentmodel/org/eclipse/wst/xml/core/internal/contentmodel/internal/util/FTable.java b/bundles/org.eclipse.wst.xml.core/src-contentmodel/org/eclipse/wst/xml/core/internal/contentmodel/internal/util/FTable.java
deleted file mode 100644
index fa7535eacf..0000000000
--- a/bundles/org.eclipse.wst.xml.core/src-contentmodel/org/eclipse/wst/xml/core/internal/contentmodel/internal/util/FTable.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
-* Copyright (c) 2002 IBM Corporation and others.
-* All rights reserved. This program and the accompanying materials
-* are made available under the terms of the Common Public License v1.0
-* which accompanies this distribution, and is available at
-* http://www.eclipse.org/legal/cpl-v10.html
-*
-* Contributors:
-* IBM - Initial API and implementation
-* Jens Lukowski/Innoopract - initial renaming/restructuring
-*
-*/
-package org.eclipse.wst.xml.core.internal.contentmodel.internal.util;
-
-import java.util.Collections;
-import java.util.Hashtable;
-import java.util.List;
-import java.util.Vector;
-
-import org.eclipse.wst.xml.core.internal.contentmodel.CMElementDeclaration;
-
-
-
-public class FTable
-{
- public final static String START = "START"; //$NON-NLS-1$
-
- protected Hashtable hashtable = new Hashtable();
-
- public void add(CMElementDeclaration ed1, CMElementDeclaration ed2)
- {
- String name = ed1 != null ? ed1.getElementName() : START;
- Vector v = (Vector)hashtable.get(name);
- if (v == null)
- {
- v = new Vector();
- hashtable.put(name, v);
- }
- v.add(ed2);
- }
-
-
- public boolean follows(String name1, String name2)
- {
- boolean result = false;
- Vector v = (Vector)hashtable.get(name1);
- if (v != null)
- {
- int size = v.size();
- for (int i = 0; i < size; i++)
- {
- CMElementDeclaration ed = (CMElementDeclaration)v.get(i);
- if (ed.getElementName().equals(name2))
- {
- result = true;
- break;
- }
- }
- }
- return result;
- }
-
- public List getFollows(String name)
- {
- Vector v = (Vector)hashtable.get(name);
- return v != null ? v : Collections.EMPTY_LIST;
- }
-}

Back to the top