Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Help on Eclipse Help System
Help on Eclipse Help System [message #54236] Mon, 22 October 2007 15:42 Go to next message
Eclipse UserFriend
Originally posted by: dp-conde.criticalsoftware.com

Hello,

I have a web application running over an equinox platform using RAP for
the GUI. I have been trying to get the eclipse help manager to work inside
my application using the servlet container that my web appl. supports.
So far, the only thing I can access is the ToC over the org.eclipse.help.
I can load the help from here here. But this way there is no access to
search methods or the rest of all the stuff that the eclipse help manager
provides.
So my question is, hoe can I use the real eclipse help manager embedded on
my web application without making it a standalone infocenter.

Thanks in adavance.
Re: Help on Eclipse Help System [message #54580 is a reply to message #54236] Tue, 23 October 2007 11:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

I guess you mean the eclipse help application, since context sensitive help
currently is not supported in RAP. In fact it seems not to be a big deal to
include the original eclipse help into an RAP application. I just did a test
running it in the demo workbench implementation with the RAP help contents
and got it to work quite fast.

The RAP target is missing the help stuff, so I took the org.eclipse.help,
org.eclipse.help.appserver, org.eclipse.help.base and
org.eclipse.help.webapp and the bundles that are needed to resolve the
dependencies of those bundles from a 3.3.0 eclipse installation. I
additionally included the rap help bundle and the bundles it depends on.
Note: I used the the validate functionality of the launcher to check which
bundles are missing.

After that I created an action in
DemoActionBarAdvisor#makeActions(IWorkbenchWindow):

helpContent = new Action() {
public void run() {
String helpURL = "http://{0}:{1}/index.jsp";
Object[] param = new Object[]{
RWT.getRequest().getServerName(),
String.valueOf( RWT.getRequest().getServerPort() )
};
Shell shell = new Shell( Display.getDefault() );
shell.setLayout( new FillLayout() );
Browser brwsr = new Browser( shell, SWT.NONE );
shell.setBounds( 20, 20, 400, 400 );
brwsr.setUrl( MessageFormat.format( helpURL, param ) );
shell.open();
}
};
helpContent.setText( "Help Contents" );
helpContent.setId( "org.eclipse.rap.demo.helpContent" );
helpContent.setImageDescriptor( helpActionImage );
register( helpContent );

and added it to the menu in DemoActionBarAdvisour#fillMenuBar(IMenuManager).

After launching the application the help system showed up in its own shell
by activating the Help -> Help Contents menu entry. Hope that works for you
too!

Ciao
Frank


"Daniel Conde" <dp-conde@criticalsoftware.com> schrieb im Newsbeitrag
news:d5dad21ddbd0c68d34af23c3be73489e$1@www.eclipse.org...
> Hello,
>
> I have a web application running over an equinox platform using RAP for
> the GUI. I have been trying to get the eclipse help manager to work inside
> my application using the servlet container that my web appl. supports.
> So far, the only thing I can access is the ToC over the org.eclipse.help.
> I can load the help from here here. But this way there is no access to
> search methods or the rest of all the stuff that the eclipse help manager
> provides.
> So my question is, hoe can I use the real eclipse help manager embedded on
> my web application without making it a standalone infocenter.
>
> Thanks in adavance.
>
Re: Help on Eclipse Help System [message #54661 is a reply to message #54580] Wed, 24 October 2007 01:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dp-conde.criticalsoftware.com

Hi Frank, thanks for your reply.

But from what I've seen from your code, what you have is a server
running the eclipse help system in helpURL ("http://{0}:{1}/index.jsp"),
right? It's not really embedded in you application.
It's like accessing an Infocenter Help System from inside your application.

My focus was more on the possibility of making the eclipse help manager
embedded in my application, without needing to having a tomcat server
running an Infocenter outside of my application.

At the moment, like I said in the previews post, I can access the ToC
from help system and even get some sort of context in something like:

IToc[] tocs = HelpSystem.getTocs();
IContext context = HelpSystem.getContext(contextId);

This, making use of org.eclipse.help.* package.

But it's all I can do, I can't access non of the other eclipse help
system possibilities, like searching, browser history...

The thing is, I'd like to make sure I wasn't trying to reinvent the
wheel, but so far, it seems to me that to have an embedded Eclipse Help
System within my application I have to reuse the HelpSystem from
org.eclipse.help and design the Help System myself from there.

Anyone can confirm this?

Thanks in advance.


Frank Appel wrote:
> Hi,
>
> I guess you mean the eclipse help application, since context sensitive help
> currently is not supported in RAP. In fact it seems not to be a big deal to
> include the original eclipse help into an RAP application. I just did a test
> running it in the demo workbench implementation with the RAP help contents
> and got it to work quite fast.
>
> The RAP target is missing the help stuff, so I took the org.eclipse.help,
> org.eclipse.help.appserver, org.eclipse.help.base and
> org.eclipse.help.webapp and the bundles that are needed to resolve the
> dependencies of those bundles from a 3.3.0 eclipse installation. I
> additionally included the rap help bundle and the bundles it depends on.
> Note: I used the the validate functionality of the launcher to check which
> bundles are missing.
>
> After that I created an action in
> DemoActionBarAdvisor#makeActions(IWorkbenchWindow):
>
> helpContent = new Action() {
> public void run() {
> String helpURL = "http://{0}:{1}/index.jsp";
> Object[] param = new Object[]{
> RWT.getRequest().getServerName(),
> String.valueOf( RWT.getRequest().getServerPort() )
> };
> Shell shell = new Shell( Display.getDefault() );
> shell.setLayout( new FillLayout() );
> Browser brwsr = new Browser( shell, SWT.NONE );
> shell.setBounds( 20, 20, 400, 400 );
> brwsr.setUrl( MessageFormat.format( helpURL, param ) );
> shell.open();
> }
> };
> helpContent.setText( "Help Contents" );
> helpContent.setId( "org.eclipse.rap.demo.helpContent" );
> helpContent.setImageDescriptor( helpActionImage );
> register( helpContent );
>
> and added it to the menu in DemoActionBarAdvisour#fillMenuBar(IMenuManager).
>
> After launching the application the help system showed up in its own shell
> by activating the Help -> Help Contents menu entry. Hope that works for you
> too!
>
> Ciao
> Frank
>
>
> "Daniel Conde" <dp-conde@criticalsoftware.com> schrieb im Newsbeitrag
> news:d5dad21ddbd0c68d34af23c3be73489e$1@www.eclipse.org...
>> Hello,
>>
>> I have a web application running over an equinox platform using RAP for
>> the GUI. I have been trying to get the eclipse help manager to work inside
>> my application using the servlet container that my web appl. supports.
>> So far, the only thing I can access is the ToC over the org.eclipse.help.
>> I can load the help from here here. But this way there is no access to
>> search methods or the rest of all the stuff that the eclipse help manager
>> provides.
>> So my question is, hoe can I use the real eclipse help manager embedded on
>> my web application without making it a standalone infocenter.
>>
>> Thanks in adavance.
>>
>
>
Re: Help on Eclipse Help System [message #54717 is a reply to message #54661] Tue, 23 October 2007 14:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

I think you're looking for something like the BaseHelpSystem in
org.eclipse.help.base - but unfortunately this is internal...

Just one thing: I don't have to run an extra server with infocenter
installed. It is embedded in the RAP application that I launch. I only have
to create an access URL since I have to set the property of the browser
widget. The server and port address is the same as the one of the RAP
application. I simply address another servlet and that's the same what RCP
is doing.


Ciao
Frank


"Daniel Conde" <dp-conde@criticalsoftware.com> schrieb im Newsbeitrag
news:ffkt9v$nkd$1@build.eclipse.org...
> Hi Frank, thanks for your reply.
>
> But from what I've seen from your code, what you have is a server running
> the eclipse help system in helpURL ("http://{0}:{1}/index.jsp"), right?
> It's not really embedded in you application.
> It's like accessing an Infocenter Help System from inside your
> application.
>
> My focus was more on the possibility of making the eclipse help manager
> embedded in my application, without needing to having a tomcat server
> running an Infocenter outside of my application.
>
> At the moment, like I said in the previews post, I can access the ToC from
> help system and even get some sort of context in something like:
>
> IToc[] tocs = HelpSystem.getTocs();
> IContext context = HelpSystem.getContext(contextId);
>
> This, making use of org.eclipse.help.* package.
>
> But it's all I can do, I can't access non of the other eclipse help system
> possibilities, like searching, browser history...
>
> The thing is, I'd like to make sure I wasn't trying to reinvent the wheel,
> but so far, it seems to me that to have an embedded Eclipse Help System
> within my application I have to reuse the HelpSystem from org.eclipse.help
> and design the Help System myself from there.
>
> Anyone can confirm this?
>
> Thanks in advance.
>
>
> Frank Appel wrote:
>> Hi,
>>
>> I guess you mean the eclipse help application, since context sensitive
>> help currently is not supported in RAP. In fact it seems not to be a big
>> deal to include the original eclipse help into an RAP application. I just
>> did a test running it in the demo workbench implementation with the RAP
>> help contents and got it to work quite fast.
>>
>> The RAP target is missing the help stuff, so I took the org.eclipse.help,
>> org.eclipse.help.appserver, org.eclipse.help.base and
>> org.eclipse.help.webapp and the bundles that are needed to resolve the
>> dependencies of those bundles from a 3.3.0 eclipse installation. I
>> additionally included the rap help bundle and the bundles it depends on.
>> Note: I used the the validate functionality of the launcher to check
>> which bundles are missing.
>>
>> After that I created an action in
>> DemoActionBarAdvisor#makeActions(IWorkbenchWindow):
>>
>> helpContent = new Action() {
>> public void run() {
>> String helpURL = "http://{0}:{1}/index.jsp";
>> Object[] param = new Object[]{
>> RWT.getRequest().getServerName(),
>> String.valueOf( RWT.getRequest().getServerPort() )
>> };
>> Shell shell = new Shell( Display.getDefault() );
>> shell.setLayout( new FillLayout() );
>> Browser brwsr = new Browser( shell, SWT.NONE );
>> shell.setBounds( 20, 20, 400, 400 );
>> brwsr.setUrl( MessageFormat.format( helpURL, param ) );
>> shell.open();
>> }
>> };
>> helpContent.setText( "Help Contents" );
>> helpContent.setId( "org.eclipse.rap.demo.helpContent" );
>> helpContent.setImageDescriptor( helpActionImage );
>> register( helpContent );
>>
>> and added it to the menu in
>> DemoActionBarAdvisour#fillMenuBar(IMenuManager).
>>
>> After launching the application the help system showed up in its own
>> shell by activating the Help -> Help Contents menu entry. Hope that works
>> for you too!
>>
>> Ciao
>> Frank
>>
>>
>> "Daniel Conde" <dp-conde@criticalsoftware.com> schrieb im Newsbeitrag
>> news:d5dad21ddbd0c68d34af23c3be73489e$1@www.eclipse.org...
>>> Hello,
>>>
>>> I have a web application running over an equinox platform using RAP for
>>> the GUI. I have been trying to get the eclipse help manager to work
>>> inside my application using the servlet container that my web appl.
>>> supports.
>>> So far, the only thing I can access is the ToC over the
>>> org.eclipse.help. I can load the help from here here. But this way there
>>> is no access to search methods or the rest of all the stuff that the
>>> eclipse help manager provides.
>>> So my question is, hoe can I use the real eclipse help manager embedded
>>> on my web application without making it a standalone infocenter.
>>>
>>> Thanks in adavance.
>>>
>>
Re: Help on Eclipse Help System [message #55273 is a reply to message #54717] Wed, 24 October 2007 05:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dp-conde.criticalsoftware.com

Hello again Frank,

I misunderstanded your solution then, because it appears to be what I'm
looking for at the moment. You said you took the following packages from
eclipse plugins folder: org.eclipse.help, org.eclipse.help.base,
eclipse.help.appserver, org.eclipse.help.webapp. So far so good, since
I'm already working with them aswell, but I didn't understand with
package did you refer too by: "rap help bundle". Were do you get this?

Probably this might be the missing link since I have everything else
working right at the moment.

Thanks,
Daniel Conde.

Frank Appel wrote:
> Hi,
>
> I think you're looking for something like the BaseHelpSystem in
> org.eclipse.help.base - but unfortunately this is internal...
>
> Just one thing: I don't have to run an extra server with infocenter
> installed. It is embedded in the RAP application that I launch. I only have
> to create an access URL since I have to set the property of the browser
> widget. The server and port address is the same as the one of the RAP
> application. I simply address another servlet and that's the same what RCP
> is doing.
>
>
> Ciao
> Frank
>
>
> "Daniel Conde" <dp-conde@criticalsoftware.com> schrieb im Newsbeitrag
> news:ffkt9v$nkd$1@build.eclipse.org...
>> Hi Frank, thanks for your reply.
>>
>> But from what I've seen from your code, what you have is a server running
>> the eclipse help system in helpURL ("http://{0}:{1}/index.jsp"), right?
>> It's not really embedded in you application.
>> It's like accessing an Infocenter Help System from inside your
>> application.
>>
>> My focus was more on the possibility of making the eclipse help manager
>> embedded in my application, without needing to having a tomcat server
>> running an Infocenter outside of my application.
>>
>> At the moment, like I said in the previews post, I can access the ToC from
>> help system and even get some sort of context in something like:
>>
>> IToc[] tocs = HelpSystem.getTocs();
>> IContext context = HelpSystem.getContext(contextId);
>>
>> This, making use of org.eclipse.help.* package.
>>
>> But it's all I can do, I can't access non of the other eclipse help system
>> possibilities, like searching, browser history...
>>
>> The thing is, I'd like to make sure I wasn't trying to reinvent the wheel,
>> but so far, it seems to me that to have an embedded Eclipse Help System
>> within my application I have to reuse the HelpSystem from org.eclipse.help
>> and design the Help System myself from there.
>>
>> Anyone can confirm this?
>>
>> Thanks in advance.
>>
>>
>> Frank Appel wrote:
>>> Hi,
>>>
>>> I guess you mean the eclipse help application, since context sensitive
>>> help currently is not supported in RAP. In fact it seems not to be a big
>>> deal to include the original eclipse help into an RAP application. I just
>>> did a test running it in the demo workbench implementation with the RAP
>>> help contents and got it to work quite fast.
>>>
>>> The RAP target is missing the help stuff, so I took the org.eclipse.help,
>>> org.eclipse.help.appserver, org.eclipse.help.base and
>>> org.eclipse.help.webapp and the bundles that are needed to resolve the
>>> dependencies of those bundles from a 3.3.0 eclipse installation. I
>>> additionally included the rap help bundle and the bundles it depends on.
>>> Note: I used the the validate functionality of the launcher to check
>>> which bundles are missing.
>>>
>>> After that I created an action in
>>> DemoActionBarAdvisor#makeActions(IWorkbenchWindow):
>>>
>>> helpContent = new Action() {
>>> public void run() {
>>> String helpURL = "http://{0}:{1}/index.jsp";
>>> Object[] param = new Object[]{
>>> RWT.getRequest().getServerName(),
>>> String.valueOf( RWT.getRequest().getServerPort() )
>>> };
>>> Shell shell = new Shell( Display.getDefault() );
>>> shell.setLayout( new FillLayout() );
>>> Browser brwsr = new Browser( shell, SWT.NONE );
>>> shell.setBounds( 20, 20, 400, 400 );
>>> brwsr.setUrl( MessageFormat.format( helpURL, param ) );
>>> shell.open();
>>> }
>>> };
>>> helpContent.setText( "Help Contents" );
>>> helpContent.setId( "org.eclipse.rap.demo.helpContent" );
>>> helpContent.setImageDescriptor( helpActionImage );
>>> register( helpContent );
>>>
>>> and added it to the menu in
>>> DemoActionBarAdvisour#fillMenuBar(IMenuManager).
>>>
>>> After launching the application the help system showed up in its own
>>> shell by activating the Help -> Help Contents menu entry. Hope that works
>>> for you too!
>>>
>>> Ciao
>>> Frank
>>>
>>>
>>> "Daniel Conde" <dp-conde@criticalsoftware.com> schrieb im Newsbeitrag
>>> news:d5dad21ddbd0c68d34af23c3be73489e$1@www.eclipse.org...
>>>> Hello,
>>>>
>>>> I have a web application running over an equinox platform using RAP for
>>>> the GUI. I have been trying to get the eclipse help manager to work
>>>> inside my application using the servlet container that my web appl.
>>>> supports.
>>>> So far, the only thing I can access is the ToC over the
>>>> org.eclipse.help. I can load the help from here here. But this way there
>>>> is no access to search methods or the rest of all the stuff that the
>>>> eclipse help manager provides.
>>>> So my question is, hoe can I use the real eclipse help manager embedded
>>>> on my web application without making it a standalone infocenter.
>>>>
>>>> Thanks in adavance.
>>>>
>
Re: Help on Eclipse Help System [message #55571 is a reply to message #55273] Fri, 26 October 2007 05:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

the rap help bundle is in the RAP-CVS (org.eclipse.rap.help). It's just the
RAP help, which is delivered with the tooling feature (It's the same that's
available at
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. rap.help/help/html/intro.html). I
just mentioned this to explain which help content I used to play around
with.

I attached a screenshot that may makes thinks more clear. It shows the
integrated help on the left and the activated bundles on the right.

Ciao
Frank


"Daniel Conde" <dp-conde@criticalsoftware.com> schrieb im Newsbeitrag
news:ffnvlu$cij$1@build.eclipse.org...
> Hello again Frank,
>
> I misunderstanded your solution then, because it appears to be what I'm
> looking for at the moment. You said you took the following packages from
> eclipse plugins folder: org.eclipse.help, org.eclipse.help.base,
> eclipse.help.appserver, org.eclipse.help.webapp. So far so good, since
> I'm already working with them aswell, but I didn't understand with
> package did you refer too by: "rap help bundle". Were do you get this?
>
> Probably this might be the missing link since I have everything else
> working right at the moment.
>
> Thanks,
> Daniel Conde.
>
> Frank Appel wrote:
>> Hi,
>>
>> I think you're looking for something like the BaseHelpSystem in
>> org.eclipse.help.base - but unfortunately this is internal...
>>
>> Just one thing: I don't have to run an extra server with infocenter
>> installed. It is embedded in the RAP application that I launch. I only
>> have
>> to create an access URL since I have to set the property of the browser
>> widget. The server and port address is the same as the one of the RAP
>> application. I simply address another servlet and that's the same what
>> RCP
>> is doing.
>>
>>
>> Ciao
>> Frank
>>
>>
>> "Daniel Conde" <dp-conde@criticalsoftware.com> schrieb im Newsbeitrag
>> news:ffkt9v$nkd$1@build.eclipse.org...
>>> Hi Frank, thanks for your reply.
>>>
>>> But from what I've seen from your code, what you have is a server
>>> running
>>> the eclipse help system in helpURL ("http://{0}:{1}/index.jsp"), right?
>>> It's not really embedded in you application.
>>> It's like accessing an Infocenter Help System from inside your
>>> application.
>>>
>>> My focus was more on the possibility of making the eclipse help manager
>>> embedded in my application, without needing to having a tomcat server
>>> running an Infocenter outside of my application.
>>>
>>> At the moment, like I said in the previews post, I can access the ToC
>>> from
>>> help system and even get some sort of context in something like:
>>>
>>> IToc[] tocs = HelpSystem.getTocs();
>>> IContext context = HelpSystem.getContext(contextId);
>>>
>>> This, making use of org.eclipse.help.* package.
>>>
>>> But it's all I can do, I can't access non of the other eclipse help
>>> system
>>> possibilities, like searching, browser history...
>>>
>>> The thing is, I'd like to make sure I wasn't trying to reinvent the
>>> wheel,
>>> but so far, it seems to me that to have an embedded Eclipse Help System
>>> within my application I have to reuse the HelpSystem from
>>> org.eclipse.help
>>> and design the Help System myself from there.
>>>
>>> Anyone can confirm this?
>>>
>>> Thanks in advance.
>>>
>>>
>>> Frank Appel wrote:
>>>> Hi,
>>>>
>>>> I guess you mean the eclipse help application, since context sensitive
>>>> help currently is not supported in RAP. In fact it seems not to be a
>>>> big
>>>> deal to include the original eclipse help into an RAP application. I
>>>> just
>>>> did a test running it in the demo workbench implementation with the RAP
>>>> help contents and got it to work quite fast.
>>>>
>>>> The RAP target is missing the help stuff, so I took the
>>>> org.eclipse.help,
>>>> org.eclipse.help.appserver, org.eclipse.help.base and
>>>> org.eclipse.help.webapp and the bundles that are needed to resolve the
>>>> dependencies of those bundles from a 3.3.0 eclipse installation. I
>>>> additionally included the rap help bundle and the bundles it depends
>>>> on.
>>>> Note: I used the the validate functionality of the launcher to check
>>>> which bundles are missing.
>>>>
>>>> After that I created an action in
>>>> DemoActionBarAdvisor#makeActions(IWorkbenchWindow):
>>>>
>>>> helpContent = new Action() {
>>>> public void run() {
>>>> String helpURL = "http://{0}:{1}/index.jsp";
>>>> Object[] param = new Object[]{
>>>> RWT.getRequest().getServerName(),
>>>> String.valueOf( RWT.getRequest().getServerPort() )
>>>> };
>>>> Shell shell = new Shell( Display.getDefault() );
>>>> shell.setLayout( new FillLayout() );
>>>> Browser brwsr = new Browser( shell, SWT.NONE );
>>>> shell.setBounds( 20, 20, 400, 400 );
>>>> brwsr.setUrl( MessageFormat.format( helpURL, param ) );
>>>> shell.open();
>>>> }
>>>> };
>>>> helpContent.setText( "Help Contents" );
>>>> helpContent.setId( "org.eclipse.rap.demo.helpContent" );
>>>> helpContent.setImageDescriptor( helpActionImage );
>>>> register( helpContent );
>>>>
>>>> and added it to the menu in
>>>> DemoActionBarAdvisour#fillMenuBar(IMenuManager).
>>>>
>>>> After launching the application the help system showed up in its own
>>>> shell by activating the Help -> Help Contents menu entry. Hope that
>>>> works
>>>> for you too!
>>>>
>>>> Ciao
>>>> Frank
>>>>
>>>>
>>>> "Daniel Conde" <dp-conde@criticalsoftware.com> schrieb im Newsbeitrag
>>>> news:d5dad21ddbd0c68d34af23c3be73489e$1@www.eclipse.org...
>>>>> Hello,
>>>>>
>>>>> I have a web application running over an equinox platform using RAP
>>>>> for
>>>>> the GUI. I have been trying to get the eclipse help manager to work
>>>>> inside my application using the servlet container that my web appl.
>>>>> supports.
>>>>> So far, the only thing I can access is the ToC over the
>>>>> org.eclipse.help. I can load the help from here here. But this way
>>>>> there
>>>>> is no access to search methods or the rest of all the stuff that the
>>>>> eclipse help manager provides.
>>>>> So my question is, hoe can I use the real eclipse help manager
>>>>> embedded
>>>>> on my web application without making it a standalone infocenter.
>>>>>
>>>>> Thanks in adavance.
>>>>>
>>


  • Attachment: raphelp.png
    (Size: 166.79KB, Downloaded 237 times)
Re: Help on Eclipse Help System [message #104762 is a reply to message #54580] Fri, 12 September 2008 10:03 Go to previous message
Boris Stepanov is currently offline Boris StepanovFriend
Messages: 68
Registered: July 2009
Member
Hi Frank,

I check this code when you posted it. It was working. Now I trying to
repeat it using RAP 1.1.1RC1 and Eclipse 3.4 in my application and it is
now working. I have two entry points and two brandings with 'user' and
'admin' servlet names. Do you have any ideas how to fix it?


> Hi,
>
> I guess you mean the eclipse help application, since context sensitive help
> currently is not supported in RAP. In fact it seems not to be a big deal to
> include the original eclipse help into an RAP application. I just did a test
> running it in the demo workbench implementation with the RAP help contents
> and got it to work quite fast.
>
> The RAP target is missing the help stuff, so I took the org.eclipse.help,
> org.eclipse.help.appserver, org.eclipse.help.base and
> org.eclipse.help.webapp and the bundles that are needed to resolve the
> dependencies of those bundles from a 3.3.0 eclipse installation. I
> additionally included the rap help bundle and the bundles it depends on.
> Note: I used the the validate functionality of the launcher to check which
> bundles are missing.
>
> After that I created an action in
> DemoActionBarAdvisor#makeActions(IWorkbenchWindow):
>
> helpContent = new Action() {
> public void run() {
> String helpURL = "http://{0}:{1}/index.jsp";
> Object[] param = new Object[]{
> RWT.getRequest().getServerName(),
> String.valueOf( RWT.getRequest().getServerPort() )
> };
> Shell shell = new Shell( Display.getDefault() );
> shell.setLayout( new FillLayout() );
> Browser brwsr = new Browser( shell, SWT.NONE );
> shell.setBounds( 20, 20, 400, 400 );
> brwsr.setUrl( MessageFormat.format( helpURL, param ) );
> shell.open();
> }
> };
> helpContent.setText( "Help Contents" );
> helpContent.setId( "org.eclipse.rap.demo.helpContent" );
> helpContent.setImageDescriptor( helpActionImage );
> register( helpContent );
>
> and added it to the menu in DemoActionBarAdvisour#fillMenuBar(IMenuManager).
>
> After launching the application the help system showed up in its own shell
> by activating the Help -> Help Contents menu entry. Hope that works for you
> too!
>
> Ciao
> Frank
>
>
> "Daniel Conde" <dp-conde@criticalsoftware.com> schrieb im Newsbeitrag
> news:d5dad21ddbd0c68d34af23c3be73489e$1@www.eclipse.org...
>> Hello,
>>
>> I have a web application running over an equinox platform using RAP for
>> the GUI. I have been trying to get the eclipse help manager to work inside
>> my application using the servlet container that my web appl. supports.
>> So far, the only thing I can access is the ToC over the org.eclipse.help.
>> I can load the help from here here. But this way there is no access to
>> search methods or the rest of all the stuff that the eclipse help manager
>> provides.
>> So my question is, hoe can I use the real eclipse help manager embedded on
>> my web application without making it a standalone infocenter.
>>
>> Thanks in adavance.
>>
>
>
Previous Topic:What's the point of making main RAP window resizable ?
Next Topic:RAP Command Line Launch
Goto Forum:
  


Current Time: Mon May 20 03:52:26 GMT 2024

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

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

Back to the top