use of org.eclipse.wst.css.core.internal.provisional.document.ICSSNode in project webtools.sourceediting by eclipse.
the class CSSModelUpdateContext method getCSSMediaRule.
/**
*/
CSSMediaRuleImpl getCSSMediaRule() {
ICSSNode node = getNode();
if (node instanceof CSSMediaRuleImpl) {
return (CSSMediaRuleImpl) node;
} else {
CSSUtil.debugOut(// $NON-NLS-1$
"CSSMediaRuleImpl is expected, but " + CSSUtil.getClassString(node));
ungetNode();
// $NON-NLS-1$
throw new DOMException(DOMException.INVALID_MODIFICATION_ERR, "");
}
}
use of org.eclipse.wst.css.core.internal.provisional.document.ICSSNode in project webtools.sourceediting by eclipse.
the class CSSModelUpdateContext method getRGBColor.
/**
*/
RGBColorImpl getRGBColor() {
ICSSNode node = getNode();
if (node instanceof RGBColorImpl) {
return (RGBColorImpl) node;
} else {
CSSUtil.debugOut(// $NON-NLS-1$
"RGBColorImpl is expected, but " + CSSUtil.getClassString(node));
ungetNode();
// $NON-NLS-1$
throw new DOMException(DOMException.INVALID_MODIFICATION_ERR, "");
}
}
use of org.eclipse.wst.css.core.internal.provisional.document.ICSSNode in project webtools.sourceediting by eclipse.
the class CSSModelUpdateContext method getCSSPageRule.
/**
*/
CSSPageRuleImpl getCSSPageRule() {
ICSSNode node = getNode();
if (node instanceof CSSPageRuleImpl) {
return (CSSPageRuleImpl) node;
} else {
CSSUtil.debugOut(// $NON-NLS-1$
"CSSPageRuleImpl is expected, but " + CSSUtil.getClassString(node));
ungetNode();
// $NON-NLS-1$
throw new DOMException(DOMException.INVALID_MODIFICATION_ERR, "");
}
}
use of org.eclipse.wst.css.core.internal.provisional.document.ICSSNode in project webtools.sourceediting by eclipse.
the class CSSModelUpdateContext method getCounter.
/**
*/
CounterImpl getCounter() {
ICSSNode node = getNode();
if (node instanceof CounterImpl) {
return (CounterImpl) node;
} else {
CSSUtil.debugOut(// $NON-NLS-1$
"CounterImpl is expected, but " + CSSUtil.getClassString(node));
ungetNode();
// $NON-NLS-1$
throw new DOMException(DOMException.INVALID_MODIFICATION_ERR, "");
}
}
use of org.eclipse.wst.css.core.internal.provisional.document.ICSSNode in project webtools.sourceediting by eclipse.
the class CSSModelUpdateContext method getCSSStyleRule.
/**
*/
CSSStyleRuleImpl getCSSStyleRule() {
ICSSNode node = getNode();
if (node instanceof CSSStyleRuleImpl) {
return (CSSStyleRuleImpl) node;
} else {
CSSUtil.debugOut(// $NON-NLS-1$
"CSSStyleRuleImpl is expected, but " + CSSUtil.getClassString(node));
ungetNode();
// $NON-NLS-1$
throw new DOMException(DOMException.INVALID_MODIFICATION_ERR, "");
}
}
Aggregations