Search in sources :

Example 1 with CSSMetaModelFinder

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

the class CSSContentAssistContext method getMetaModel.

/**
 */
CSSMetaModel getMetaModel() {
    CSSMetaModelFinder finder = CSSMetaModelFinder.getInstance();
    ICSSModel model = getModel();
    if (model.getOwnerDOMNode() != null) {
        return finder.findMetaModelFor(model.getOwnerDOMNode());
    }
    return finder.findMetaModelFor(getModel());
}
Also used : ICSSModel(org.eclipse.wst.css.core.internal.provisional.document.ICSSModel) CSSMetaModelFinder(org.eclipse.wst.css.core.internal.metamodel.util.CSSMetaModelFinder)

Aggregations

CSSMetaModelFinder (org.eclipse.wst.css.core.internal.metamodel.util.CSSMetaModelFinder)1 ICSSModel (org.eclipse.wst.css.core.internal.provisional.document.ICSSModel)1