xml model adapter [message #104280] |
Tue, 30 August 2005 06:22  |
Eclipse User |
|
|
|
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 17:26  |
Eclipse User |
|
|
|
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 17:26  |
Eclipse User |
|
|
|
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();
|
|
|
Powered by
FUDForum. Page generated in 0.03277 seconds