| 
| tiling views in a folder [message #119383] | Fri, 23 January 2009 08:53  |  | 
| Eclipse User  |  |  |  |  | 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 04:32   |  | 
| Eclipse User  |  |  |  |  | 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 #120355 is a reply to message #120302] | Tue, 03 February 2009 19:20  |  | 
| Eclipse User  |  |  |  |  | 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
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.28749 seconds