Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:19 Go to next message
Arvind Sharma is currently offline Arvind SharmaFriend
Messages: 17
Registered: December 2011
Junior Member
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 06:50 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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] Sat, 04 May 2013 00:17 Go to previous message
Marek Jagielski is currently offline Marek JagielskiFriend
Messages: 97
Registered: April 2012
Member
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: Fri Apr 26 10:27:16 GMT 2024

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

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

Back to the top