eclipse 插件项目
InternalPlatform
在org.eclipse.core.internal.runtime
包下,该类提供了很多基础有用的工具。
- 获取插件安装路径
Location location = InternalPlatform.getDefault().getInstallLocation();
URL url = InternalPlatform.getDefault().getInstallURL();
- 获取启动参数
String[] args = InternalPlatform.getDefault().getApplicationArgs();
- 获取系统信息
String os = InternalPlatform.getDefault().getOS();
String osArch = InternalPlatform.getDefault().getOSArch();
相关的工具类
CommandLineArgs
Platform