Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ua-dev] accessing embedded browser in an RCP help app

Just what the doctor ordered - Thanks Adam!

Todd Lee
Software Tools
AMI Semiconductor
Tel:  +1.519.884.9696 ext 2242
Fax: +1.519.884.0228
E-mail: todd_lee@xxxxxxxx


                                                                           
             Adam Archer                                                   
             <agarcher@xxxxxx.                                             
             com>                                                       To 
             Sent by:                  "Eclipse Platform User Assistance   
             platform-ua-dev-b         component developers list."         
             ounces@xxxxxxxxxx         <platform-ua-dev@xxxxxxxxxxx>       
             g                                                          cc 
                                                                           
                                                                   Subject 
             06/15/2007 02:08          Re: [platform-ua-dev] accessing     
             PM                        embedded browser in an RCP help app 
                                                                           
                                                                           
             Please respond to                                             
             "Eclipse Platform                                             
              User Assistance                                              
                 component                                                 
             developers list."                                             
             <platform-ua-dev@                                             
               eclipse.org>                                                
                                                                           
                                                                           





Hi Todd,

You will need to connect to the eclipse CVS server and download the help
code. Once you make the required changes, you can export your modified
plug-in and drop it into your plugins folder (make sure to remove the old
one too).

You can connect to the CVS server with the following information:

Host: dev.eclipse.org
Repository Path: /cvsroot/eclipse
User: anonymous
(no password)
Connection Type: pserver
(use the default port)

The EmbeddedBrowser code that the bug suggests hacking is in the
org.eclipse.help.ui plug-in.

For more information on using eclipse CVS, see the following link:

http://wiki.eclipse.org/index.php/CVS_Howto

If you want to make a patch for us to take a look at you can right click
the plug-in you changed in your workbench and select Team -> Create patch.
This will make a file that lists the differences between your code and the
code on CVS. Then upload the .txt file to the bug.

Hope this helps!

Adam Archer
Eclipse Developer
IBM Toronto Lab

                                                                           
 Todd_Lee@xxxxxxxx                                                         
 Sent by:                                                                  
 platform-ua-dev-bounces@xxxxxxxxxxx                                    To 
                                            "Eclipse Platform User         
                                            Assistance component           
 06/15/2007 01:54 PM                        developers list."              
                                            <platform-ua-dev@xxxxxxxxxxx>  
                                                                        cc 
           Please respond to                                               
   "Eclipse Platform User Assistance                               Subject 
      component developers list."           Re: [platform-ua-dev]          
     <platform-ua-dev@xxxxxxxxxxx>          accessing embedded browser in  
                                            an RCP help app                
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





Thanks for the response Chris,

Yeah, I've put some comments on that bug myself. Regarding Konrad's
suggestion, I was hoping to avoid messing with internals etc.
However, if as you say, there really isn't any way to do it through a
public api then maybe I'll have to take a look at this alternative.

Now, for my total newbie question - apologies in advance... but being
relatively new to the eclipse community, can you tell me how I'd
go about making the changes to internal api's as you're suggesting? Is
there documentation somewhere for this?
Any pointers on "hacking eclipse internal api's for dummies" is greatly
appreciated ;)

Cheers
Todd

Todd Lee
Software Tools
AMI Semiconductor
Tel:  +1.519.884.9696 ext 2242
Fax: +1.519.884.0228
E-mail: todd_lee@xxxxxxxx



            Chris Goldthorpe
            <cgold@xxxxxxxxxx
            >                                                          To
            Sent by:                  "Eclipse Platform User Assistance
            platform-ua-dev-b         component developers list."
            ounces@xxxxxxxxxx         <platform-ua-dev@xxxxxxxxxxx>
            g                                                          cc

                                                                  Subject
            06/15/2007 01:47          Re: [platform-ua-dev] accessing
            PM                        embedded browser in an RCP help app


            Please respond to
            "Eclipse Platform
             User Assistance
                component
            developers list."
            <platform-ua-dev@
              eclipse.org>







Hi Todd,

I noticed some comments in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=57331, comments 3 and 12
suggesting  a way to close the help system. I experimented with this a
little and it appears that it would work as long as the application then
exits after the browser is closed. We don't have any public API for
shutting down the help system or listening to events from the help browser
so to achieve what you want using Eclipse 3.3 you would need to hack the
source code a little and use internal APIs. If you come up with something
that works for you I'd be interested to see a patch of your changes (you
could attach them to the bug). If enough people request a particular
extension to the API we can add it in a future release.

Chris Goldthorpe (member of Platform UA team)



Todd_Lee@xxxxxxxx
Sent by:
platform-ua-dev-bounces@xxxxxxxxxxx                                    To
                                                 platform-ua-dev@eclipse.
                                                 org
06/15/2007 06:22 AM                                                    cc

                                                                  Subject
            Please respond to                    [platform-ua-dev]
    "Eclipse Platform User Assistance            accessing embedded
       component developers list."               browser in an RCP help
      <platform-ua-dev@xxxxxxxxxxx>              app













Hi there,
Wondering if someone here has run into the problem that I'm facing...
We've got an RCP app whose sole purpose is delivery of 'Online Help' via a
CDROM. The entire app is composed of a single plugin (the RCP app) which
depends on all of our existing user.doc plugins.

The RCP app starts up with essentially an empty workbench (we hide the
window, so it appears headless) and simply opens the system help which in
turn loads our doc plugins. ie -

    //start up the help system to display the help content
    IWorkbenchHelpSystem helpSystem;
          helpSystem = PlatformUI.getWorkbench().getHelpSystem();
          helpSystem.displayHelp();

The problem is that, once the help window is opened, and the user
subsequently closes it, the workbench (javaw) process is of course left
running.
Since this is product is delivered pretty much exclusively to windows
users, thus we can be relatively certain that it's going to use the
embedded swt browser, I'm wondering if there's a way to access the embedded
swt browser programmatically to add a window close listener which will
close the workbench as well? The desired result is that I want the action
of closing the help browser window to make the help system exit cleanly.

Anybody got any suggestions? If there's a better way to accomplish what I'm
talking about, feel free to recommend an alternate method - I'm still
getting the feel for eclipse, so I'm sure there's LOTS of places where I've
yet to scratch the surface ;)

Thanks,
Todd


Todd Lee
Software Tools
AMI Semiconductor
Tel:  +1.519.884.9696 ext 2242
Fax: +1.519.884.0228
E-mail: todd_lee@xxxxxxxx

AMI Semiconductor - "Silicon Solutions for the Real World"
NOTICE:
This electronic message contains information that may be confidential or
privileged. The information is intended for the use of the individual or
entity named above. If you are not the intended recipient, please be aware
that any disclosure, copying, distribution or use of the contents of this
information is prohibited. If you received this electronic message in
error, please notify the sender and delete the copy you received.

_______________________________________________
platform-ua-dev mailing list
platform-ua-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-ua-dev
_______________________________________________
platform-ua-dev mailing list
platform-ua-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-ua-dev


AMI Semiconductor - "Silicon Solutions for the Real World"
NOTICE:
This electronic message contains information that may be confidential or
privileged. The information is intended for the use of the individual or
entity named above. If you are not the intended recipient, please be aware
that any disclosure, copying, distribution or use of the contents of this
information is prohibited. If you received this electronic message in
error, please notify the sender and delete the copy you received.

_______________________________________________
platform-ua-dev mailing list
platform-ua-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-ua-dev
_______________________________________________
platform-ua-dev mailing list
platform-ua-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-ua-dev


AMI Semiconductor - "Silicon Solutions for the Real World"
NOTICE: 
This electronic message contains information that may be confidential or privileged. The information is intended for the use of the individual or entity named above. If you are not the intended recipient, please be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you received this electronic message in error, please notify the sender and delete the copy you received.



Back to the top