Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » rcp standalone view--how to show hidden titles at runtime(how to show hidden titles of standalone views on button click)
rcp standalone view--how to show hidden titles at runtime [message #837167] Thu, 05 April 2012 10:52 Go to next message
neetika markanday is currently offline neetika markandayFriend
Messages: 5
Registered: February 2012
Junior Member
Using RCP is it possible to show titles of a standalone view at runtime?

We have 4 stabdalone views in a page, arranged as 4 quadrants, with hidden titlebar.
On a button click, we want to show the hidden titles of all those views, so that we can move & close them as required.

Do we have any api to enable those titles? If not,how possibly can we get the same effect? Any pointers will be helpful--Thanks

[Updated on: Thu, 05 April 2012 10:54]

Report message to a moderator

Re: rcp standalone view--how to show hidden titles at runtime [message #845825 is a reply to message #837167] Sun, 15 April 2012 13:02 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 418
Registered: July 2009
Senior Member
Hi Neetika,

Maybe a hack: create a new perspective with the views added as normal views
then use the button to switch to that perspective. Add a part listener so you
can catch the closing of the view and call hideview on the "twin"
perspective.

Regards,

Wim


> Using RCP is it possible to show standalone view's at runtime?
>
> We have 4 stabdalone views in a page, arranged as 4 quadrants, with hidden
titlebar.
> On a button click, we want to show the hidden titles of all those views, so
that we can move & close them as required.
>
> Do we have any api to enable those titles? If not,how possibly can we get
the same effect? Any pointers will be helpful--Thanks
Re: rcp standalone view--how to show hidden titles at runtime [message #846530 is a reply to message #845825] Mon, 16 April 2012 06:28 Go to previous messageGo to next message
neetika markanday is currently offline neetika markandayFriend
Messages: 5
Registered: February 2012
Junior Member
Thanks Wim for replying,

One major Problem I see with this approach will be: Once the views are visible(in new perspective),user can move them and rearrange them.So in that case, toggling to previous perspective(where titles are not visible), the arrangement of views will be different.
Which definetly will not be acceptable.

Re: rcp standalone view--how to show hidden titles at runtime [message #846559 is a reply to message #846530] Mon, 16 April 2012 07:02 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5468
Registered: July 2009
Senior Member
This is not possible in 3.x, with 4.x you can make it work by modifying
the workbench model directly if you want the titles get displayed/hidden.

Tom

Am 16.04.12 08:28, schrieb neetika markanday:
> Thanks Wim for replying,
>
> One major Problem I see with this approach will be: Once the views are
> visible(in new perspective),user can move them and rearrange them.So in
> that case, toggling to previous perspective(where titles are not
> visible), the arrangement of views will be different.
> Which definetly will not be acceptable.
>
>
Re: rcp standalone view--how to show hidden titles at runtime [message #846568 is a reply to message #846559] Mon, 16 April 2012 07:15 Go to previous messageGo to next message
neetika markanday is currently offline neetika markandayFriend
Messages: 5
Registered: February 2012
Junior Member
Ohhhh, we are using 3.7.
This means we do not even have a workaround for same!!!!

Alos Tom, do you have any idea, if in 3.x we have options to hide 1-pixel view background!!!For above mentioned multiple views in a single page, we want to hide the borders, so that it looks like a single view page....

Any idea/hints on the same?
Re: rcp standalone view--how to show hidden titles at runtime [message #846711 is a reply to message #846568] Mon, 16 April 2012 08:01 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5468
Registered: July 2009
Senior Member
You could look at what the presentation API provides maybe implementing
your own presentation can solve your problems.

Tom

Am 16.04.12 09:15, schrieb neetika markanday:
> Ohhhh, we are using 3.7.
> This means we do not even have a workaround for same!!!!
>
> Alos Tom, do you have any idea, if in 3.x we have options to hide
> 1-pixel view background!!!For above mentioned multiple views in a single
> page, we want to hide the borders, so that it looks like a single view
> page....
>
> Any idea/hints on the same?
>
Previous Topic:Using show view within the perspective creation
Next Topic:Logback configuration
Goto Forum:
  


Current Time: Wed Nov 26 21:56:48 GMT 2014

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

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