Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » javahelp(implementing using eclipse)
javahelp [message #1489737] Thu, 27 November 2014 16:40 Go to next message
Nigel Hoath is currently offline Nigel HoathFriend
Messages: 11
Registered: July 2013
Location: UK
Junior Member
Hi. I've created a java gui app using Eclipse and SWT.

I have a help plugin with some nice toc, xml and html files to display a contents page and some specific help for my application.

I want the help to be part of my application for stand alone distribution. But try as I might I cannot find clear (as for a beginner like me lol) documentation that shows me how to call the help from a menu in my base application and so far after many attempts no success.

Can anyone point me at a tutorial, book, whatever that can lead me through this? I'm using eclipse mars and SWT. My development platform is windows 7 although doubt that matters. Much appreciate any guidance.


Nigel Hoath, Automated Performance tester

[Updated on: Thu, 27 November 2014 16:41]

Report message to a moderator

Re: javahelp [message #1491844 is a reply to message #1489737] Sat, 29 November 2014 09:35 Go to previous messageGo to next message
Nigel Hoath is currently offline Nigel HoathFriend
Messages: 11
Registered: July 2013
Location: UK
Junior Member
A bit more detail to see if that helps:

My standalone GUI has a menu.

Menu viewMenu6 = new Menu(helpItem);
        helpItem.setMenu(viewMenu6);
        MenuItem about = new MenuItem(viewMenu6, SWT.NONE);
        about.setText("About ......");
        MenuItem preferences = new MenuItem(viewMenu6, SWT.NONE);
        preferences.setText("Preferences");
        MenuItem help_content = new MenuItem(viewMenu6, SWT.NONE);
        help_content.setText("Help Contents");



I also have an Eclipse plugin:

org.eclipse.swt.win32.win32.x86   // The SWT 
PWB                                                 // My GUI application
PWBhelp                                            // Help Plug in
    JRE System Library
    Plug in dependancies
    srccode
    html
        maintopic.html
        subtopic.html
        toc.html
    META_INF
    build properties
    plugin.xml
    testToc.xml
    toc.xml



I need the code that goes in the menu listener:

help_content.addSelectionListener(new SelectionAdapter() {
    @Override
    public void widgetSelected(SelectionEvent e) {
 
????????????????????
 
    }
});



But in truth I want to find documentation, tutorial, discussion on including the help. Although I guess if I had something that worked I could build on that. I have no trouble creating the help plug in.

All I find is details on constructing help but no good examples of help inclusion.

Any thoughts most welcome.


Nigel Hoath, Automated Performance tester
Re: javahelp [message #1491906 is a reply to message #1491844] Sat, 29 November 2014 10:47 Go to previous messageGo to next message
eman khalid is currently offline eman khalidFriend
Messages: 1
Registered: November 2014
Junior Member

hello i need answers for this :



2. Consider the following class
public class Penguin extends Birds {
public static void main(String[] args) {
Penguin p = new Penguin();
System.out.println("Can swim");
System.out.println("this" + " is the output\n" + p);
}
public Penguin() {
this(5);
}
public Penguin(double m) {
System.out.println("Not a fish");
}
public String toString() {
return "Are u sure";
}
}

class Birds extends Animal {
public Birds() {
System.out.println("The main habits is flying");
}
}
class Animal {
public Animal() {
System.out.println("Animals types");
}
}
a) What is the relation between Penguin class and Birds class?
b) Identify the superclass and subclass.
c) What is the output?
Re: javahelp [message #1491971 is a reply to message #1489737] Sat, 29 November 2014 12:02 Go to previous messageGo to next message
Nigel Hoath is currently offline Nigel HoathFriend
Messages: 11
Registered: July 2013
Location: UK
Junior Member
Sorry duplication

Nigel Hoath, Automated Performance tester

[Updated on: Sat, 29 November 2014 12:21]

Report message to a moderator

Re: javahelp [message #1492956 is a reply to message #1491906] Sun, 30 November 2014 08:08 Go to previous message
Nigel Hoath is currently offline Nigel HoathFriend
Messages: 11
Registered: July 2013
Location: UK
Junior Member
Eman many thanks for your time and thoughts. But not sure how it helps me so maybe I'm missing something fundamental here.

I have a fully working help plugin. I can run an Eclipse IDE and access all my help through the Eclipse help menu and help system.

All I want to do is package the plugin in my standalone application jar file - the help called from my application menu.

I have read and studied dozens of tutorials that show you how to do what I already have.

However I can find no examples of using my plugin external to Eclipse. I see people referencing it but no examples. Normally that means it is not a good idea and maybe I'm barking up the wrong tree.

Or more likely I'm missing something very simple.

I'll give it a couple more days and if not I'll have to convert my C++ help system to Java.







Nigel Hoath, Automated Performance tester
Previous Topic:File lock on redeploy (windows)
Next Topic:how to generate xmi file
Goto Forum:
  


Current Time: Fri Apr 26 18:05:23 GMT 2024

Powered by FUDForum. Page generated in 0.08059 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top