Package com.intellij.psi.css

Examples of com.intellij.psi.css.CssElement


                else
                {
                    if (cssDeclaration.isImportant() == important)
                    {
                        // Priority not changed - only need to alter the value text.
                        CssElement navigationElement = getNavigationElement();
                        if (navigationElement instanceof CssTermList)
                        {
                            navigationElement.replace(CssUtils.createTermList(navigationElement.getProject(), value));
                        }
                        else if (navigationElement instanceof CssDeclaration)
                        {
                            ((CssDeclaration) navigationElement).setValue(value);
                        }
View Full Code Here


        return cssDeclaration;
    }

    public void navigate()
    {
        CssElement cssElement = getNavigationElement();
        if (cssElement != null)
        {
            SelectInEditorManager selectInEditorManager = SelectInEditorManager.getInstance(cssElement.getProject());
            VirtualFile virtualFile = cssElement.getContainingFile().getVirtualFile();
            if (virtualFile != null)
            {
                TextRange textRange = cssElement.getTextRange();
                selectInEditorManager.selectInEditor(virtualFile, textRange.getStartOffset(), textRange.getEndOffset(), false, false);
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.intellij.psi.css.CssElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.