Platform来获取一些系统的路径和参数
来源:互联网 发布:汽车修理app软件 编辑:程序博客网 时间:2024/06/06 00:19
在Eclipse的插件开发中,可以通过Platform来获取一些系统的路径和参数。
假定Eclipse的安装路径为:D:/Java/eclipse
创建的Workspace路径为:D:/Java/eclipse/workspace
Platform.getNL():zh_CN
Platform.getWS():win32
Platform.getOS():win32
Platform.getOSArch():x86
Platform.getStateStamp():155
Platform.getUserLocation().getURL():file:/D:/Profiles/windowsloginname/user/
Platform.getInstallLocation().getURL():file:/d:/Java/eclipse/
Platform.getConfigurationLocation().getURL():file:/d:/Java/eclipse/configuration/
Platform.getInstanceLocation().getURL():file:/D:/Java/eclipse/workspace/
Platform.getLocation():D:/Java/eclipse/workspace
Platform.getLocation().toOSString():D:/Java/eclipse/workspace
Platform.getLogFileLocation():D:/Java/eclipse/workspace/.metadata/.log
Platform.getLogFileLocation().toOSString():D:/Java/eclipse/workspace/.metadata/.log
Platform.getPluginStateLocation(Platform.getPlugin(“NamedPlugin”)):D:/Java/eclipse/workspace/.metadata/.plugins/NamedPlugin
Platform.getPlugin(“NamedPlugin”).getStateLocation():D:/Java/eclipse/workspace/.metadata/.plugins/NamedPlugin
Platform.getPlugin(“NamedPlugin”).getDescriptor():NamedPlugin_1.0.0
Platform.getPlugin(“NamedPlugin”).getDescriptor().getLabel():Plug-in Name
Platform.getPlugin(“NamedPlugin”).getDescriptor().getProviderName():ProviderName
Platform.getPlugin(“NamedPlugin”).getDescriptor().getUniqueIdentifier():NamedPlugin
Platform.getPlugin(“NamedPlugin”).getDescriptor().getInstallURL():platform:/plugin/NamedPlugin_1.0.0/
Platform.getPlugin(“NamedPlugin”).getDescriptor().getInstallURL().getPath():/plugin/NamedPlugin_1.0.0/
原出处:http://www.blogjava.net/Steven-bot/archive/2011/10/25/361973.html
- Platform来获取一些系统的路径和参数
- Platform来获取一些系统的路径和参数
- Platform来获取一些系统的路径和参数
- Platform来获取一些系统的路径和参数
- air获取系统一些位置的路径
- 获取JAVA系统的一些常用参数
- 获取当前文件的路径和参数
- 路径参数函数:路径的获取(GetModuleFileName)和拆分(_splitpath)
- struts2 一些参数的传递和获取
- android 获取一些系统指定路径的方法整理
- 根据指定的图像路径和大小来获取缩略图
- 获取路径的参数值
- java获取的一些路径
- 【转】ASPX和HTML获取系统根目录的路径
- 获取系统路径的方法
- 获取指定的系统路径
- linux系统的网络设置的方法和一些参数
- Oracle系统管理和系统资料获取的一些基本命令
- 遍历List集合的三种方法
- git的客户端sourcetree的安装问题
- 关于java的绝对路径和相对路径问题
- android 开发中常用的第三方库(图片加载篇——Glide)
- js 处理接收到的数据
- Platform来获取一些系统的路径和参数
- Spring Cloud构建微服务架构:服务网关(过滤器)【Dalston版】
- 让js中数据类型所有的方法都通用起来
- Hikaricp源码解读(2)——配置介绍及对应源码
- vue-cli入门(一)——项目结构
- firefly rk3399内核编译命令
- IOS CoreText系列四:图文混排之点击事件
- NOJ(1541)-分支限界-加1乘2平方
- 三子棋