How to open a file
来源:互联网 发布:linux 删除空文件夹 编辑:程序博客网 时间:2024/04/29 10:20
Path path = new Path("sample1-test\\StandardDataDict.xml");
//Path path = new Path("qqq\\plugin.xml");
IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
System.out.println(ResourcesPlugin.getWorkspace().getRoot().getLocation());
// IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("sample1-test");
// try {
// project.create(null);
// project.open(null);
// } catch (CoreException e1) {
// // TODO Auto-generated catch block
// e1.printStackTrace();
// }
System.out.println(ResourcesPlugin.getWorkspace().getRoot().getFullPath());
getViewSite().getPage().openEditor(new FileEditorInput(file), "ppp.editors.XMLEditor");
//Path path = new Path("qqq\\plugin.xml");
IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
System.out.println(ResourcesPlugin.getWorkspace().getRoot().getLocation());
// IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("sample1-test");
// try {
// project.create(null);
// project.open(null);
// } catch (CoreException e1) {
// // TODO Auto-generated catch block
// e1.printStackTrace();
// }
System.out.println(ResourcesPlugin.getWorkspace().getRoot().getFullPath());
getViewSite().getPage().openEditor(new FileEditorInput(file), "ppp.editors.XMLEditor");
- How to open a file
- How to Open a Text File in VB .NET
- How to open and sort a CSV file with Ruby
- How to open a large text file on Linux
- How to open a JFrame
- How to open the .bin file
- How to open/read/write a local file from an applet
- How to add a .dll file ?
- how to test a file 's existence
- how to make a JAR file
- how to create a sln file
- [DirectShow] 002 - How To Play a File
- How to create a PDF file, cheaply?
- How to play a video file?
- DirectShow - How To Play a File(Windows)
- How to Create a WordPress WXR File
- How to Run a .Jar Java File
- How to create a sysfs file node
- winApi一日一练之 CreateSolidBrush(和FillRect)
- ASCI编码
- Inno Setup入门(二十一)——Inno Setup类参考(7)
- Inno Setup入门(二十)——Inno Setup类参考(6)
- linux下使用现有目录创建文件系统
- How to open a file
- extjs grid 不显示表头
- 原来Dev C++ 还有人在维护,目前最新5.0.0.4
- 自制VirtualBox + Moosefs系统的记录
- Gcc ubuntu
- VLAN 映射
- Unicode Ascii编码问题
- RFID在零售业中的应用
- BigDecimal 运用示例 与 DecimalFormat