本文整理了Java中com.intellij.openapi.project.Project.getProjectFilePath()
方法的一些代码示例,展示了Project.getProjectFilePath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.getProjectFilePath()
方法的具体详情如下:
包路径:com.intellij.openapi.project.Project
类名称: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.
内容来源于网络,如有侵权,请联系作者删除!