简体   繁体   English

如何从Eclipse插件中的HTML超链接打开RCP /帮助窗口

[英]How to open a RCP/Help Window from a Html hyperlink in Eclipse Plug-in

Suppose I have a html opened in a Browser. 假设我在浏览器中打开了一个html。 Now in that HTML file , I've a hyperlink and On clicking on that hyperlink, I want to open the Eclipse Help Window. 现在在该HTML文件中,我有一个超链接,单击该超链接后,我想打开Eclipse帮助窗口。

Same as Like 与赞一样

Eclipse>Welcome>What's New>Plug-in Development Environment Eclipse> Welcome>新增功能>插件开发环境

I know the above is using an intro extension, but I am using a view to display the html. 我知道上面使用的是Intro扩展名,但是我使用的是视图来显示html。 Now please show me a way to achieve the target. 现在,请告诉我实现目标的方法。

The welcome screen and a lot of other places where hyperlinks appear in Eclipse UI aren't implemented using Browser widget, but rather using the FormText widget. 欢迎屏幕以及在Eclipse UI中出现超链接的许多其他地方不是使用浏览器小部件来实现的,而是使用FormText小部件来实现的。 The FormText widget supports limited markup, including hyperlink rendering. FormText小部件支持有限的标记,包括超链接渲染。 You control behavior of the hyperlink. 您可以控制超链接的行为。

This article covers the use of FormText control: 本文介绍了FormText控件的使用:

http://www.eclipse.org/articles/Article-Forms/article.html http://www.eclipse.org/articles/Article-Forms/article.html

It may be possible to achieve what you are after using an actual Browser control, but if your scenario doesn't call for tricky formats, it will definitely be easier using FormText. 使用实际的Browser控件后,可能会实现所需的功能,但是如果您的方案不要求使用棘手的格式,则使用FormText绝对会更容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM