Does e4 support opening a view in a dialog shell?!https://www.eclipse.org/forums/index.php/mv/msg/416061/959059/#msg_959059
So, I'm wondering: is it possible to directly open/show a view part in a dialog shell?

The use-case is to open the tabbed properties view in a modeless tool-style window. With 3.x I've achieved this by hacking extra 'API' into my own copy of the workbench plugin to allow this via DetatchedWindow. Obviously ugly and makes upgrading my platform a real pain... so I really want to get away from this!

Is this something e4 makes possible perhaps?
Or perhaps it's achievable using internal API instead of having to modify it?!

Thanks,
Justin]]>Justin Dolezy2012-10-26T12:26:37-00:00Re: Does e4 support opening a view in a dialog shell?!https://www.eclipse.org/forums/index.php/mv/msg/416061/959081/#msg_959081
not quite sure if I understand what you mean. But as you were in the Eclipse 4 tutorial, have you tried if it fits your needs if you simply add a Window under the Windows section in your application model, and only add a part to that window?

Maybe it would be helpful if you attach some kind of screenshot so we understand what exactly you are trying to achieve.

Greez,
Dirk]]>Dirk Fauth2012-10-26T12:47:34-00:00Re: Does e4 support opening a view in a dialog shell?!https://www.eclipse.org/forums/index.php/mv/msg/416061/959088/#msg_959088
it uses EModelService#hostElement()

Tom

Am 26.10.12 14:26, schrieb Justin Dolezy:
> Just back from a great EclipseCon Europe, so now have a pile of reading
> to do and questions to ask!
>
> So, I'm wondering: is it possible to directly open/show a view part in a
> dialog shell?
>
> The use-case is to open the tabbed properties view in a modeless
> tool-style window. With 3.x I've achieved this by hacking extra 'API'
> into my own copy of the workbench plugin to allow this via
> DetatchedWindow. Obviously ugly and makes upgrading my platform a real
> pain... so I really want to get away from this!
>
> Is this something e4 makes possible perhaps?
> Or perhaps it's achievable using internal API instead of having to
> modify it?!
>
> Thanks,
> Justin]]>Thomas Schindl2012-10-26T12:47:43-00:00Re: Does e4 support opening a view in a dialog shell?!https://www.eclipse.org/forums/index.php/mv/msg/416061/959228/#msg_959228
I suppose that might be worth a try, but I'm guessing that'll produce a reqular framed window? I don't see options in the XMI editor for the shell styles I need - STW.TOOL & SWT.ON_TOP, so presumably I still need to create the shell myself directly...

@Tom
That sounds like just what I'nd need - hopefully Have tracked the CSS editor to a ViewPreferencesPage tweaklet contrib: CSSEditorPreferences, but I don't seem to have source for org.eclipse.e4.tools.css.editor.ui. I guess I need to clone this from git somewhere?]]>Justin Dolezy2012-10-26T14:59:09-00:00Re: Does e4 support opening a view in a dialog shell?!https://www.eclipse.org/forums/index.php/mv/msg/416061/959398/#msg_959398
1) In the dialog: create a child context
2) Put the Composite of the dialog in the context where you want your part controls to be created
3) Call ContextInjectionFactory.make to create the part]]>Christoph Keimel2012-10-26T17:35:57-00:00Re: Does e4 support opening a view in a dialog shell?!https://www.eclipse.org/forums/index.php/mv/msg/416061/960353/#msg_960353
Sounds simple, but being new to e4 you lost me at step 1! Guess that's IEclipseContext.createChild(), right?

Maybe I should get some more reading done and then come back to this, but it sounds like there's a few possibilities which is great; e4 is looking like it's very flexible and will help solve a few of my pet problems!]]>Justin Dolezy2012-10-27T11:58:32-00:00Re: Does e4 support opening a view in a dialog shell?!https://www.eclipse.org/forums/index.php/mv/msg/416061/961401/#msg_961401
Christoph Keimel2012-10-28T08:32:37-00:00