简体   繁体   English

具有基于Eclipse的简单帮助文档的Java swing应用程序(无RCP应用程序)

[英]Java swing application with simple help documentation based on eclipse (no RCP application)

I developed a Java Swing application using Eclipse. 我使用Eclipse开发了Java Swing应用程序。 I would like to integrate the existing help documentation into my GUI. 我想将现有的帮助文档集成到我的GUI中。 Basically I want to start my help window with a typical menu item as common for most programs. 基本上,我想从大多数程序中常见的典型菜单项开始帮助窗口。 So nothing fancy at all. 所以根本没有幻想。

I spent already a lot time to find which option would be best for my case and I'm kind of stuck. 我已经花了很多时间来寻找最适合我的情况的选择,而且我有些困惑。 I thought integrating the help would be straight forward but meanwhile I think this is not the case. 我认为整合帮助将是直接的,但与此同时,我认为并非如此。

If anyone can point me in the right direction or show me a tutorial where I can get the idea how to accomplish it with eclipse help and a swing application I would be really happy. 如果有人可以向我指出正确的方向,或者给我看一个教程,我可以从中获得有关如何使用Eclipse帮助和swing应用程序完成操作的想法,我将非常高兴。 I find a lot of tutorial discussing RCP applications or writing an eclipse plugin. 我发现很多教程讨论RCP应用程序或编写eclipse插件。 Somehow I tried a lot for such an easy usecase. 对于这样一个简单的用例,我莫名其妙地尝试了很多。

The following options are available as far as I can tell: 据我所知,以下选项可用:

1. Eclipse like help My favorite option would be to use an eclipse like help window but after playing around a bit I have the slight feeling that this is only possible for eclipse RCP applications. 1. Eclipse之类的帮助我最喜欢的选择是使用eclipse之类的帮助窗口,但是经过一番尝试之后,我略有感觉,这仅适用于Eclipse RCP应用程序。 Since my Swing GUI is not a RCP application I think that wont work for me. 由于我的Swing GUI不是RCP应用程序,所以我认为这对我不起作用。

Is it possible to integrate the Eclipse help with only my help content into my Swing application? 是否可以将仅带有帮助内容的Eclipse帮助集成到Swing应用程序中? Eclipse won't be installed on the PCs where my application is used. Eclipse将不会安装在使用我的应用程序的PC上。

Most probably those PCs are not even connected to the internet, so using the Eclipse help in info center mode is also not an option. 很有可能这些PC甚至都没有连接到Internet,因此也不可在信息中心模式下使用Eclipse帮助。

Using the eclipse help in standalone mode requires to specify the eclipse installation directory when launching it. 在独立模式下使用Eclipse帮助需要在启动时指定Eclipse安装目录。 That's where I'm stuck. 那就是我被困住的地方。

2. Java help or Oracle help Java Using these options is my next call also not my favorite one. 2. Java帮助或Oracle帮助Java使用这些选项是我的下一个电话,而不是我最喜欢的电话。 I think both options are kind of outdated. 我认为这两种选择都有些过时。

For Java help I would probably follow the Docbook approach. 对于Java帮助,我可能会遵循Docbook方法。 Even if I don't understand why this is so complicated at all... 即使我根本不明白为什么这么复杂...

3. Custom panel I'm almost close to design a customized panel to display my help content. 3.自定义面板我几乎要设计一个自定义面板来显示我的帮助内容。 Then I'm at least able to make sure that I like the way it is designed. 然后,至少可以确保我喜欢它的设计方式。

In the beginning I thought this might be more time consuming, but after reading what effort is necessary to get a nice looking help with Java help I think this option is not the worst choice. 一开始我以为这可能会比较耗时,但是在阅读了获得Java帮助漂亮外观帮助所需的工作之后,我认为此选项并不是最糟糕的选择。

Thanks Joe 谢谢乔

My solution for now is to create the complete help system with HelpNDoc and then simply generate the HTML documentation. 我现在的解决方案是使用HelpNDoc创建完整的帮助系统,然后简单地生成HTML文档。

The HTML document I will open from my swing GUI. 我将从自己的swing GUI打开HTML文档。

I also tried the CHTML but to be honest I like the look (which can be nicely configured) int the browser more. 我也尝试过CHTML,但老实说,我更喜欢浏览器的外观(可以很好地配置)。

Windows Help looks also too outdated to me. Windows帮助在我看来也太过时了。 But that's just my personal opinion. 但这只是我个人的看法。

Right now this is the right solution for me and my energy will go into the help itself. 现在,这对我来说是正确的解决方案,我的精力将投入帮助本身。

Thanks to everyone. 谢谢大家。

Joe

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

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