问题标签 [eclipse-rcp]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
4763 浏览

java - 获取 IStructuredSelection (eclipse-rcp) 的父级?

我在视图中有一个 TreeViewer,需要获取所选项目的父项(如果存在)。似乎没有任何效果,谷歌没有给出任何答案..

0 投票
1 回答
281 浏览

java - Strange problem with imports in Java Application

I'm building a plugin to extend the Eclipse BPEL Designer. That plugin is supposed to allow users to add meta information to certain model elements via EAnnotations. I already did the same thing for a BPMN model and it work just finde but when doing this for the BPEL designer I reveive rather strange exceptions. The first I thing realized when trying to extend the BPEL Designer was that the designers plugins are defined in an unusual package structure. Instead of org.eclipse.bpel.xxx they have a "bin" in front of all package names. When I'm trying to import some of the designers classes I therefore have to refernce the bin path to make it work. However all the examples I was able to find just imported classes from the ordinary package structure.

Most of the time importing classes with the bin in front of the package name worked fine for me but every now and then I receive a strange error message. The message is in the form of: The type org.eclipse.bpel.xxx cannot be resolved. It is indirectly referenced from required .class files It seems that Eclipse somehow can't find certain classes. I'm stuck at this point for over a week now and don't find any solution. From my point of view the problem has to be seen in the BPEL Designer plugins. Inside those plugins they reference classes in the form of org.eclipse.bpel.xxx but as I said when I reference those plugins their classes are inside packages with a "bin" in front of the normal package name. Could that be an explanation why certain classes can't be referenced by Eclipse and I get those strange error messages?

I'd appreciate any new ideas about that problem and hope that somwebody can give me an advice to solve that problem.

Cheers Stefan

0 投票
3 回答
4893 浏览

eclipse - 如何以编程方式调整 Eclipse ViewPart 的大小?

我有一个使用常规插件扩展点创建的 ViewPart,其比例定义了它的高度。稍后,我有一段代码为 ViewPart 的 Canvas 添加了更多内容。除非用户拖动 ViewPart 的边缘使其变大,否则不会显示新项目。有没有办法以编程方式告诉 ViewPart 调整自身大小以匹配其当前内容或我指定的值?

0 投票
1 回答
319 浏览

eclipse - 切换到 Windows 经典主题组合时,贡献项缩小

IToolbarManager 确实有问题。我添加了一个像这样的视图的组合和微调器 ot 工具栏

在 Windows XP/Vista 主题中,此微调器正确显示。但是当程序在 windows 经典主题下运行时,微调器会缩小并且无法正确显示。

这是一个已知问题吗?您知道任何解决方法/补丁吗?

谢谢吉乔伊

0 投票
4 回答
5682 浏览

eclipse - 如何在 Eclipse 中制作只读编辑器(Eclipse 插件开发)

我想知道如何制作一个真正只读的 Eclipse 编辑器。我的编辑器扩展了TextEditor,所以当我重新实现方法时isEditable总是返回false

这是最简单的方法,它可以防止用户在编辑器中打开的文档中键入或删除任何内容。但是您仍然可以更改文档的内容,例如使用查找/替换。这是不希望的..

有没有其他简单的方法来实现这个目标?

0 投票
4 回答
36899 浏览

java - 查看类依赖图插件?

是否有任何我可以用于 Eclipse 的插件来显示类依赖项的图形视图?

0 投票
1 回答
556 浏览

drag-and-drop - 在 View 和 Editor 中定义 DropTarget 有区别吗?

代码是:

它在视图中正常工作,但在编辑器中失败。有什么不同?
upd:最奇怪的是——如果我用 try/catch 块包围它,它仍然毫无例外地失败。
编辑:问题不仅仅是 DnD 不起作用。由于这个块,整个编辑器无法实例化。只出现一个空窗口。

0 投票
1 回答
389 浏览

syntax-highlighting - 我可以合并语法着色和折叠吗?或从主文档信息着色的投影

例子。我有一个 XML 文档:

我希望它呈现为

region1的文本 region2
的 一些简单文本

据我所知,基本的 Eclipse 着色工作独立于折叠。但我需要根据 xml 信息对文本进行着色。或者也许我需要其他东西,而不是折叠?只操作 StyledText 可能更容易,但我需要其他 Eclipse 编辑器功能才能继续工作。

=========
更新:还是没有建议?至少有可能吗?
我看过投影,但是......是否可以从编辑器的这个分支直接访问文本属性?
upd:也许至少有一些关于自定义投影的想法/文章?

0 投票
3 回答
2035 浏览

eclipse - Eclipse RCP/ Plug-in Question

I have an RCP application (referred to as RCP-APP). I have created a new plug-in (referred to as plug-in A) that wraps a media player api (.jar file) and a folder of C libraries (dlls) that the media player api accesses via JNA. I then created another plugin (referred to as plug-in B) that contains a media player application that depends on Plug-in A.

When plug-in B is activated I get the following error messages informing me that Plug-in B cannot find the media player .dlls it is looking for:

How do I inform Plug-in B (or the RCP-APP) that the .dlls are in a specific folder in Plug-in A?

It appears that the api expects to find the .dlls via it's environment PATH variable.

How can I essentially communicate "plug-in A/Folder-Name"?

Thanks for your assistance.

0 投票
2 回答
17212 浏览

eclipse-plugin - Eclipse RCP 缺少约束/捆绑错误

当我尝试从 Eclipse 中执行我的 RCP 应用程序时,我收到以下错误消息:

有人可以告诉我如何解决这个问题吗?