Examples of LightVirtualFile


Examples of com.intellij.testFramework.LightVirtualFile

        Assert.assertSame(source, model.source);
    }

    @Test
    public void testValueAt() {
        VirtualFile file = new LightVirtualFile("file.txt");

        // Add violations
        Violation violation1 = new Violation();
        violation1.setSeverity("Major");
        violation1.setRuleName("A rule");
View Full Code Here

Examples of com.intellij.testFramework.LightVirtualFile

      }

      @NotNull
      @Override
      public Document createDocument(@NotNull Project project, @NotNull String text, @Nullable XSourcePosition sourcePosition, @NotNull EvaluationMode mode) {
        LightVirtualFile file = new LightVirtualFile("plain-text-erlang-debugger.txt", text);
        //noinspection ConstantConditions
        return FileDocumentManager.getInstance().getDocument(file);
      }
    };
  }
View Full Code Here

Examples of com.intellij.testFramework.LightVirtualFile

    public JavaREPLLanguageConsole(Project project, String title, Language language, JavaREPLClient replClient) {
        this(project, title, language, true, replClient);
    }

    public JavaREPLLanguageConsole(Project project, String title, Language language, boolean initComponents, JavaREPLClient replClient) {
        this(project, title, new LightVirtualFile(title, language, ""), initComponents, replClient);
    }
View Full Code Here

Examples of com.intellij.testFramework.LightVirtualFile

        myProject = project;
        myTitle = title;
        myVirtualFile = lightFile;
        this.replClient = replClient;
        EditorFactory editorFactory = EditorFactory.getInstance();
        myHistoryFile = new LightVirtualFile(getTitle() + ".history.txt", FileTypes.PLAIN_TEXT, "");
        myEditorDocument = FileDocumentManager.getInstance().getDocument(lightFile);
        assert myEditorDocument != null;
        myConsoleEditor = (EditorEx) editorFactory.createEditor(myEditorDocument, myProject);
        myConsoleEditor.addFocusListener(myFocusListener);
        myCurrentEditor = myConsoleEditor;
View Full Code Here

Examples of com.intellij.testFramework.LightVirtualFile

  private IntentionFilterOwner.IntentionActionsFilter myFilter;
  private GlobalSearchScope myScope;

  public ClojureCodeFragment(Project project, CharSequence text) {
    super(new SingleRootFileViewProvider(PsiManager.getInstance(project),
        new LightVirtualFile(
            "ClojureDebugFile.clj",
            ClojureFileType.CLOJURE_FILE_TYPE,
            text), true));
    ((SingleRootFileViewProvider) getViewProvider()).forceCachedPsi(this);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.