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: 601
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: 50
Registered: July 2009
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
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: 601
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:What is wrong
Goto Forum:
  


Current Time: Tue Dec 23 00:59:56 GMT 2014

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

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