Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Adding views dynamically
Adding views dynamically [message #758488] Wed, 23 November 2011 12:43 Go to next message
Wojtek.wk  is currently offline Wojtek.wk Friend
Messages: 29
Registered: September 2011
Junior Member
Hello,
I've got some view in a separate bundle (plug-in). Is it possible to add it to my application during the runtime (without specifing it in the MANIFEST.MF file before the application's execution)? What I need, is the following scenario:
1) Application execution
2) Adding a view
3) Showing a view in application

Is it possible?
Re: Adding views dynamically [message #758913 is a reply to message #758488] Fri, 25 November 2011 08:50 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(
viewId );
can be used to show a 'known' view, ie.e one that was registered with
the view extension point in your plugin.xml.

Why would you want to show a view from a plug-in that hasn't registered
the view?

On 23.11.2011 13:43, Wojtek.wk wrote:
> Hello,
> I've got some view in a separate bundle (plug-in). Is it possible to add
> it to my application during the runtime (without specifing it in the
> MANIFEST.MF file before the application's execution)? What I need, is
> the following scenario:
> 1) Application execution
> 2) Adding a view
> 3) Showing a view in application
>
> Is it possible?

--
Rüdiger Herrmann
http://codeaffine.com
Previous Topic:Adding views dynamically
Next Topic:There is no login screen in the RAP demo, which class should I insert my login dialog into
Goto Forum:
  


Current Time: Sat Nov 27 15:30:32 GMT 2021

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

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

Back to the top