diff options
Diffstat (limited to 'bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel')
33 files changed, 0 insertions, 1466 deletions
diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMCategory.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMCategory.java deleted file mode 100644 index 6bcd400723..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMCategory.java +++ /dev/null @@ -1,16 +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.metamodel; - -public interface CSSMMCategory extends CSSMMNode { - - String getCaption(); -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMCharsetRule.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMCharsetRule.java deleted file mode 100644 index d97fcdcdb5..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMCharsetRule.java +++ /dev/null @@ -1,18 +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.metamodel; - - - -public interface CSSMMCharsetRule extends CSSMMNode { - - -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMContainer.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMContainer.java deleted file mode 100644 index 0b83713de1..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMContainer.java +++ /dev/null @@ -1,18 +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.metamodel; - - - -public interface CSSMMContainer extends CSSMMNode { - - -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMDescriptor.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMDescriptor.java deleted file mode 100644 index 14ba720d34..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMDescriptor.java +++ /dev/null @@ -1,20 +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.metamodel; - - - -import java.util.Iterator; - -public interface CSSMMDescriptor extends CSSMMNode { - - Iterator getValues(); -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMFontFaceRule.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMFontFaceRule.java deleted file mode 100644 index fe45dc2a6e..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMFontFaceRule.java +++ /dev/null @@ -1,18 +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.metamodel; - - - -public interface CSSMMFontFaceRule extends CSSMMNode { - - -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMFunction.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMFunction.java deleted file mode 100644 index 22df25d9ac..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMFunction.java +++ /dev/null @@ -1,18 +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.metamodel; - - - -public interface CSSMMFunction extends CSSMMNode { - - String getFunctionString(); -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMImportRule.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMImportRule.java deleted file mode 100644 index 77fd1645ae..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMImportRule.java +++ /dev/null @@ -1,18 +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.metamodel; - - - -public interface CSSMMImportRule extends CSSMMNode { - - -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMKeyword.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMKeyword.java deleted file mode 100644 index 5b45b32345..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMKeyword.java +++ /dev/null @@ -1,18 +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.metamodel; - - - -public interface CSSMMKeyword extends CSSMMNode { - - String getKeywordString(); -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMMediaRule.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMMediaRule.java deleted file mode 100644 index b80aa21dc3..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMMediaRule.java +++ /dev/null @@ -1,18 +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.metamodel; - - - -public interface CSSMMMediaRule extends CSSMMNode { - - -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMNode.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMNode.java deleted file mode 100644 index d9ae2ea6de..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMNode.java +++ /dev/null @@ -1,51 +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.metamodel; - - - -import java.util.Iterator; - -public interface CSSMMNode { - String getType(); - - String getName(); - - String getDescription(); - - String getAttribute(String name); - - Iterator getChildNodes(); - - Iterator getDescendants(); - - - static final String _PREFIX = "CSSMM."; //$NON-NLS-1$ - static final String TYPE_KEYWORD = _PREFIX + "Keyword"; //$NON-NLS-1$ - static final String TYPE_UNIT = _PREFIX + "Unit"; //$NON-NLS-1$ - static final String TYPE_FUNCTION = _PREFIX + "Function"; //$NON-NLS-1$ - static final String TYPE_STRING = _PREFIX + "String"; //$NON-NLS-1$ - static final String TYPE_STYLE_SHEET = _PREFIX + "StyleSheet"; //$NON-NLS-1$ - static final String TYPE_PROPERTY = _PREFIX + "Property"; //$NON-NLS-1$ - static final String TYPE_DESCRIPTOR = _PREFIX + "Descriptor"; //$NON-NLS-1$ - static final String TYPE_CONTAINER = _PREFIX + "Container"; //$NON-NLS-1$ - static final String TYPE_NUMBER = _PREFIX + "Number"; //$NON-NLS-1$ - static final String TYPE_SEPARATOR = _PREFIX + "Separator"; //$NON-NLS-1$ - static final String TYPE_CHARSET_RULE = _PREFIX + "CharsetRule"; //$NON-NLS-1$ - static final String TYPE_IMPORT_RULE = _PREFIX + "ImportRule"; //$NON-NLS-1$ - static final String TYPE_STYLE_RULE = _PREFIX + "StyleRule"; //$NON-NLS-1$ - static final String TYPE_MEDIA_RULE = _PREFIX + "MediaRule"; //$NON-NLS-1$ - static final String TYPE_PAGE_RULE = _PREFIX + "PageRule"; //$NON-NLS-1$ - static final String TYPE_FONT_FACE_RULE = _PREFIX + "FontFaceRule"; //$NON-NLS-1$ - static final String TYPE_CATEGORY = _PREFIX + "Category"; //$NON-NLS-1$ - static final String TYPE_META_MODEL = _PREFIX + "MetaModel"; //$NON-NLS-1$ - static final String TYPE_SELECTOR = _PREFIX + "Selector"; //$NON-NLS-1$ -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMNumber.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMNumber.java deleted file mode 100644 index 2ea1b27536..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMNumber.java +++ /dev/null @@ -1,18 +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.metamodel; - - - -public interface CSSMMNumber extends CSSMMNode { - - -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMPageRule.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMPageRule.java deleted file mode 100644 index 04f99e9d07..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMPageRule.java +++ /dev/null @@ -1,18 +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.metamodel; - - - -public interface CSSMMPageRule extends CSSMMNode { - - -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMProperty.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMProperty.java deleted file mode 100644 index ec41462098..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMProperty.java +++ /dev/null @@ -1,22 +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.metamodel; - - - -import java.util.Iterator; - -public interface CSSMMProperty extends CSSMMNode { - - String getCategoryName(); - - Iterator getValues(); -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMSelector.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMSelector.java deleted file mode 100644 index d17ac199dc..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMSelector.java +++ /dev/null @@ -1,29 +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.metamodel; - -public interface CSSMMSelector extends CSSMMNode { - String getSelectorType(); - - String getSelectorString(); - - - static final String TYPE_EXPRESSION = "Expression"; //$NON-NLS-1$ - static final String TYPE_PSEUDO_CLASS = "PseudoClass"; //$NON-NLS-1$ - static final String TYPE_PSEUDO_ELEMENT = "PseudoElement"; //$NON-NLS-1$ - - // embedded expression type - static final String EXPRESSION_DESCENDANT = "descendant"; //$NON-NLS-1$ - static final String EXPRESSION_CHILD = "child"; //$NON-NLS-1$ - static final String EXPRESSION_ADJACENT = "adjacent"; //$NON-NLS-1$ - static final String EXPRESSION_UNIVERSAL = "universal"; //$NON-NLS-1$ - static final String EXPRESSION_ATTRIBUTE = "attribute"; //$NON-NLS-1$ -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMString.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMString.java deleted file mode 100644 index c9ddf8d303..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMString.java +++ /dev/null @@ -1,17 +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.metamodel; - - - -public interface CSSMMString extends CSSMMNode { - -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMStyleRule.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMStyleRule.java deleted file mode 100644 index 80414fae3f..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMStyleRule.java +++ /dev/null @@ -1,18 +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.metamodel; - - - -public interface CSSMMStyleRule extends CSSMMNode { - - -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMStyleSheet.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMStyleSheet.java deleted file mode 100644 index 40dc67b422..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMStyleSheet.java +++ /dev/null @@ -1,18 +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.metamodel; - - - -public interface CSSMMStyleSheet extends CSSMMNode { - - -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMUnit.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMUnit.java deleted file mode 100644 index 52910c6d4b..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMUnit.java +++ /dev/null @@ -1,18 +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.metamodel; - - - -public interface CSSMMUnit extends CSSMMNode { - - String getUnitString(); -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMetaModel.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMetaModel.java deleted file mode 100644 index f80c2601cc..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMetaModel.java +++ /dev/null @@ -1,37 +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.metamodel; - - - -import java.util.Iterator; - -public interface CSSMetaModel extends CSSMMNode { - - // public interface CSSMetaModel { - CSSMMStyleSheet getStyleSheet(); - - /* - * Shortcut to access property node - */ - // Iterator getProperties(); - // Iterator getDescriptors(); - // CSSMMProperty getProperty(String propertyName); - /* - * access to category information - */ - Iterator getCategories(); - - /* - * Utilities - */ - // Iterator collectNodesByType(String type); -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSProfile.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSProfile.java deleted file mode 100644 index 1d5fb89fac..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSProfile.java +++ /dev/null @@ -1,31 +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.metamodel; - - - -import java.net.URL; - - -public interface CSSProfile { - - String getProfileID(); - - String getProfileName(); - - URL getProfileURL(); - - CSSMetaModel getMetaModel(); - - boolean isDefault(); - - String getOwnerPluginID(); -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSProfileRegistry.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSProfileRegistry.java deleted file mode 100644 index 122b4cbdc3..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSProfileRegistry.java +++ /dev/null @@ -1,69 +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.metamodel; - - - -import java.util.Collections; -import java.util.HashMap; -import java.util.Iterator; -import java.util.Map; - -import org.eclipse.wst.css.core.internal.metamodelimpl.RegistryReader; - - - -public class CSSProfileRegistry { - public synchronized static CSSProfileRegistry getInstance() { - if (fInstance == null) { - fInstance = new CSSProfileRegistry(); - } - return fInstance; - } - - public Iterator getProfiles() { - return Collections.unmodifiableCollection(fProfiles.values()).iterator(); - } - - public CSSProfile getProfile(String profileID) { - return (CSSProfile) fProfiles.get(profileID); - } - - public CSSProfile getDefaultProfile() { - Iterator i = getProfiles(); - while (i.hasNext()) { - CSSProfile profile = (CSSProfile) i.next(); - if (profile.isDefault()) { - return profile; - } - } - return null; - } - - /** - * Constructor for CSSProfileRegistry. - */ - private CSSProfileRegistry() { - super(); - fProfiles = new HashMap(); - Iterator i = new RegistryReader().enumProfiles(); - while (i.hasNext()) { - Object profile = i.next(); - if (profile instanceof CSSProfile) { - fProfiles.put(((CSSProfile) profile).getProfileID(), profile); - } - } - } - - - private static CSSProfileRegistry fInstance = null; - private Map fProfiles = null; -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSFunctionID.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSFunctionID.java deleted file mode 100644 index 8fd67b3297..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSFunctionID.java +++ /dev/null @@ -1,22 +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.metamodel.util; - -public interface CSSFunctionID { - - final static String F_ATTR = "attr"; //$NON-NLS-1$ - final static String F_COUNTER = "counter"; //$NON-NLS-1$ - final static String F_RGB = "rgb"; //$NON-NLS-1$ - final static String F_RECT = "rect"; //$NON-NLS-1$ - final static String F_URI = "uri"; //$NON-NLS-1$ - final static String F_FORMAT = "format"; //$NON-NLS-1$ - final static String F_LOCAL = "local"; //$NON-NLS-1$ -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSKeywordID.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSKeywordID.java deleted file mode 100644 index 856b36d919..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSKeywordID.java +++ /dev/null @@ -1,261 +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.metamodel.util; - -public interface CSSKeywordID { - - final static String K_100 = "100"; //$NON-NLS-1$ - final static String K_200 = "200"; //$NON-NLS-1$ - final static String K_300 = "300"; //$NON-NLS-1$ - final static String K_400 = "400"; //$NON-NLS-1$ - final static String K_500 = "500"; //$NON-NLS-1$ - final static String K_600 = "600"; //$NON-NLS-1$ - final static String K_700 = "700"; //$NON-NLS-1$ - final static String K_800 = "800"; //$NON-NLS-1$ - final static String K_900 = "900"; //$NON-NLS-1$ - final static String K_ABOVE = "above"; //$NON-NLS-1$ - final static String K_ABSOLUTE = "absolute"; //$NON-NLS-1$ - final static String K_ACTIVEBORDER = "ActiveBorder"; //$NON-NLS-1$ - final static String K_ACTIVECAPTION = "ActiveCaption"; //$NON-NLS-1$ - final static String K_ALL = "all"; //$NON-NLS-1$ - final static String K_ALWAYS = "always"; //$NON-NLS-1$ - final static String K_APPWORKSPACE = "AppWorkspace"; //$NON-NLS-1$ - final static String K_AQUA = "aqua"; //$NON-NLS-1$ - final static String K_ARMENIAN = "armenian"; //$NON-NLS-1$ - final static String K_AUTO = "auto"; //$NON-NLS-1$ - final static String K_AVOID = "avoid"; //$NON-NLS-1$ - final static String K_BACKGROUND = "Background"; //$NON-NLS-1$ - final static String K_BASELINE = "baseline"; //$NON-NLS-1$ - final static String K_BEHIND = "behind"; //$NON-NLS-1$ - final static String K_BELOW = "below"; //$NON-NLS-1$ - final static String K_BIDI_OVERRIDE = "bidi-override"; //$NON-NLS-1$ - final static String K_BLACK = "black"; //$NON-NLS-1$ - final static String K_BLINK = "blink"; //$NON-NLS-1$ - final static String K_BLOCK = "block"; //$NON-NLS-1$ - final static String K_BLUE = "blue"; //$NON-NLS-1$ - final static String K_BOLD = "bold"; //$NON-NLS-1$ - final static String K_BOLDER = "bolder"; //$NON-NLS-1$ - final static String K_BOTH = "both"; //$NON-NLS-1$ - final static String K_BOTTOM = "bottom"; //$NON-NLS-1$ - final static String K_BUTTONFACE = "ButtonFace"; //$NON-NLS-1$ - final static String K_BUTTONHIGHLIGHT = "ButtonHighlight"; //$NON-NLS-1$ - final static String K_BUTTONSHADOW = "ButtonShadow"; //$NON-NLS-1$ - final static String K_BUTTONTEXT = "ButtonText"; //$NON-NLS-1$ - final static String K_CAPITALIZE = "capitalize"; //$NON-NLS-1$ - final static String K_CAPTION = "caption"; //$NON-NLS-1$ - final static String K_CAPTIONTEXT = "CaptionText"; //$NON-NLS-1$ - final static String K_CENTER = "center"; //$NON-NLS-1$ - final static String K_CENTER_LEFT = "center-left"; //$NON-NLS-1$ - final static String K_CENTER_RIGHT = "center-right"; //$NON-NLS-1$ - final static String K_CHILD = "child"; //$NON-NLS-1$ - final static String K_CIRCLE = "circle"; //$NON-NLS-1$ - final static String K_CJK_IDEOGRAPHIC = "cjk-ideographic"; //$NON-NLS-1$ - final static String K_CLOSE_QUOTE = "close-quote"; //$NON-NLS-1$ - final static String K_CODE = "code"; //$NON-NLS-1$ - final static String K_CONDENSED = "condensed"; //$NON-NLS-1$ - final static String K_COLLAPSE = "collapse"; //$NON-NLS-1$ - final static String K_COMPACT = "compact"; //$NON-NLS-1$ - final static String K_CONTINUOUS = "continuous"; //$NON-NLS-1$ - final static String K_CROP = "crop"; //$NON-NLS-1$ - final static String K_CROSS = "cross"; //$NON-NLS-1$ - final static String K_CROSSHAIR = "crosshair"; //$NON-NLS-1$ - final static String K_CURSIVE = "cursive"; //$NON-NLS-1$ - final static String K_DASHED = "dashed"; //$NON-NLS-1$ - final static String K_DECIMAL = "decimal"; //$NON-NLS-1$ - final static String K_DECIMAL_LEADING_ZERO = "decimal-leading-zero"; //$NON-NLS-1$ - final static String K_DEFAULT = "default"; //$NON-NLS-1$ - final static String K_DIGITS = "digits"; //$NON-NLS-1$ - final static String K_DISC = "disc"; //$NON-NLS-1$ - final static String K_DOTTED = "dotted"; //$NON-NLS-1$ - final static String K_DOUBLE = "double"; //$NON-NLS-1$ - final static String K_E_RESIZE = "e-resize"; //$NON-NLS-1$ - final static String K_EMBED = "embed"; //$NON-NLS-1$ - final static String K_EXPANDED = "expanded"; //$NON-NLS-1$ - final static String K_EXTRA_CONDENSED = "extra-condensed"; //$NON-NLS-1$ - final static String K_EXTRA_EXPANDED = "extra-expanded"; //$NON-NLS-1$ - final static String K_FANTASY = "fantasy"; //$NON-NLS-1$ - final static String K_FAR_LEFT = "far-left"; //$NON-NLS-1$ - final static String K_FAR_RIGHT = "far-right"; //$NON-NLS-1$ - final static String K_FAST = "fast"; //$NON-NLS-1$ - final static String K_FASTER = "faster"; //$NON-NLS-1$ - final static String K_FEMALE = "female"; //$NON-NLS-1$ - final static String K_FIXED = "fixed"; //$NON-NLS-1$ - final static String K_FUCHSIA = "fuchsia"; //$NON-NLS-1$ - final static String K_GEORGIAN = "georgian"; //$NON-NLS-1$ - final static String K_GRAY = "gray"; //$NON-NLS-1$ - final static String K_GRAYTEXT = "GrayText"; //$NON-NLS-1$ - final static String K_GREEN = "green"; //$NON-NLS-1$ - final static String K_GROOVE = "groove"; //$NON-NLS-1$ - final static String K_HEBREW = "hebrew"; //$NON-NLS-1$ - final static String K_HELP = "help"; //$NON-NLS-1$ - final static String K_HIDDEN = "hidden"; //$NON-NLS-1$ - final static String K_HIDE = "hide"; //$NON-NLS-1$ - final static String K_HIGH = "high"; //$NON-NLS-1$ - final static String K_HIGHLIGHT = "Highlight"; //$NON-NLS-1$ - final static String K_HIGHLIGHTTEXT = "HighlightText"; //$NON-NLS-1$ - final static String K_HIGHER = "higher"; //$NON-NLS-1$ - final static String K_HIRAGANA = "hiragana"; //$NON-NLS-1$ - final static String K_HIRAGANA_IROHA = "hiragana-iroha"; //$NON-NLS-1$ - final static String K_ICON = "icon"; //$NON-NLS-1$ - final static String K_INACTIVEBORDER = "InactiveBorder"; //$NON-NLS-1$ - final static String K_INACTIVECAPTION = "InactiveCaption"; //$NON-NLS-1$ - final static String K_INACTIVECAPTIONTEXT = "InactiveCaptionText"; //$NON-NLS-1$ - final static String K_INFOBACKGROUND = "InfoBackground"; //$NON-NLS-1$ - final static String K_INFOTEXT = "InfoText"; //$NON-NLS-1$ - final static String K_INLINE = "inline"; //$NON-NLS-1$ - final static String K_INLINE_TABLE = "inline-table"; //$NON-NLS-1$ - final static String K_INSET = "inset"; //$NON-NLS-1$ - final static String K_INSIDE = "inside"; //$NON-NLS-1$ - final static String K_INVERT = "invert"; //$NON-NLS-1$ - final static String K_ITALIC = "italic"; //$NON-NLS-1$ - final static String K_JUSTIFY = "justify"; //$NON-NLS-1$ - final static String K_KATAKANA = "katakana"; //$NON-NLS-1$ - final static String K_KATAKANA_IROHA = "katakana-iroha"; //$NON-NLS-1$ - final static String K_LANDSCAPE = "landscape"; //$NON-NLS-1$ - final static String K_LARGE = "large"; //$NON-NLS-1$ - final static String K_LARGER = "larger"; //$NON-NLS-1$ - final static String K_LEFT = "left"; //$NON-NLS-1$ - final static String K_LEFT_SIDE = "left-side"; //$NON-NLS-1$ - final static String K_LEFTWARDS = "leftwards"; //$NON-NLS-1$ - final static String K_LEVEL = "level"; //$NON-NLS-1$ - final static String K_LIGHTER = "lighter"; //$NON-NLS-1$ - final static String K_LIME = "lime"; //$NON-NLS-1$ - final static String K_LINE_THROUGH = "line-through"; //$NON-NLS-1$ - final static String K_LIST_ITEM = "list-item"; //$NON-NLS-1$ - final static String K_LOUD = "loud"; //$NON-NLS-1$ - final static String K_LOW = "low"; //$NON-NLS-1$ - final static String K_LOWER = "lower"; //$NON-NLS-1$ - final static String K_LOWER_ALPHA = "lower-alpha"; //$NON-NLS-1$ - final static String K_LOWER_GREEK = "lower-greek"; //$NON-NLS-1$ - final static String K_LOWER_LATIN = "lower-latin"; //$NON-NLS-1$ - final static String K_LOWER_ROMAN = "lower-roman"; //$NON-NLS-1$ - final static String K_LOWERCASE = "lowercase"; //$NON-NLS-1$ - final static String K_LTR = "ltr"; //$NON-NLS-1$ - final static String K_MALE = "male"; //$NON-NLS-1$ - final static String K_MARKER = "marker"; //$NON-NLS-1$ - final static String K_MAROON = "maroon"; //$NON-NLS-1$ - final static String K_MEDIUM = "medium"; //$NON-NLS-1$ - final static String K_MENU = "menu"; //$NON-NLS-1$ - final static String K_MENUTEXT = "MenuText"; //$NON-NLS-1$ - final static String K_MESSAGE_BOX = "message-box"; //$NON-NLS-1$ - final static String K_MIDDLE = "middle"; //$NON-NLS-1$ - final static String K_MIX = "mix"; //$NON-NLS-1$ - final static String K_MONOSPACE = "monospace"; //$NON-NLS-1$ - final static String K_MOVE = "move"; //$NON-NLS-1$ - final static String K_N_RESIZE = "n-resize"; //$NON-NLS-1$ - final static String K_NARROWER = "narrower"; //$NON-NLS-1$ - final static String K_NAVY = "navy"; //$NON-NLS-1$ - final static String K_NE_RESIZE = "ne-resize"; //$NON-NLS-1$ - final static String K_NO_CLOSE_QUOTE = "no-close-quote"; //$NON-NLS-1$ - final static String K_NO_OPEN_QUOTE = "no-open-quote"; //$NON-NLS-1$ - final static String K_NO_REPEAT = "no-repeat"; //$NON-NLS-1$ - final static String K_NONE = "none"; //$NON-NLS-1$ - final static String K_NORMAL = "normal"; //$NON-NLS-1$ - final static String K_NOWRAP = "nowrap"; //$NON-NLS-1$ - final static String K_NW_RESIZE = "nw-resize"; //$NON-NLS-1$ - final static String K_OBLIQUE = "oblique"; //$NON-NLS-1$ - final static String K_OLIVE = "olive"; //$NON-NLS-1$ - final static String K_ONCE = "once"; //$NON-NLS-1$ - final static String K_OPEN_QUOTE = "open-quote"; //$NON-NLS-1$ - final static String K_OUTSET = "outset"; //$NON-NLS-1$ - final static String K_OUTSIDE = "outside"; //$NON-NLS-1$ - final static String K_OVERLINE = "overline"; //$NON-NLS-1$ - final static String K_POINTER = "pointer"; //$NON-NLS-1$ - final static String K_PORTRAIT = "portrait"; //$NON-NLS-1$ - final static String K_PRE = "pre"; //$NON-NLS-1$ - final static String K_PURPLE = "purple"; //$NON-NLS-1$ - final static String K_RED = "red"; //$NON-NLS-1$ - final static String K_RELATIVE = "relative"; //$NON-NLS-1$ - final static String K_REPEAT = "repeat"; //$NON-NLS-1$ - final static String K_REPEAT_X = "repeat-x"; //$NON-NLS-1$ - final static String K_REPEAT_Y = "repeat-y"; //$NON-NLS-1$ - final static String K_RIDGE = "ridge"; //$NON-NLS-1$ - final static String K_RIGHT = "right"; //$NON-NLS-1$ - final static String K_RIGHT_SIDE = "right-side"; //$NON-NLS-1$ - final static String K_RIGHTWARDS = "rightwards"; //$NON-NLS-1$ - final static String K_RTL = "rtl"; //$NON-NLS-1$ - final static String K_RUN_IN = "run-in"; //$NON-NLS-1$ - final static String K_S_RESIZE = "s-resize"; //$NON-NLS-1$ - final static String K_SANS_SERIF = "sans-serif"; //$NON-NLS-1$ - final static String K_SCROLL = "scroll"; //$NON-NLS-1$ - final static String K_SCROLLBAR = "Scrollbar"; //$NON-NLS-1$ - final static String K_SE_RESIZE = "se-resize"; //$NON-NLS-1$ - final static String K_SEMI_CONDENSED = "semi-condensed"; //$NON-NLS-1$ - final static String K_SEMI_EXPANDED = "semi-expanded"; //$NON-NLS-1$ - final static String K_SEPARATE = "separate"; //$NON-NLS-1$ - final static String K_SERIF = "serif"; //$NON-NLS-1$ - final static String K_SHOW = "show"; //$NON-NLS-1$ - final static String K_SILENT = "silent"; //$NON-NLS-1$ - final static String K_SILVER = "silver"; //$NON-NLS-1$ - final static String K_SLOW = "slow"; //$NON-NLS-1$ - final static String K_SLOWER = "slower"; //$NON-NLS-1$ - final static String K_SMALL = "small"; //$NON-NLS-1$ - final static String K_SMALL_CAPS = "small-caps"; //$NON-NLS-1$ - final static String K_SMALL_CAPTION = "small-caption"; //$NON-NLS-1$ - final static String K_SMALLER = "smaller"; //$NON-NLS-1$ - final static String K_SOFT = "soft"; //$NON-NLS-1$ - final static String K_SOLID = "solid"; //$NON-NLS-1$ - final static String K_SPELL_OUT = "spell-out"; //$NON-NLS-1$ - final static String K_SQUARE = "square"; //$NON-NLS-1$ - final static String K_STATIC = "static"; //$NON-NLS-1$ - final static String K_STATUS_BAR = "status-bar"; //$NON-NLS-1$ - final static String K_SUB = "sub"; //$NON-NLS-1$ - final static String K_SUPER = "super"; //$NON-NLS-1$ - final static String K_SW_RESIZE = "sw-resize"; //$NON-NLS-1$ - final static String K_TABLE = "table"; //$NON-NLS-1$ - final static String K_TABLE_CAPTION = "table-caption"; //$NON-NLS-1$ - final static String K_TABLE_CELL = "table-cell"; //$NON-NLS-1$ - final static String K_TABLE_COLUMN = "table-column"; //$NON-NLS-1$ - final static String K_TABLE_COLUMN_GROUP = "table-column-group"; //$NON-NLS-1$ - final static String K_TABLE_FOOTER_GROUP = "table-footer-group"; //$NON-NLS-1$ - final static String K_TABLE_HEADER_GROUP = "table-header-group"; //$NON-NLS-1$ - final static String K_TABLE_ROW = "table-row"; //$NON-NLS-1$ - final static String K_TABLE_ROW_GROUP = "table-row-group"; //$NON-NLS-1$ - final static String K_TEAL = "teal"; //$NON-NLS-1$ - final static String K_TEXT = "text"; //$NON-NLS-1$ - final static String K_TEXT_TOP = "text-top"; //$NON-NLS-1$ - final static String K_TEXT_BOTTOM = "text-bottom"; //$NON-NLS-1$ - final static String K_THICK = "thick"; //$NON-NLS-1$ - final static String K_THIN = "thin"; //$NON-NLS-1$ - final static String K_THREEDDARKSHADOW = "ThreeDDarkShadow"; //$NON-NLS-1$ - final static String K_THREEDFACE = "ThreeDFace"; //$NON-NLS-1$ - final static String K_THREEDHIGHLIGHT = "ThreeDHighlight"; //$NON-NLS-1$ - final static String K_THREEDLIGHTSHADOW = "ThreeDLightShadow"; //$NON-NLS-1$ - final static String K_THREEDSHADOW = "ThreeDShadow"; //$NON-NLS-1$ - final static String K_TOP = "top"; //$NON-NLS-1$ - final static String K_TRANSPARENT = "transparent"; //$NON-NLS-1$ - final static String K_ULTRA_CONDENSED = "ultra-condensed"; //$NON-NLS-1$ - final static String K_ULTRA_EXPANDED = "ultra-expanded"; //$NON-NLS-1$ - final static String K_UNDERLINE = "underline"; //$NON-NLS-1$ - final static String K_UPPER_ALPHA = "upper-alpha"; //$NON-NLS-1$ - final static String K_UPPER_LATIN = "upper-latin"; //$NON-NLS-1$ - final static String K_UPPER_ROMAN = "upper-roman"; //$NON-NLS-1$ - final static String K_UPPERCASE = "uppercase"; //$NON-NLS-1$ - final static String K_VISIBLE = "visible"; //$NON-NLS-1$ - final static String K_W_RESIZE = "w-resize"; //$NON-NLS-1$ - final static String K_WAIT = "wait"; //$NON-NLS-1$ - final static String K_WHITE = "white"; //$NON-NLS-1$ - final static String K_WIDER = "wider"; //$NON-NLS-1$ - final static String K_WINDOW = "Window"; //$NON-NLS-1$ - final static String K_WINDOWFRAME = "WindowFrame"; //$NON-NLS-1$ - final static String K_WINDOWTEXT = "WindowText"; //$NON-NLS-1$ - final static String K_X_FAST = "x-fast"; //$NON-NLS-1$ - final static String K_X_HIGH = "x-high"; //$NON-NLS-1$ - final static String K_X_LARGE = "x-large"; //$NON-NLS-1$ - final static String K_X_LOUD = "x-loud"; //$NON-NLS-1$ - final static String K_X_LOW = "x-low"; //$NON-NLS-1$ - final static String K_X_SLOW = "x-slow"; //$NON-NLS-1$ - final static String K_X_SMALL = "x-small"; //$NON-NLS-1$ - final static String K_X_SOFT = "x-soft"; //$NON-NLS-1$ - final static String K_XX_SMALL = "xx-small"; //$NON-NLS-1$ - final static String K_XX_LARGE = "xx-large"; //$NON-NLS-1$ - final static String K_YELLOW = "yellow"; //$NON-NLS-1$ -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMMTypeCollector.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMMTypeCollector.java deleted file mode 100644 index c2baf782ed..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMMTypeCollector.java +++ /dev/null @@ -1,62 +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.metamodel.util; - -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; - -import org.eclipse.wst.css.core.internal.metamodel.CSSMMNode; - - -public class CSSMMTypeCollector extends CSSMetaModelTraverser { - - /** - * Constructor for TypeCollector. - */ - public CSSMMTypeCollector() { - super(); - } - - public void apply(CSSMMNode node, String type) { - fType = type; - fNodes = new ArrayList(); - apply(node); - } - - public void collectNestedType(boolean nested) { - fNested = nested; - } - - protected short preNode(CSSMMNode node) { - short rc = TRAV_CONT; - if (node != null) { - if (fType == node.getType()) { - if (!fNodes.contains(node)) { - fNodes.add(node); - } - if (!fNested) { - rc = TRAV_PRUNE; - } - } - } - return rc; - } - - public Iterator getNodes() { - return fNodes.iterator(); - } - - - private boolean fNested = false; - private String fType = null; - List fNodes = null; -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMediaGroupID.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMediaGroupID.java deleted file mode 100644 index b7bda5465e..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMediaGroupID.java +++ /dev/null @@ -1,29 +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.metamodel.util; - -public interface CSSMediaGroupID { - - final static String M_CONTINUOUS = "continuous"; //$NON-NLS-1$ - final static String M_PAGED = "paged"; //$NON-NLS-1$ - - final static String M_VISUAL = "visual"; //$NON-NLS-1$ - final static String M_AURAL = "aural"; //$NON-NLS-1$ - final static String M_TACTILE = "tactile"; //$NON-NLS-1$ - - final static String M_GRID = "grid"; //$NON-NLS-1$ - final static String M_BITMAP = "bitmap"; //$NON-NLS-1$ - - final static String M_INTERACTIVE = "interactive"; //$NON-NLS-1$ - final static String M_STATIC = "static"; //$NON-NLS-1$ - - final static String M_ALL = "all"; //$NON-NLS-1$ -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMetaModelFinder.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMetaModelFinder.java deleted file mode 100644 index f07d84a67f..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMetaModelFinder.java +++ /dev/null @@ -1,51 +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.metamodel.util; - -import org.eclipse.wst.css.core.internal.metamodel.CSSMetaModel; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode; -import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; - - -public class CSSMetaModelFinder { - /** - * Constructor for CSSMetaModelFinder. - */ - private CSSMetaModelFinder() { - super(); - } - - static synchronized public CSSMetaModelFinder getInstance() { - if (fInstance == null) { - fInstance = new CSSMetaModelFinder(); - } - return fInstance; - } - - public CSSMetaModel findMetaModelFor(ICSSNode node) { - return CSSProfileFinder.getInstance().findProfileFor(node).getMetaModel(); - } - - public CSSMetaModel findMetaModelFor(IStructuredModel model) { - return CSSProfileFinder.getInstance().findProfileFor(model).getMetaModel(); - - } - - // findMetaModelFor(Node) is not used. - // Even if it is used, it can be replaced with - // findMetaModelFor(IStructuredModel) easily - - public CSSMetaModel findMetaModelFor(String baseLocation) { - return CSSProfileFinder.getInstance().findProfileFor(baseLocation).getMetaModel(); - } - - static private CSSMetaModelFinder fInstance = null; -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMetaModelTraverser.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMetaModelTraverser.java deleted file mode 100644 index 05a6f48d04..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMetaModelTraverser.java +++ /dev/null @@ -1,92 +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.metamodel.util; - -import java.util.Iterator; -import java.util.Stack; - -import org.eclipse.wst.css.core.internal.metamodel.CSSMMNode; - - - -abstract public class CSSMetaModelTraverser { - - /** - * Constructor for Traverser. - */ - public CSSMetaModelTraverser() { - super(); - } - - public final void apply(CSSMMNode node) { - fTravStack = new Stack(); - - begin(node); - traverse(node); - end(node); - } - - private final short traverse(CSSMMNode node) { - if (node == null) { - return TRAV_CONT; - } - - fTravStack.push(node); - - short rc; - rc = preNode(node); - - if (rc == TRAV_CONT) { - Iterator i = node.getChildNodes(); - while (i.hasNext()) { - CSSMMNode child = (CSSMMNode) i.next(); - short rcChild = traverse(child); - if (rcChild == TRAV_STOP) { - fTravStack.pop(); - return TRAV_STOP; - } - } - } - else if (rc == TRAV_STOP) { - fTravStack.pop(); - return TRAV_STOP; - } - - rc = postNode(node); - - fTravStack.pop(); - return (rc == TRAV_PRUNE) ? TRAV_CONT : rc; - } - - protected void begin(CSSMMNode node) { - - } - - protected void end(CSSMMNode node) { - - } - - protected short preNode(CSSMMNode node) { - return TRAV_CONT; - } - - protected short postNode(CSSMMNode node) { - return TRAV_CONT; - } - - - Stack fTravStack = null; - - protected static final short TRAV_CONT = 0; - protected static final short TRAV_STOP = 1; - protected static final short TRAV_PRUNE = 2; - -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMetaModelUtil.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMetaModelUtil.java deleted file mode 100644 index aad0b1b1bd..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSMetaModelUtil.java +++ /dev/null @@ -1,120 +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.metamodel.util; - -import java.util.HashMap; -import java.util.Iterator; -import java.util.Map; - -import org.eclipse.wst.css.core.internal.metamodel.CSSMMDescriptor; -import org.eclipse.wst.css.core.internal.metamodel.CSSMMNode; -import org.eclipse.wst.css.core.internal.metamodel.CSSMMProperty; -import org.eclipse.wst.css.core.internal.metamodel.CSSMetaModel; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleDeclItem; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleDeclaration; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSStyleRule; -import org.w3c.dom.css.CSSFontFaceRule; - - -public class CSSMetaModelUtil { - public CSSMetaModelUtil(CSSMetaModel metamodel) { - super(); - fMetaModel = metamodel; - } - - public Iterator getProperties() { - return collectNodesByType(CSSMMNode.TYPE_PROPERTY); - } - - public Iterator getDescriptors() { - return collectNodesByType(CSSMMNode.TYPE_DESCRIPTOR); - } - - public Iterator collectNodesByType(String type) { - CSSMMTypeCollector collector = new CSSMMTypeCollector(); - collector.apply(fMetaModel, type); - return collector.getNodes(); - } - - public CSSMMProperty getProperty(String propertyName) { - Iterator iProperty = getProperties(); - while (iProperty.hasNext()) { - CSSMMNode node = (CSSMMNode) iProperty.next(); - if (node.getName().equalsIgnoreCase(propertyName)) { - return (CSSMMProperty) node; - } - } - return null; - } - - public CSSMMDescriptor getDescriptor(String descriptorName) { - Iterator iDescriptor = getDescriptors(); - while (iDescriptor.hasNext()) { - CSSMMNode node = (CSSMMNode) iDescriptor.next(); - if (node.getName().equalsIgnoreCase(descriptorName)) { - return (CSSMMDescriptor) node; - } - } - return null; - } - - public CSSMMNode getMetaModelNodeFor(ICSSNode node) { - if (node instanceof ICSSStyleDeclaration) { - node = node.getParentNode(); - } - if (node instanceof ICSSStyleDeclItem) { - ICSSNode parent = node.getParentNode(); - if (parent != null) { - parent = parent.getParentNode(); - } - if (parent instanceof ICSSStyleRule) { - return getProperty(((ICSSStyleDeclItem) node).getPropertyName()); - } - else if (parent instanceof CSSFontFaceRule) { - return getDescriptor(((ICSSStyleDeclItem) node).getPropertyName()); - } - } - if (node == null) { - return null; - } - - if (fTypeMap == null) { - fTypeMap = new HashMap(); - fTypeMap.put(new Short(ICSSNode.STYLERULE_NODE), CSSMMNode.TYPE_STYLE_RULE); - fTypeMap.put(new Short(ICSSNode.FONTFACERULE_NODE), CSSMMNode.TYPE_FONT_FACE_RULE); - fTypeMap.put(new Short(ICSSNode.PAGERULE_NODE), CSSMMNode.TYPE_PAGE_RULE); - } - - String nodeType = (String) fTypeMap.get(new Short(node.getNodeType())); - if (nodeType == null) { - return null; - } - - Iterator iNodes = collectNodesByType(nodeType); - if (iNodes.hasNext()) { - CSSMMNode targetNode = (CSSMMNode) iNodes.next(); - if (!iNodes.hasNext()) { // it's only one - return targetNode; - } - } - - return null; - } - - public CSSMetaModel getMetaModel() { - return fMetaModel; - } - - - private CSSMetaModel fMetaModel = null; - private Map fTypeMap = null; -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSNumberID.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSNumberID.java deleted file mode 100644 index 4b367ab7a6..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSNumberID.java +++ /dev/null @@ -1,23 +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.metamodel.util; - -public interface CSSNumberID { - - final static java.lang.String N_ANGLE = "angle";//$NON-NLS-1$ - final static java.lang.String N_FREQUENCY = "frequency";//$NON-NLS-1$ - final static java.lang.String N_INTEGER = "integer";//$NON-NLS-1$ - final static java.lang.String N_LENGTH = "length";//$NON-NLS-1$ - final static java.lang.String N_PERCENTAGE = "percentage";//$NON-NLS-1$ - final static java.lang.String N_TIME = "time";//$NON-NLS-1$ - final static java.lang.String N_HASH = "hash"; //$NON-NLS-1$ - final static java.lang.String N_NUM = "number";//$NON-NLS-1$ -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSProfileFinder.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSProfileFinder.java deleted file mode 100644 index ed11f6202a..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSProfileFinder.java +++ /dev/null @@ -1,105 +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.metamodel.util; - -import org.eclipse.core.resources.IProject; -import org.eclipse.core.resources.IResource; -import org.eclipse.core.resources.ResourcesPlugin; -import org.eclipse.core.runtime.IPath; -import org.eclipse.core.runtime.Path; -import org.eclipse.wst.css.core.internal.metamodel.CSSProfile; -import org.eclipse.wst.css.core.internal.metamodel.CSSProfileRegistry; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSDocument; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSModel; -import org.eclipse.wst.css.core.internal.provisional.document.ICSSNode; -import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel; -import org.eclipse.wst.sse.internal.contentproperties.ContentSettingsCreator; -import org.eclipse.wst.sse.internal.contentproperties.IContentSettings; - - -public class CSSProfileFinder { - - final static private String CSS_PROFILE = "css-profile"; //$NON-NLS-1$ - - /** - * Constructor for CSSProfileFinder. - */ - private CSSProfileFinder() { - super(); - } - - static synchronized public CSSProfileFinder getInstance() { - if (fInstance == null) { - fInstance = new CSSProfileFinder(); - } - return fInstance; - } - - public CSSProfile findProfileFor(ICSSNode node) { - ICSSModel model = null; - if (node != null) { - ICSSDocument doc = node.getOwnerDocument(); - if (doc != null) { - model = doc.getModel(); - } - } - return findProfileFor(model); - } - - public CSSProfile findProfileFor(IStructuredModel model) { - String baseLocation = null; - if (model instanceof ICSSModel) { - Object modelType = ((ICSSModel) model).getStyleSheetType(); - if (modelType == ICSSModel.EXTERNAL) { - baseLocation = model.getBaseLocation(); - } - else if (modelType == ICSSModel.EMBEDDED || modelType == ICSSModel.INLINE) { - baseLocation = model.getBaseLocation(); // may be null - } - } - else if (model != null) { - baseLocation = model.getBaseLocation(); - } - return findProfileFor(baseLocation); - } - - public CSSProfile findProfileFor(String baseLocation) { - CSSProfileRegistry reg = CSSProfileRegistry.getInstance(); - CSSProfile profile = null; - - if (baseLocation != null) { - IContentSettings cs = ContentSettingsCreator.create(); - IPath path = new Path(baseLocation); - IResource resource = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(path); - if (resource == null && path.segmentCount() > 1) - resource = ResourcesPlugin.getWorkspace().getRoot().getFile(path); - if (resource != null) { - IProject project = resource.getProject(); - // at first, initialized with project settings - if (project != null) { - String profileID = cs.getProperty(project, CSS_PROFILE); - if (profileID != null && 0 < profileID.length()) { - profile = reg.getProfile(profileID); - } - } - // if resource settings exist, overwrite with project settings - String profileID = cs.getProperty(resource, CSS_PROFILE); - if (profileID != null && 0 < profileID.length()) { - profile = reg.getProfile(profileID); - } - } - } - - return (profile != null) ? profile : reg.getDefaultProfile(); - } - - static private CSSProfileFinder fInstance = null; -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSPropertyID.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSPropertyID.java deleted file mode 100644 index 5f66cdbd14..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSPropertyID.java +++ /dev/null @@ -1,137 +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.metamodel.util; - -public interface CSSPropertyID { - - final static String P_AZIMUTH = "azimuth"; //$NON-NLS-1$ - final static String P_BG = "background"; //$NON-NLS-1$ - final static String P_BG_ATTACHMENT = "background-attachment"; //$NON-NLS-1$ - final static String P_BG_COLOR = "background-color"; //$NON-NLS-1$ - final static String P_BG_IMAGE = "background-image"; //$NON-NLS-1$ - final static String P_BG_POSITION = "background-position"; //$NON-NLS-1$ - final static String P_BG_REPEAT = "background-repeat"; //$NON-NLS-1$ - final static String P_BORDER = "border"; //$NON-NLS-1$ - final static String P_BORDER_COLLAPSE = "border-collapse"; //$NON-NLS-1$ - final static String P_BORDER_COLOR = "border-color"; //$NON-NLS-1$ - final static String P_BORDER_SPACING = "border-spacing"; //$NON-NLS-1$ - final static String P_BORDER_STYLE = "border-style"; //$NON-NLS-1$ - final static String P_BORDER_TOP = "border-top"; //$NON-NLS-1$ - final static String P_BORDER_RIGHT = "border-right"; //$NON-NLS-1$ - final static String P_BORDER_BOTTOM = "border-bottom"; //$NON-NLS-1$ - final static String P_BORDER_LEFT = "border-left"; //$NON-NLS-1$ - final static String P_BORDER_TOP_COLOR = "border-top-color"; //$NON-NLS-1$ - final static String P_BORDER_RIGHT_COLOR = "border-right-color"; //$NON-NLS-1$ - final static String P_BORDER_BOTTOM_COLOR = "border-bottom-color"; //$NON-NLS-1$ - final static String P_BORDER_LEFT_COLOR = "border-left-color"; //$NON-NLS-1$ - final static String P_BORDER_TOP_STYLE = "border-top-style"; //$NON-NLS-1$ - final static String P_BORDER_RIGHT_STYLE = "border-right-style"; //$NON-NLS-1$ - final static String P_BORDER_BOTTOM_STYLE = "border-bottom-style"; //$NON-NLS-1$ - final static String P_BORDER_LEFT_STYLE = "border-left-style"; //$NON-NLS-1$ - final static String P_BORDER_TOP_WIDTH = "border-top-width"; //$NON-NLS-1$ - final static String P_BORDER_RIGHT_WIDTH = "border-right-width"; //$NON-NLS-1$ - final static String P_BORDER_BOTTOM_WIDTH = "border-bottom-width"; //$NON-NLS-1$ - final static String P_BORDER_LEFT_WIDTH = "border-left-width"; //$NON-NLS-1$ - final static String P_BORDER_WIDTH = "border-width"; //$NON-NLS-1$ - final static String P_BOTTOM = "bottom"; //$NON-NLS-1$ - final static String P_CAPTION_SIDE = "caption-side"; //$NON-NLS-1$ - final static String P_CLEAR = "clear"; //$NON-NLS-1$ - final static String P_CLIP = "clip"; //$NON-NLS-1$ - final static String P_COLOR = "color"; //$NON-NLS-1$ - final static String P_CONTENT = "content"; //$NON-NLS-1$ - final static String P_COUNTER_INCREMENT = "counter-increment"; //$NON-NLS-1$ - final static String P_COUNTER_RESET = "counter-reset"; //$NON-NLS-1$ - final static String P_CUE = "cue"; //$NON-NLS-1$ - final static String P_CUE_AFTER = "cue-after"; //$NON-NLS-1$ - final static String P_CUE_BEFORE = "cue-before"; //$NON-NLS-1$ - final static String P_CURSOR = "cursor"; //$NON-NLS-1$ - final static String P_DIRECTION = "direction"; //$NON-NLS-1$ - final static String P_DISPLAY = "display"; //$NON-NLS-1$ - final static String P_ELEVATION = "elevation"; //$NON-NLS-1$ - final static String P_EMPTY_CELLS = "empty-cells"; //$NON-NLS-1$ - final static String P_FLOAT = "float"; //$NON-NLS-1$ - final static String P_FONT = "font"; //$NON-NLS-1$ - final static String P_FONT_FAMILY = "font-family"; //$NON-NLS-1$ - final static String P_FONT_SIZE = "font-size"; //$NON-NLS-1$ - final static String P_FONT_SIZE_ADJUST = "font-size-adjust"; //$NON-NLS-1$ - final static String P_FONT_STRETCH = "font-stretch"; //$NON-NLS-1$ - final static String P_FONT_STYLE = "font-style"; //$NON-NLS-1$ - final static String P_FONT_VARIANT = "font-variant"; //$NON-NLS-1$ - final static String P_FONT_WEIGHT = "font-weight"; //$NON-NLS-1$ - final static String P_HEIGHT = "height"; //$NON-NLS-1$ - final static String P_LEFT = "left"; //$NON-NLS-1$ - final static String P_LETTER_SPACING = "letter-spacing"; //$NON-NLS-1$ - final static String P_LINE_HEIGHT = "line-height"; //$NON-NLS-1$ - final static String P_LIST_STYLE = "list-style"; //$NON-NLS-1$ - final static String P_LIST_STYLE_IMAGE = "list-style-image"; //$NON-NLS-1$ - final static String P_LIST_STYLE_POSITION = "list-style-position"; //$NON-NLS-1$ - final static String P_LIST_STYLE_TYPE = "list-style-type"; //$NON-NLS-1$ - final static String P_MARGIN = "margin"; //$NON-NLS-1$ - final static String P_MARGIN_TOP = "margin-top"; //$NON-NLS-1$ - final static String P_MARGIN_RIGHT = "margin-right"; //$NON-NLS-1$ - final static String P_MARGIN_BOTTOM = "margin-bottom"; //$NON-NLS-1$ - final static String P_MARGIN_LEFT = "margin-left"; //$NON-NLS-1$ - final static String P_MARKER_OFFSET = "marker-offset"; //$NON-NLS-1$ - final static String P_MARKS = "marks"; //$NON-NLS-1$ - final static String P_MAX_HEIGHT = "max-height"; //$NON-NLS-1$ - final static String P_MAX_WIDTH = "max-width"; //$NON-NLS-1$ - final static String P_MIN_HEIGHT = "min-height"; //$NON-NLS-1$ - final static String P_MIN_WIDTH = "min-width"; //$NON-NLS-1$ - final static String P_ORPHANS = "orphans"; //$NON-NLS-1$ - final static String P_OUTLINE = "outline"; //$NON-NLS-1$ - final static String P_OUTLINE_COLOR = "outline-color"; //$NON-NLS-1$ - final static String P_OUTLINE_STYLE = "outline-style"; //$NON-NLS-1$ - final static String P_OUTLINE_WIDTH = "outline-width"; //$NON-NLS-1$ - final static String P_OVERFLOW = "overflow"; //$NON-NLS-1$ - final static String P_PADDING = "padding"; //$NON-NLS-1$ - final static String P_PADDING_TOP = "padding-top"; //$NON-NLS-1$ - final static String P_PADDING_RIGHT = "padding-right"; //$NON-NLS-1$ - final static String P_PADDING_BOTTOM = "padding-bottom"; //$NON-NLS-1$ - final static String P_PADDING_LEFT = "padding-left"; //$NON-NLS-1$ - final static String P_PAGE = "page"; //$NON-NLS-1$ - final static String P_PAGE_BREAK_AFTER = "page-break-after"; //$NON-NLS-1$ - final static String P_PAGE_BREAK_BEFORE = "page-break-before"; //$NON-NLS-1$ - final static String P_PAGE_BREAK_INSIDE = "page-break-inside"; //$NON-NLS-1$ - final static String P_PAUSE = "pause"; //$NON-NLS-1$ - final static String P_PAUSE_AFTER = "pause-after"; //$NON-NLS-1$ - final static String P_PAUSE_BEFORE = "pause-before"; //$NON-NLS-1$ - final static String P_PITCH = "pitch"; //$NON-NLS-1$ - final static String P_PITCH_RANGE = "pitch-range"; //$NON-NLS-1$ - final static String P_PLAY_DURING = "play-during"; //$NON-NLS-1$ - final static String P_POSITION = "position"; //$NON-NLS-1$ - final static String P_QUOTES = "quotes"; //$NON-NLS-1$ - final static String P_RICHNESS = "richness"; //$NON-NLS-1$ - final static String P_RIGHT = "right"; //$NON-NLS-1$ - final static String P_SIZE = "size"; //$NON-NLS-1$ - final static String P_SPEAK = "speak"; //$NON-NLS-1$ - final static String P_SPEAK_HEADER = "speak-header"; //$NON-NLS-1$ - final static String P_SPEAK_NUMERAL = "speak-numeral"; //$NON-NLS-1$ - final static String P_SPEAK_PUNCTUATION = "speak-punctuation"; //$NON-NLS-1$ - final static String P_SPEECH_RATE = "speech-rate"; //$NON-NLS-1$ - final static String P_STRESS = "stress"; //$NON-NLS-1$ - final static String P_TABLE_LAYOUT = "table-layout"; //$NON-NLS-1$ - final static String P_TEXT_ALIGN = "text-align"; //$NON-NLS-1$ - final static String P_TEXT_DECORATION = "text-decoration"; //$NON-NLS-1$ - final static String P_TEXT_INDENT = "text-indent"; //$NON-NLS-1$ - final static String P_TEXT_SHADOW = "text-shadow"; //$NON-NLS-1$ - final static String P_TEXT_TRANSFORM = "text-transform"; //$NON-NLS-1$ - final static String P_TOP = "top"; //$NON-NLS-1$ - final static String P_UNICODE_BIDI = "unicode-bidi"; //$NON-NLS-1$ - final static String P_VERTICAL_ALIGN = "vertical-align"; //$NON-NLS-1$ - final static String P_VISIBILITY = "visibility"; //$NON-NLS-1$ - final static String P_VOICE_FAMILY = "voice-family"; //$NON-NLS-1$ - final static String P_VOLUME = "volume"; //$NON-NLS-1$ - final static String P_WHITE_SPACE = "white-space"; //$NON-NLS-1$ - final static String P_WIDOWS = "widows"; //$NON-NLS-1$ - final static String P_WIDTH = "width"; //$NON-NLS-1$ - final static String P_WORD_SPACING = "word-spacing"; //$NON-NLS-1$ - final static String P_Z_INDEX = "z-index"; //$NON-NLS-1$ -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSStringID.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSStringID.java deleted file mode 100644 index c62519140d..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSStringID.java +++ /dev/null @@ -1,22 +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.metamodel.util; - -public interface CSSStringID { - - final static String S_ANY = "any"; //$NON-NLS-1$ - final static String S_COUNTER_IDENTIFIER = "counter-identifier"; //$NON-NLS-1$ - final static String S_FAMILY_NAME = "family-name"; //$NON-NLS-1$ - final static String S_FONT_FACE_NAME = "font-face-name"; //$NON-NLS-1$ - final static String S_PAGE_IDENTIFIER = "page-identifier"; //$NON-NLS-1$ - final static String S_SPECIFIC_VOICE = "specific-voice"; //$NON-NLS-1$ - final static String S_URANGE = "urange"; //$NON-NLS-1$ -}
\ No newline at end of file diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSUnitID.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSUnitID.java deleted file mode 100644 index ce2b5f1d54..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/util/CSSUnitID.java +++ /dev/null @@ -1,34 +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.metamodel.util; - -public interface CSSUnitID { - - final static String U_CM = "cm";//$NON-NLS-1$ - final static String U_DEG = "deg";//$NON-NLS-1$ - final static String U_EMS = "em";//$NON-NLS-1$ - final static String U_EXS = "ex";//$NON-NLS-1$ - final static String U_GRAD = "grad";//$NON-NLS-1$ - final static String U_HASH = "#";//$NON-NLS-1$ - final static String U_HZ = "Hz";//$NON-NLS-1$ - final static String U_IN = "in";//$NON-NLS-1$ - // final static String U_INTEGER = "INTEGER";//$NON-NLS-1$ - final static String U_KHZ = "kHz";//$NON-NLS-1$ - final static String U_MM = "mm";//$NON-NLS-1$ - final static String U_MS = "ms";//$NON-NLS-1$ - // final static String U_NUMBER = "NUMBER";//$NON-NLS-1$ - final static String U_PC = "pc";//$NON-NLS-1$ - final static String U_PERCENTAGE = "%";//$NON-NLS-1$ - final static String U_PT = "pt";//$NON-NLS-1$ - final static String U_PX = "px";//$NON-NLS-1$ - final static String U_RAD = "rad";//$NON-NLS-1$ - final static String U_S = "s";//$NON-NLS-1$ -}
\ No newline at end of file |