Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Launching DOJO based Static Web Page from RCP App
Launching DOJO based Static Web Page from RCP App [message #834885] Mon, 02 April 2012 10:19 Go to next message
Eclipse UserFriend
Hello,

I have an RCP application that deals with creating visualization. I want to provide a functionality to launch the created visualization in browser. For this I have created a HTML and corrosponding java script files. The static page need DOJO libraries to run. I have put DOJO library inside a folder of UI plugin project and included that folder as part of binary build.

When i run application directly this approach works fine as the path for that static HTML file is resolved as a folder in side UI polugin project.

But the problem is that this approach does not work when i export my RCP application and run the exe. When it tries to launch the browser with that static page it could not find the DOJO libraries.

Any ideas?

Thanks
Arvind
Re: Launching DOJO based Static Web Page from RCP App [message #841326 is a reply to message #834885] Wed, 11 April 2012 02:50 Go to previous messageGo to next message
Eclipse UserFriend
When you export everything is packaged into a jar and that's why it is
not working.

You can put the "Eclipse-BundleShape: dir" into your MANIFEST.MF - this
way the bundle is exported as directory. Drawback - you can't sign it
anymore.

Tom

Am 02.04.12 16:19, schrieb Arvind Sharma:
> Hello,
>
> I have an RCP application that deals with creating visualization. I want
> to provide a functionality to launch the created visualization in
> browser. For this I have created a HTML and corrosponding java script
> files. The static page need DOJO libraries to run. I have put DOJO
> library inside a folder of UI plugin project and included that folder as
> part of binary build.
> When i run application directly this approach works fine as the path for
> that static HTML file is resolved as a folder in side UI polugin project.
>
> But the problem is that this approach does not work when i export my RCP
> application and run the exe. When it tries to launch the browser with
> that static page it could not find the DOJO libraries.
>
> Any ideas?
>
> Thanks
> Arvind
Re: Launching DOJO based Static Web Page from RCP App [message #1053328 is a reply to message #841326] Fri, 03 May 2013 20:17 Go to previous message
Eclipse UserFriend
Hi,
Is it possible to you use an internal Browser that is used for help to display static pages from plugin jars? Or is it possible somehow to feed SWT Browser with stream?
Thanks in advance,

Marek
Previous Topic:How do you define a command group via extension points?
Next Topic:Mapping from editorContribution to menuContribution
Goto Forum:
  


Current Time: Thu Jun 12 20:29:34 EDT 2025

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

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

Back to the top