com.intellij.openapi.project.Project.getProjectFilePath()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(202)

本文整理了Java中com.intellij.openapi.project.Project.getProjectFilePath()方法的一些代码示例,展示了Project.getProjectFilePath()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.getProjectFilePath()方法的具体详情如下:
包路径:com.intellij.openapi.project.Project
类名称:Project
方法名:getProjectFilePath

Project.getProjectFilePath介绍

暂无

代码示例

代码示例来源:origin: dkandalov/tab-shifter

private static TabShifter tabShifter(AnActionEvent event) {
  Project project = event.getProject();
  if (project == null) {
    return TabShifter.none;
  }
  // re-use old tabShifter to preserve state
  if (projectTabShifter.containsKey(project.getProjectFilePath())) {
    return projectTabShifter.get(project.getProjectFilePath());
  }
  FileEditorManagerEx editorManager = FileEditorManagerEx.getInstanceEx(project);
  if (editorManager == null || editorManager.getAllEditors().length == 0) return TabShifter.none;
  TabShifter tabShifter = new TabShifter(new Ide(editorManager, project));
  projectTabShifter.put(project.getProjectFilePath(), tabShifter);
  Disposer.register(project, () -> projectTabShifter.remove(project.getProjectFilePath()));
  return tabShifter;
}

代码示例来源:origin: intellij-dlanguage/intellij-dlanguage

public void testDubParserWithVibed() throws Exception {
  loadVibedTestFiles();
  System.out.println(" ----------------" + ourProject.getProjectFilePath());
  ourProject.getBaseDir()
    .refresh(false, true);//this is needed under certain circumstances to make tests pass.

相关文章