Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » xml model adapter
xml model adapter [message #104280] Tue, 30 August 2005 10:22 Go to next message
Eclipse UserFriend
Originally posted by: jan.peknik.tietoenator.com

hello,

it is possible to add model adapter serializing into xml through
extension points / override mechanism, without subclassing (or
writing custom ) JavaVisualEditorPart?

thanks,
J.Peknik
Re: xml model adapter [message #104582 is a reply to message #104280] Wed, 31 August 2005 21:26 Go to previous message
Gili Mendel is currently offline Gili MendelFriend
Messages: 338
Registered: July 2009
Senior Member
jan.peknik wrote:
> hello,
>
> it is possible to add model adapter serializing into xml through
> extension points / override mechanism, without subclassing (or
> writing custom ) JavaVisualEditorPart?
>
> thanks,
> J.Peknik
>
>
not easily... it gets harder depending on what you want to do.
JavaVisualEditorPart is a split pane editor (GEF/JDT), that uses VE base technology to model/render visuals.
If you do not want the JDT pane (or replace it with an XML pane).. you will have to write a different editor.

If you just want to add adapters to the VE model and generate different type of code along side the VE editor,
you will need to get at the model's root and add your adapter/s on all its elements, and maintain them

When VE comes up, it gets the root of the model here

JavaVisualEditorPart.Setup.run()
...
DiagramData dd = lastModel = modelBuilder.getModelRoot();
Re: xml model adapter [message #610466 is a reply to message #104280] Wed, 31 August 2005 21:26 Go to previous message
Gili Mendel is currently offline Gili MendelFriend
Messages: 338
Registered: July 2009
Senior Member
jan.peknik wrote:
> hello,
>
> it is possible to add model adapter serializing into xml through
> extension points / override mechanism, without subclassing (or
> writing custom ) JavaVisualEditorPart?
>
> thanks,
> J.Peknik
>
>
not easily... it gets harder depending on what you want to do.
JavaVisualEditorPart is a split pane editor (GEF/JDT), that uses VE base technology to model/render visuals.
If you do not want the JDT pane (or replace it with an XML pane).. you will have to write a different editor.

If you just want to add adapters to the VE model and generate different type of code along side the VE editor,
you will need to get at the model's root and add your adapter/s on all its elements, and maintain them

When VE comes up, it gets the root of the model here

JavaVisualEditorPart.Setup.run()
...
DiagramData dd = lastModel = modelBuilder.getModelRoot();
Previous Topic:Meta-Data XML or Java
Next Topic:View in VE is wrong after upgrade to 1.1
Goto Forum:
  


Current Time: Thu Jan 02 16:26:58 GMT 2025

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

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

Back to the top