Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] Eclipse IDE and Multiple Windows ?

Good point...I'm not quite sure what you mean by 'shared instance' though...

We'd certainly have to ensure that the Editor / ViewReference gets created in the window it's actually hosted in but I already have work to do to make the construction of the references model based (currently it's hard coded into the various 'openEditor' / 'showView' logic).

Interestingly this approach might even be helpful in managing the relationships between the two windows. One of the problems with doing this in the past was that there was now way to (for example) have a double click on a Search entry in one window to actually open the editor in the other window (and have searches in an editor in one window show the results in a Search View in the other window...). This may require us to extend the logic beyond just placing new views to encompass 'showView' and 'openEditor' in general (but that's a topic for later discussion once we've agreed on the general approach).

In any case Martin has a scenario that's well suited to demonstrate some of the new flexibility we have so I'm highly motivated...;-).

Eric


Inactive hide details for Tom Schindl ---01/16/2014 09:50:44 AM---Hi, I was about to say the same but when there are multiple wTom Schindl ---01/16/2014 09:50:44 AM---Hi, I was about to say the same but when there are multiple workbench


    From:

Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx>

    To:

e4-dev@xxxxxxxxxxx,

    Date:

01/16/2014 09:50 AM

    Subject:

Re: [e4-dev] Eclipse IDE and Multiple Windows ?

    Sent by:

e4-dev-bounces@xxxxxxxxxxx




Hi,

I was about to say the same but when there are multiple workbench
windows involved I think this gets more complex because the
Shared-Instance has to be moved as well, not?

I also wonder if the 3.x descriptors and registries would not get out of
sync when you simply reroute an MPart to another window.

Tom

On 16.01.14 15:47, Eric Moffatt wrote:
> Martin, I think what you're looking for could be accomplished through a
> new 'hook' we could provide that would allow the PartService's 'addPart'
> to ask an external implementation to provide a stack in which to place
> the newly opening view / editor.
>
> See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=398837 for some
> discussions....
>
> Please get in touch with me directly once M5 has gone out (next week)
> and between you, me and Tom let's see what we can come up with.
>
> Eric
>
>
> Inactive hide details for "Oberhuber, Martin" ---01/16/2014 07:08:35
> AM---Dear Platform/UI and e4 experts, In our IDE on top of"Oberhuber,
> Martin" ---01/16/2014 07:08:35 AM---Dear Platform/UI and e4 experts, In
> our IDE on top of Eclipse, we are looking at ways how to deal wi
>
>
>     From:
>
>
> "Oberhuber, Martin" <Martin.Oberhuber@xxxxxxxxxxxxx>
>
>     To:
>
>
> "platform-ui-dev@xxxxxxxxxxx" <platform-ui-dev@xxxxxxxxxxx>,
> "e4-dev@xxxxxxxxxxx" <e4-dev@xxxxxxxxxxx>,
>
>     Date:
>
>
> 01/16/2014 07:08 AM
>
>     Subject:
>
>
> [e4-dev] Eclipse IDE and Multiple Windows ?
>
>     Sent by:
>
>
> e4-dev-bounces@xxxxxxxxxxx
>
> ------------------------------------------------------------------------
>
>
>
> Dear Platform/UI and e4 experts,
>  
> In our IDE on top of Eclipse, we are looking at ways how to deal with
> *multiple Windows for one IDE session*. One workflow, for instance, is
> keeping a tracing and monitoring session open in one window while
> looking at the debugger in another window.
>  
> This works fine for the most part, but we’ve come across *one problem
> that we could not solve* so far: sometimes, an Eclipse View is opened
> programmatically by a plugin, and thus gets placed into the
> getActiveWorkbenchWindow(). We’ve seen this happen with the C/C++ Build
> Console for instance, when a build is started; but we want to avoid
> having the build console in our tracing and monitoring window, it should
> always go into the master window.
>  
> I understand that the e4 modeled UI should give us full access to the
> Workbench Model, along with the ability to register listeners.
>  
> Can you think of any way how we could *detect such “foreign
> views”* being placed into an undesired workbench window, and allow us to
> *move them into the master window* where we think they should live ?
>  
> Or, do you have any other suggestions or API / Doc pointers for working
> with multiple windows in Eclipse ? – We’ve tried using Detached Views,
> but they didn’t quite work for us like we wanted (eg they always remain
> in foreground; they don’t have maximize/minimize/resize buttons; the 3.x
> API for attaching / detaching a view no longer exists in 4.x).
>  
> *Ideally, I would want the Eclipse IDE to work like a Tabbed Web
> Browser*: When I launch a monitoring session, it initially opens as a
> new tab in the original IDE Window, and I can have multiple tabs for
> multiple sessions in parallel. When I want, I can put the session into a
> separate Window instead of the Tab. Or, take one of the tabs and drag it
> out as a Window. I want full control over each of my tabs, so no foreign
> view should open in any of them.
>  
> Any suggestions would be most welcome !
>  
> Thanks,
> Martin
> --
> *Martin Oberhuber*, SMTS / Product Architect – Development Tools, *Wind
> River*
> direct +43.662.457915.85  fax +43.662.457915.6
>  _______________________________________________
> e4-dev mailing list
> e4-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/e4-dev
>
>
>
>
> _______________________________________________
> e4-dev mailing list
> e4-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/e4-dev
>

_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev



GIF image

GIF image


Back to the top