需要 org.eclipse.jface 用于 Eclipse 插件 (Eclipse Profiler)

发布于 2024-11-24 14:08:01 字数 737 浏览 2 评论 0原文

下午好——

在阅读了本网站上有关优秀分析工具的大量帖子之后,并且在寻找能够生成调用图的工具后,我发现 Eclipse Profiler 能够很好地满足我的需求。

但是,当我尝试运行该程序(创建新配置文件)时,我收到有关 org.eclipse.jface 的错误,我相信该错误是因为我没有该包(或者在至少,我在我的电脑上找不到它)。我昨晚搜索了几个小时,看到了很多关于 USING jface 的参考,但一直找不到可以获取它的位置。

这是错误: 从插件调用代码时出现问题:“org.eclipse.jface”。

我没有包含整个堆栈跟踪,因为我不确定它会有什么好处。这是 Eclipse 提供的环境信息:

  • eclipse.buildId=M20110210-1200
  • java.version=1.6.0_18
  • java.vendor=Sun Microsystems Inc.
  • BootLoader 常量: OS=win32、ARCH=x86_64、WS=win32、NL=en_US
  • 框架参数:-product org.eclipse.epp.package.modeling.product
  • 命令行参数:-os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.modeling.product

任何见解表示赞赏。 克里斯汀

Good afternoon--

After reading a lot of posts on this site about a good profile tool, and in my search for something that will produce a Call Graph, I have found the Eclipse Profiler will meet my needs nicely.

However, when I try to run the program (create a new profile), I get an error regarding org.eclipse.jface, which I believe is erroring out because I do not have that package (or at least, I cannot find it on my computer). I searched for several hours last night, and see lots of references to USING jface, but have been able to find no location from which to get it.

Here is the error:
Problems occurred when invoking code from plug-in: "org.eclipse.jface".

I am not including the entire stack trace, as I am not sure it would do any good. Here is my environment info as provided by Eclipse:

  • eclipse.buildId=M20110210-1200
  • java.version=1.6.0_18
  • java.vendor=Sun Microsystems Inc.
  • BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
  • Framework arguments: -product org.eclipse.epp.package.modeling.product
  • Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.modeling.product

Any insight is appreciated.
Kristin

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦萦几度 2024-12-01 14:08:01

插件 org.eclipse.jface 在 Eclipse 内部用于显示图形界面(例如列表或树形部件或向导),因此在使用 Eclipse Profiler 时应该可用。但是,您提供的异常可能只是因为某些代码编写不正确而发生,并且在从另一个插件调用方法期间只是引发了异常 - 但是,如果没有堆栈跟踪,我无法验证这一点。

然而,我之前写的所有内容都是基于这样的想法:错误是在 Eclipse 开发环境中抛出的,而不是由执行的程序引发的,该程序由 Eclipse Profiler 检测(需要此检测,因为该工具计算动态调用图:它会记住哪些方法被调用或未被调用)。

如果异常是由您的(检测的)程序引发的,那么我不明白为什么检测的代码依赖于 JFace。我相信,您没有开发 Eclipse 插件,因为在大多数情况下 JFace 插件都可用 - 在独立 Java 应用程序的情况下,这将是一个错误,我建议使用不同的调用图工具。

如果仅在开发期间需要调用图,我建议使用 JDT 的内置调用图工具(在 Java 编辑器中右键单击方法并选择“打开调用层次结构”时可用 - 或默认快捷键是 Ctrl+Alt+H) 。

The plug-in org.eclipse.jface is used inside Eclipse for displaying graphical interfaces (e.g. lists or tree widgets or wizards), so it should be available when using the Eclipse Profiler. However, the exception you provided could simply happen because some code is written incorrectly and during method invocation from another plug-in simply an exception is thrown - however, I cannot verify this without the stack trace.

However, everything I have written before is based on the idea that the error is thrown in the Eclipse development environment and not by the executed program, that is instrumented by the Eclipse Profiler (this instrumentation is needed, as the tool calculates dynamic call graphs: it remembers which methods are called or not).

If the exception is thrown by your (instrumented) program, then I don't understand why does the instrumented code depend on JFace. I believe, you are not developing an Eclipse plug-in, because then in most case the JFace plug-ins are available - in case of standalone Java application this would be more of an error, and I'd suggest using a different call graph tool.

If the call graphs are needed only during development, I suggest using JDT's built-in call graph tool (available when right clicking a method in the Java editor and selecting Open Call Hierarchy - or the default short-cut is Ctrl+Alt+H).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文