Package com.intellij.ide

Examples of com.intellij.ide.SelectInEditorManager


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


    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.ide.SelectInEditorManager

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.