Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Vex » embedding VEX editor into a Dialog(probably same question as: embedding any editors in a Dialog)
embedding VEX editor into a Dialog [message #902309] Fri, 17 August 2012 00:13 Go to next message
Gergely Nagy is currently offline Gergely NagyFriend
Messages: 6
Registered: August 2012
Junior Member
Dear vExperts,

is there any way to embed the VEX editor into a modal popup editor?
I suspect it's more of a generic question (how to embed any editors into a dialog), but maybe there is some useful special advice for the visual editor.

Will I have to copy large parts of the VEX/WTP editors' code into my dialog/controller block? Do I need much more than just the SourceViewer + a Text widget somehow configured to work with autocompletion and the visual display. Is this at all possible?
thanks for any hints,
Gergo
Re: embedding VEX editor into a Dialog [message #902642 is a reply to message #902309] Fri, 17 August 2012 10:36 Go to previous messageGo to next message
Florian Thienel is currently offline Florian ThienelFriend
Messages: 38
Registered: July 2009
Member
Hi Gergo,

I did this some month ago for an article I wrote for the German Eclipse
Magazin. You can find the code example here:

https://github.com/ftl/vex-examples

Here, the VexWidget is reused. Everything else (e.g. the completion
dialog, any special actions to insert or modify XML) has to be redone.
But it is on our list to provide generic solutions for this use case. So
if you have something which could also be useful for other, feel free to
contribute ;-)

~Florian

Am 17.08.2012 02:13, schrieb Gergely Nagy:
> Dear vExperts,
>
> is there any way to embed the VEX editor into a modal popup editor?
> I suspect it's more of a generic question (how to embed any editors into
> a dialog), but maybe there is some useful special advice for the visual
> editor.
>
> Will I have to copy large parts of the VEX/WTP editors' code into my
> dialog/controller block? Do I need much more than just the SourceViewer
> + a Text widget somehow configured to work with autocompletion and the
> visual display. Is this at all possible?
> thanks for any hints,
> Gergo
Re: embedding VEX editor into a Dialog [message #902897 is a reply to message #902642] Tue, 21 August 2012 00:50 Go to previous messageGo to next message
Gergely Nagy is currently offline Gergely NagyFriend
Messages: 6
Registered: August 2012
Junior Member
Florian,

that was really helpful - almost exactly what I want, works nicely and it looks straightforward.
Will just have to make it a bit sexier with (toolbar, autocompletion), and contribute back, of course:)

BTW, a piggyback question: is there a way to hide the markers > and < around elements, in the VexWidget?

Thanks a million!

Gergo
Re: embedding VEX editor into a Dialog [message #904015 is a reply to message #902642] Tue, 21 August 2012 00:50 Go to previous messageGo to next message
Gergely Nagy is currently offline Gergely NagyFriend
Messages: 17
Registered: July 2009
Junior Member
Florian,

that was really helpful - almost exactly what I want, works nicely and it looks straightforward.
Will just have to make it a bit sexier with (toolbar, autocompletion), and contribute back, of course:)

BTW, a piggyback question: is there a way to hide the markers > and < around elements, in the VexWidget?

Thanks a million!

Gergo
Re: embedding VEX editor into a Dialog [message #904016 is a reply to message #902897] Tue, 21 August 2012 07:42 Go to previous message
Florian Thienel is currently offline Florian ThienelFriend
Messages: 38
Registered: July 2009
Member
> BTW, a piggyback question: is there a way to hide the markers > and < around elements, in the VexWidget?

Nope, not yet.

Am 21.08.2012 02:50, schrieb Gergely Nagy:
> Florian,
>
> that was really helpful - almost exactly what I want, works nicely and
> it looks straightforward.
> Will just have to make it a bit sexier with (toolbar, autocompletion),
> and contribute back, of course:)
>
> BTW, a piggyback question: is there a way to hide the markers > and <
> around elements, in the VexWidget?
>
> Thanks a million!
>
> Gergo
Previous Topic:compatibility with older Eclipse/WTP
Next Topic:Slides from EclpseCon 2011
Goto Forum:
  


Current Time: Thu Mar 28 22:05:13 GMT 2024

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

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

Back to the top