use of net.vtst.ow.eclipse.less.less.MediaQuery in project ow by vtst.
the class LessLabelProvider method text.
StyledString text(MediaStatement obj) {
StyledString ss = new StyledString("@media", atKeywordStyler);
EList<MediaQuery> medias = obj.getMedia_queries().getMedia_query();
boolean first = true;
for (MediaQuery mediaQuery : medias) {
if (first)
first = false;
else
ss.append(",");
if (mediaQuery.getKeyword() != null) {
ss.append(" ");
ss.append(mediaQuery.getKeyword());
}
ss.append(" ");
ss.append(mediaQuery.getMedia_type());
}
return ss;
}
Aggregations