如何获取eclipse .classpath classpathentry的值 [英] how to get value of eclipse .classpath classpathentry

查看:92
本文介绍了如何获取eclipse .classpath classpathentry的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一些eclipse插件,它将为BlackBerry开发人员做一些工作.

I am writing some eclipse plugin that will do some work for BlackBerry developers.

这是我的BB项目的.classpath文件条目:

This is the .classpath file entry of my BB project:

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/net.rim.ejde.BlackBerryVMInstallType/BlackBerry JRE 5.0.0"/> 

使用此信息是否有可能(以编程方式)找到rim插件在磁盘上的确切位置?

Using this information is it possible (programmatically) to find out the exact location of the rim plugin on the disk ?

就我而言,我正在寻找以下通行证:D:\ WORK \ eclipse-java-galileo-SR2-win32 \ eclipse \ plugins \ net.rim.ejde.componentpack5.0.0_5.0.0.25

In my case I am looking for the following pass: D:\WORK\eclipse-java-galileo-SR2-win32\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25

但是我需要从我的Eclipse插件Java代码中找到密码.

But I need to find the pass from my Eclipse Plugin java code.

我的第二个问题是我如何从BlackBerry项目的代码.classpath文件获取.

My second question is how can i get from code .classpath file of my BlackBerry project.

关于,斯拉维克.

推荐答案

您可以从IJavaProject中获得类路径条目,可以从IProject中获得如下所示的条目:

You can get the classpath entries from your IJavaProject, which you can get from your IProject something like this:

IJavaProject javaProject = (IJavaProject) JavaCore.create(project);  

这篇关于如何获取eclipse .classpath classpathentry的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆