问题标签 [eclipse-plugin]

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 回答
1721 浏览

eclipse - 学习 Eclipse RCP 的最佳方式是什么?只有我感觉不一样吗?

我习惯于结构化编程(例如:C)、OO 编程(例如:Java)、脚本(例如:Javascript)、Web(例如:HTML、JSP、Servlets、CSS)等。

现在,当我开始使用 Eclipse RCP 插件开发时,整个事情在编程方面给我一种奇怪的感觉。Eclipse RCP 开发的方式与我上面提到的其他语言完全不同,老实说,我不太喜欢这个事实。

只有我有这种感觉吗?

您还有什么建议可以让我更好地过渡到 Eclipse RCP 生活?(如果感觉更好的话)。

PS:这个帖子我已经看过了,教程,就是想知道如果别人的开发背景和我一样,会有什么感受!

0 投票
2 回答
8146 浏览

java - 如何从插件编写到 Eclipse 控制台的超链接

我想将文件的位置作为超链接写入 Eclipse 控制台。当您单击它时,它应该在 eclipse 中打开该文件。我目前正在做这样的事情(但链接不显示)

我可能不应该为偏移量、文件长度参数等传入 0。

任何帮助表示赞赏。

0 投票
1 回答
1357 浏览

eclipse - 在eclipse中监听插件事件

我正在研究 Eclipse ide。我想知道在一个插件上执行的操作如何被其他插件监听,以便它们也可以处理相同的事件。

有什么事请回复...

0 投票
2 回答
1138 浏览

eclipse-plugin - 如何在 Eclipse 中侦听 File>New>Project 事件

我正在创建一个 Eclipse 插件,当用户选择 File > New > Project 时,它应该监听并处理生成的事件。

我该怎么做?

0 投票
3 回答
792 浏览

java - Eclipse 插件 - 类对象

我正在创建一个 Eclipse 插件,我需要所选文件的 Class 对象,而不是 IType。有可能吗,最好的方法是什么?

编辑:当我想到它时,最好的方法是像 run as 一样添加它(就像 junit、profiler 或其他插件正在做的那样)。我想他们必须有权访问 Class (如果 X 是有问题的类),因为他们正在运行它的功能。那么如何创建具有“运行方式”操作的插件并获取活动对象?

0 投票
1 回答
10418 浏览

eclipse-plugin - Eclipse RCP:编辑器加载后如何显示消息对话框?

我在单击树节点时从视图中打开编辑器。现在,当编辑器加载和控件显示给用户时,我想根据编辑器上存在的某些值向用户显示一个警告消息对话框。

我尝试将警告对话框放在编辑器的 createPartControl 方法的末尾。根据所需功能双击树节点时出现对话框。但是,问题是当对话框出现时,编辑器上的控件还不可见。只有当我关闭对话框时才会显示编辑器控件。

我希望它反过来发生。即首先显示编辑器控件,然后出现警告对话框。我应该做些什么改变才能达到这个效果?

0 投票
3 回答
872 浏览

java - 如何编译和运行相互依赖的插件 jars

我必须将两个 eclipse-plugin 项目构建到两个单独的 jar 中,每个 jar 都依赖于另一个进行编译。Eclipse IDE 抱怨“循环依赖...”。如何构建这些插件 jar?我想通过将它们放在 eclipse/plugin 文件夹中运行这些插件应该很顺利。

0 投票
1 回答
134 浏览

eclipse-plugin - Eclipse RCP: Is it possible to shift the fields up without redrawing?

In my editor, I have a composite containing a label control right at the top which flashes informative message in red colour whenever the user enters erroneous inputs in any of the below lying fields. The text keeps changing dynamically depending on user's input. I am able to achieve the effect of displaying red coloured text on erroneous inputs and displaying nothing in the label for correct inputs.

But, I want that when there is no error to display in the label composite, the rest of the below fields shift up in display. And when there is error to display, the error should appear in it's place(at the top of all other fields) pushing the other fields down.

Is there a way to achieve this effect without redrawing all the controls again?

0 投票
2 回答
5546 浏览

eclipse - 在 Eclipse 插件的 plugin.xml 中外部化字符串

如何在我的 Eclipse 插件的 plugin.xml 中外部化字符串?

右键单击插件项目 > PDE 工具 > 外部化字符串不会显示我的插件。

我现在正在尝试手动执行此操作。我在 plugin.properties 中添加了条目,并将 plugin.xml 中的等效字符串替换为 % 符号,后跟字符串键。但这似乎不起作用。我在这里想念什么?

0 投票
0 回答
2973 浏览

eclipse - 如何调试 Eclipse 插件错误“插件无法加载类”?

它正在尝试从调试对话框加载我的 TabGroup,但我收到无法加载我的选项卡组类的错误。

在错误的“详细信息”中,它所说的只是:

“org/eclipse/debug/ui/AbstractLaunchConfigurationTabGroup”

这是我的 TabGroup 扩展的类。