Search in sources :

Example 6 with CSSProfileRegistry

use of org.eclipse.wst.css.core.internal.metamodel.CSSProfileRegistry in project webtools.sourceediting by eclipse.

the class ContentSettingsRegistry method setCSSMetaModelRegistryInto.

public static void setCSSMetaModelRegistryInto(ComboList combo) {
    // $NON-NLS-1$
    combo.add(NONE, "");
    CSSProfileRegistry reg = CSSProfileRegistry.getInstance();
    Iterator i = reg.getProfiles();
    while (i.hasNext()) {
        CSSProfile profile = (CSSProfile) i.next();
        String id = profile.getProfileID();
        String name = profile.getProfileName();
        combo.add(name, id);
    }
    combo.sortByKey(1);
}
Also used : CSSProfile(org.eclipse.wst.css.core.internal.metamodel.CSSProfile) Iterator(java.util.Iterator) CSSProfileRegistry(org.eclipse.wst.css.core.internal.metamodel.CSSProfileRegistry)

Aggregations

CSSProfile (org.eclipse.wst.css.core.internal.metamodel.CSSProfile)6 CSSProfileRegistry (org.eclipse.wst.css.core.internal.metamodel.CSSProfileRegistry)6 Iterator (java.util.Iterator)5 ArrayList (java.util.ArrayList)2 IOException (java.io.IOException)1 MalformedURLException (java.net.MalformedURLException)1 URL (java.net.URL)1 IResource (org.eclipse.core.resources.IResource)1 IPath (org.eclipse.core.runtime.IPath)1 Path (org.eclipse.core.runtime.Path)1