Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Migrating RCP application and extensions from GMF project
Migrating RCP application and extensions from GMF project [message #1414101] Sat, 30 August 2014 08:37 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
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 #1415299 is a reply to message #1414101] Tue, 02 September 2014 14:25 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

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/
Re: Migrating RCP application and extensions from GMF project [message #1415382 is a reply to message #1415299] Tue, 02 September 2014 16:44 Go to previous message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
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/
Previous Topic:Issues with Sirius interpreting my odesing file
Next Topic:Subcontainer without semantic element
Goto Forum:
  


Current Time: Tue Apr 16 22:45:13 GMT 2024

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

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

Back to the top