RCP开发中几个常用路径的了解
来源:互联网 发布:人工智能遗传算法 编辑:程序博客网 时间:2024/04/28 09:56
一.Configuration Location
//未导出产品时,位于<工程目录>/.metadata/.plugins/org.eclipse.pde.core/<plugin-id>.product/
//配置文件路径,导出产品后(RCP),位于程序根目录下的configuration下面
File configDir = new File(FileLocator.toFileURL(Platform.getConfigurationLocation().getURL()).getFile());
应用:
File configDir = new File(FileLocator.toFileURL(Platform.getConfigurationLocation().getURL()).getFile());
File themesDir = new File(configStr, "themes");
二.instance location
String instanceDir = Platform.getInstanceLocation().getURL().getFile();
System.out.println("instanceDir: " +instanceDir);
logger.info("instanceDir: " + instanceDir);
未导出产品时,位于<工程目录>/runtime-<plugin-id>.product目录下
导出产品后,位于"程序根目录"下的workspace下面
三.install location
String programRootDir = Platform.getInstallLocation().getURL().getFile();
System.out.println("programRootDir: " +programRootDir);
logger.info("programRootDir: " + programRootDir);
未导出产品时,是当前所用的eclipse的根目录
导出产品后,是应用程序(rcp程序)的根目录
- RCP开发中几个常用路径的了解
- RCP开发中几个常用路径的了解
- IOS开发中常用的几个路径
- Eclipse RCP 插件开发中经常调用的几个方法
- Eclipse RCP 插件开发中经常调用的几个方法
- ubuntu中lamp几个常用的路径
- Eclipse开发:了解RCP应用的实现
- (转)Eclipse RCP 插件开发中经常调用的几个方法
- Eclipse RCP 插件开发中经常调用的几个方法(转载)
- 开发中常用的几个时间函数
- iOS开发中常用的几个插件
- JSP中与路径相关的常用的几个方法
- JSP中与路径相关的常用的几个方法
- JSP中与路径相关的常用的几个方法
- JSP中与路径相关的常用的几个方法
- RCP开发中,点位符的巧妙运用
- Eclipse rcp 开发中常用快捷键和相关功能
- 从插件/RCP中取得文件路径的方法
- svn:更改user/pswd
- SWT:底层事件与高级事件的联系
- transient与volatile温故而知新
- 鼠标的左右键,滚轮在MouseEvent中代表的button值
- 报表制作工具图例展示之各类型报表图
- RCP开发中几个常用路径的了解
- 正版化的背后
- 周鸿祎:怎样才能成为一个优秀的产品经理?
- java.lang.SecurityException异常
- 09年就成功在mplayer中,加入s3c6410硬解码的牛人。
- LKD 3rd 读书笔记——开篇语
- Chrome线程模型(编译)
- 【zz】H.264开源解码器评测
- bashrc与bash_profile