本文整理汇总了Java中com.intellij.openapi.vfs.VirtualFile.createChildDirectory方法的典型用法代码示例。如果您正苦于以下问题:Java VirtualFile.createChildDirectory方法的具体用法?Java VirtualFile.createChildDirectory怎么用?Java VirtualFile.createChildDirectory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.vfs.VirtualFile
的用法示例。
在下文中一共展示了VirtualFile.createChildDirectory方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createData
import com.intellij.openapi.vfs.VirtualFile; //导入方法依赖的package包/类
private void createData(VirtualFile folder) {
try {
VirtualFile data = folder.createChildDirectory(folder, "data");
VirtualFile sources = data.createChildDirectory(data, "sources");
createDataSource(sources, "local");
createDataSource(sources, "server");
} catch (IOException e) {
e.printStackTrace();
}
}
示例2: createDataSource
import com.intellij.openapi.vfs.VirtualFile; //导入方法依赖的package包/类
private void createDataSource(VirtualFile folder, String name) {
try {
VirtualFile datasource = folder.createChildDirectory(folder, name);
datasource.createChildDirectory(datasource, "models");
datasource.createChildDirectory(datasource, "mappers");
} catch (IOException e) {
e.printStackTrace();
}
}
示例3: createDomain
import com.intellij.openapi.vfs.VirtualFile; //导入方法依赖的package包/类
private void createDomain(VirtualFile folder) {
try {
VirtualFile domain = folder.createChildDirectory(folder, "domain");
domain.createChildDirectory(domain, "models");
domain.createChildDirectory(domain, "usecase");
} catch (IOException e) {
e.printStackTrace();
}
}
示例4: createPresentation
import com.intellij.openapi.vfs.VirtualFile; //导入方法依赖的package包/类
private void createPresentation(VirtualFile folder) {
try {
VirtualFile presentation = folder.createChildDirectory(folder, "presentation");
presentation.createChildDirectory(presentation, "models");
presentation.createChildDirectory(presentation, "mappers");
presentation.createChildDirectory(presentation, "features");
} catch (IOException e) {
e.printStackTrace();
}
}