Search in sources :

Example 1 with MediaQuery

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;
}
Also used : MediaQuery(net.vtst.ow.eclipse.less.less.MediaQuery) StyledString(org.eclipse.jface.viewers.StyledString)

Aggregations

MediaQuery (net.vtst.ow.eclipse.less.less.MediaQuery)1 StyledString (org.eclipse.jface.viewers.StyledString)1