Search in sources :

Example 1 with GradleEditorModelParserFacade

use of com.android.tools.idea.gradle.editor.parser.GradleEditorModelParserFacade in project android by JetBrains.

the class GradleFileEditor method refresh.

public void refresh() {
    if (myDocument != null) {
        PsiDocumentManager psiDocumentManager = PsiDocumentManager.getInstance(myProject);
        psiDocumentManager.commitDocument(myDocument);
    }
    disposeGroups();
    myGroups = new GradleEditorModelParserFacade().parse(myVirtualFile, myProject);
    myComponent.setData(myGroups);
}
Also used : GradleEditorModelParserFacade(com.android.tools.idea.gradle.editor.parser.GradleEditorModelParserFacade) PsiDocumentManager(com.intellij.psi.PsiDocumentManager)

Aggregations

GradleEditorModelParserFacade (com.android.tools.idea.gradle.editor.parser.GradleEditorModelParserFacade)1 PsiDocumentManager (com.intellij.psi.PsiDocumentManager)1