Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » tiling views in a folder
tiling views in a folder [message #119383] Fri, 23 January 2009 13:53 Go to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
Hi,

my app has a folder that contains tabbed charts, which works quite well.
however I have been asked to look into a way of displaying the charts
tiled in a "viewing area", eg 3x3 charts. something a but ljke this;
http://www.limepepper.co.uk/images/save_as_active_workspace. jpg

By the looks of it, RCP didn't support tiling ViewParts within a folder,
so I can't see that it would be easy to do in RAP.

However I was thinking that I could have a "tile" button on the folder
menu bar, eg min/max icons, which opens a new View, which in turns
collapses all the currently existing views, and tiles their contents into
new widgets within a GridLayout with 3x3 instead.

Has anyone got any suggestions on the best way to implement this?

Many Thanks,

Tom
Re: tiling views in a folder [message #119621 is a reply to message #119383] Mon, 26 January 2009 09:32 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Hi Tom,

I'm not sure if I understand your request.

One thing I could imagine is that you have an action/command which just
closes all your diagram views and opens one "dashboard" view. This
dashboard view could then display the diagram contents as widgets inside
a grid layout.

As this question is not RAP-specific you may ask such questions on the
newcomer and rcp newsgroups.

Cheers
Benny

Tom H wrote:
> Hi,
>
> my app has a folder that contains tabbed charts, which works quite well.
> however I have been asked to look into a way of displaying the charts
> tiled in a "viewing area", eg 3x3 charts. something a but ljke this;
> http://www.limepepper.co.uk/images/save_as_active_workspace. jpg
>
> By the looks of it, RCP didn't support tiling ViewParts within a folder,
> so I can't see that it would be easy to do in RAP.
>
> However I was thinking that I could have a "tile" button on the folder
> menu bar, eg min/max icons, which opens a new View, which in turns
> collapses all the currently existing views, and tiles their contents
> into new widgets within a GridLayout with 3x3 instead.
>
> Has anyone got any suggestions on the best way to implement this?
>
> Many Thanks,
>
> Tom
>
Re: tiling views in a folder [message #120291 is a reply to message #119621] Tue, 03 February 2009 14:27 Go to previous messageGo to next message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
ok, so to get that working I am trying to get a List of the currently open
views in a Folder in my layout.

However I am getting a bit confused because they are references as Pages,
and parts and Sites now, and the terminology is confusing me.

any ideas how to get a list of the currently opened view instances in a
folder?

Thanks,

Tom
Re: tiling views in a folder [message #120302 is a reply to message #120291] Tue, 03 February 2009 14:57 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Hi Tom,

I can recommend the article about the workbench internals[1]. It's a bit
outdated but helps to understand the basic idea behind workbench parts,
sites and the workbench page.

As the presentation tries to hide the details about folders and their
representation I don't think that there is an official (=API) way to get
such a list.

Maybe you could iterate over all open views
(IWorkbenchPage#getViewReferences) and use all view parts that have a
common type. Or even use the IAdaptable mechanism to ask the view parts
if they provide content for your "overview".

Greets
Benny

[1] http://www.eclipse.org/articles/Article-UI-Workbench/workben ch.html

Tom H wrote:
> ok, so to get that working I am trying to get a List of the currently
> open views in a Folder in my layout.
>
> However I am getting a bit confused because they are references as
> Pages, and parts and Sites now, and the terminology is confusing me.
>
> any ideas how to get a list of the currently opened view instances in a
> folder?
>
> Thanks,
>
> Tom
>
Re: tiling views in a folder [message #120355 is a reply to message #120302] Wed, 04 February 2009 00:20 Go to previous message
Tom H is currently offline Tom HFriend
Messages: 139
Registered: July 2009
Senior Member
Benjamin Muskalla wrote:

> Maybe you could iterate over all open views
> (IWorkbenchPage#getViewReferences) and use all view parts that have a
> common type. Or even use the IAdaptable mechanism to ask the view parts
> if they provide content for your "overview".

Thanks, I think for the moment I am going to store a list of the contents
in a "session" List and use that to provide the content for my overview.

Tom
Previous Topic:RWT.getLocale() aware JFace data binding
Next Topic:Layout exception when opening editor
Goto Forum:
  


Current Time: Tue Apr 16 16:22:57 GMT 2024

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

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

Back to the top