Migrating RCP application and extensions from GMF project [message #1414101] |
Sat, 30 August 2014 04:37  |
Eclipse User |
|
|
|
Hi all,
I am currently trying to rebuild a GMF-based application with Sirius. While
defining the actual editors works fine I am still a bit confused about the
application frame.
In GMF the generated editor plug-in can also act as RCP application, since
it contains menu entries, an application class and so on. With Sirius there
should probably be a dedicated plug-in for the "main application" which is
then maintained independently from the editors?
With regards to extensions I used to utilise Xpand aspect templates for
injecting them before generation.
One small example is that the palette should be placed on the left side for
example:
«AROUND additions FOR gmfgen::GenEditorView-»
@Override
protected int getInitialDockLocation() {
return org.eclipse.draw2d.PositionConstants.WEST;
}
«ENDAROUND»
What would be the appropriate approach to convert such extensions to Sirius
in general? I guess the right way to go would be a separate plug-in
containing custom classes which are injected/registered using extension
points. Is that correct? Maybe there is some reading material or example
available?
TIA,
Axel
|
|
|
|
Re: Migrating RCP application and extensions from GMF project [message #1415382 is a reply to message #1415299] |
Tue, 02 September 2014 12:44  |
Eclipse User |
|
|
|
Hi Alex,
thank you for elaborating on these questions. After I completed some other
tasks I am going to do some tryouts and report back afterwards.
Regards,
Axel
Alex Lagarde wrote:
> Hi Axel,
>
> indeed, contrary to what you used to do in GMF Sirius is not based on
> code generation but on model interpretation.
>
> Consequently, you're right saying that you cannot inject generation
> templates to modify the generated editor code.
>
> However, I think you still have the possiblity to use eclipse extension
> points to customize the Sirius Diagram editor for example. That has
> never been done to my knowledge, but you may subclass the
> DDiagramEditorImpl provided by Sirius or try other GMF extension points.
>
> Please let us know if you find a solution for your issue.
> Regards,
> Alex Lagarde - Obeo
>
> Need professional services for Sirius?
> http://www.obeodesigner.com/sirius/
|
|
|
Powered by
FUDForum. Page generated in 0.05092 seconds