Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » New representation types
New representation types [message #1385950] Thu, 12 June 2014 12:22 Go to next message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
Hi,

Is there a way to create new representation types (i.e. not diagram,
table or tree). I assume this at least needs a (meta-)model and a
rendererer/editor for an instance of the (meta-)model. Is there an
extension point for registering new ones, and perhaps also some abstract
base classes for implementing the actual renderers/editors? Or is the
current set somehow hard-coded into the framework.

Hallvard
Re: New representation types [message #1385957 is a reply to message #1385950] Thu, 12 June 2014 13:11 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Le 12/06/2014 14:22, Hallvard Trætteberg a écrit :
> Hi,
>

Hi,

> Is there a way to create new representation types (i.e. not diagram,
> table or tree). I assume this at least needs a (meta-)model and a
> rendererer/editor for an instance of the (meta-)model. Is there an
> extension point for registering new ones, and perhaps also some abstract
> base classes for implementing the actual renderers/editors? Or is the
> current set somehow hard-coded into the framework.

No, it is not hard-coded. This notion is named a dialect [1] & [2].
The extension point uses to define a new Dialect is
org.eclipse.sirius.dialect.
As starting point, you can have a look at:
* AbstractRepresentationDialectServices [3]
* or TreeDialect [4] as example, that probably is the simplest Dialect

>
> Hallvard

Regards,

Laurent

[1] org.eclipse.sirius.business.api.dialect.Dialect
[2] Help/Sirius/Glossary/Dialect
[3]
org.eclipse.sirius.business.api.dialect.AbstractRepresentationDialectServices
[4] org.eclipse.sirius.tree.business.internal.dialect.TreeDialect


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: New representation types [message #1386037 is a reply to message #1385957] Fri, 13 June 2014 07:01 Go to previous message
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
Laurent,

Great, thanks for the pointers!

Hallvard

On 12.06.14 15:11, Laurent Redor wrote:
> Le 12/06/2014 14:22, Hallvard Trætteberg a écrit :
>> Hi,
>>
>
> Hi,
>
>> Is there a way to create new representation types (i.e. not diagram,
>> table or tree). I assume this at least needs a (meta-)model and a
>> rendererer/editor for an instance of the (meta-)model. Is there an
>> extension point for registering new ones, and perhaps also some abstract
>> base classes for implementing the actual renderers/editors? Or is the
>> current set somehow hard-coded into the framework.
>
> No, it is not hard-coded. This notion is named a dialect [1] & [2].
> The extension point uses to define a new Dialect is
> org.eclipse.sirius.dialect.
> As starting point, you can have a look at:
> * AbstractRepresentationDialectServices [3]
> * or TreeDialect [4] as example, that probably is the simplest Dialect
>
>>
>> Hallvard
>
> Regards,
>
> Laurent
>
> [1] org.eclipse.sirius.business.api.dialect.Dialect
> [2] Help/Sirius/Glossary/Dialect
> [3]
> org.eclipse.sirius.business.api.dialect.AbstractRepresentationDialectServices
>
> [4] org.eclipse.sirius.tree.business.internal.dialect.TreeDialect
Previous Topic:Fixed layout
Next Topic:Unable to create first entity in emtpy table
Goto Forum:
  


Current Time: Tue Apr 16 16:55:08 GMT 2024

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

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

Back to the top