Perspective with tabs [message #540598] |
Wed, 16 June 2010 15:49 |
Jits Messages: 3 Registered: June 2010 |
Junior Member |
|
|
Hi,
I'm trying to create an Eclipse RCP app with the following UI structure/layout:
Perspective A >>
View A (tabs container) >>
Instances of View B (multiple tabs which are separate instances of the same View class) >>
views/layout within the tab View B
(where the '>>' indicates that I want a hierarchical/containment relationship).
The idea is that a separate tab should be opened for each file being worked on, and each tab is an instance of the same View class but has it's own internal configuration and state.
I may also add a file explorer to the perspective, outside of the tabs container, in the future. But for now I need the perspective to just contain one view.
Any recommendations on how best to go about doing this?
Ideally I would like to do this declaratively as much as possible. I know you can declaratively set up the layout in a perspective, but can you do that in views too? To elaborate on this, it seems at the moment that I can use a perspectiveExtension to add View A to Perspective A, but then I am left to programmatically build the rest. Is this true?
Thanks in advance for any help.
Jits
[Updated on: Wed, 16 June 2010 15:51] Report message to a moderator
|
|
|
Re: Perspective with tabs [message #541357 is a reply to message #540598] |
Sun, 20 June 2010 12:25 |
Wim Jongman Messages: 423 Registered: July 2009 |
Senior Member |
|
|
Hi Jits,
Why do you want to contain view B in View A. As you can see, views already
have tabs so you just want a bunch of view B's. If you do the action on the
File, just open a new instance of View B. The tab you get for free
--
Best Regards,
Wim Jongman
-- 2+2 = 5 for extremely large values of 2.
(Eclipse Old Skool Quote
Service)
> Hi,
>
> I'm trying to create an Eclipse RCP app with the following UI
structure/layout:
>
> Perspective A >> View A (tabs container) >> Instances of View B (multiple
tabs which are separate instances of the same View class) >> views/layout
within the tab View B
>
> (where the '>>' indicates that I want a hierarchical/containment
relationship).
>
> The idea is that a separate tab should be opened for each file being worked
on, and each tab is an instance of the same View class but has it's own
internal configuration and state.
>
> I may also add a file explorer to the perspective, outside of the tabs
container, in the future. But for now I need the perspective to just contain
one view.
>
> Any recommendations on how best to go about doing this?
>
> Ideally I would like to do this declaratively as much as possible. I know
you can declaratively set up the layout in a perspective, but can you do that
in views too? To elaborate on this, it seems at the moment that I can use a
perspectiveExtension to add View A to Perspective A, but then I am left to
programmatically build the rest. Is this true?
>
> Thanks in advance for any help.
>
> Jits
|
|
|
|
Re: Re: Perspective with tabs [message #541778 is a reply to message #541710] |
Tue, 22 June 2010 13:52 |
Wim Jongman Messages: 423 Registered: July 2009 |
Senior Member |
|
|
mmm. Interesting use case. The top level thing you describe is the Eclipse
perspective. I picture a small view all across the workbench with tabs
(chrome). Pressing a tab would trigger the opening of a perspective. The top
view with tabs is a so called sticky view (it will be seen across all
perspectives). The other views can then be positioned to your liking.
Are the "top level views" (perspectives) known beforehand?
I suggest you hire an Eclipse expert for one or two day to get you going.
This will be worth every penny. Did you attend the Eclipse RCP course?
--
Best Regards,
Wim Jongman
-- Computers are not intelligent. They only think they are.
(Eclipse Old
Skool Quote Service)
> Hi Wim,
>
> Thanks for the response.
>
> I have a better handle on the UI concepts of the Eclipse RCP platform and
so we have changed our design to fit in better (i.e.: to do what you suggest)
>
> For posterity, let me explain what we had initially planned (assume the
below is now past tense)...
>
> ---
>
> We're building an RCP app whereby a user can open and work with many files
at once, but not in the same way users would do so right now in the Eclipse
IDE (for example) we don't intend to show a file browser and we would like
each open file to have one corresponding tab at the highest level possible in
the UI (think Chrome/Chromium). This tab then has it's own things (views?)
within it that presents a rich UI to work with the file (things like editors,
palettes, consoles, etc). Each tab would maintain it's own instances of it's
internal UI bits and it's own state, completely independent of the other
tabs.
>
> But now I think we may approaching this with the wrong concepts in mind; I
didn't fully grasp that I couldn't add a view inside another view.
>
> ---
>
> If anyone has been able to achieve the above with Eclipse RCP I'd be very
grateful if they could share the details.
>
> Thanks,
> Jits
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04402 seconds