Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Service Component Architecture (SCA) Tools » SCA Meta-model & Designer extensibility
SCA Meta-model & Designer extensibility [message #6206] Wed, 25 February 2009 11:11 Go to next message
Bogdan Vatkov is currently offline Bogdan VatkovFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Stephane,

I see SCA meta-model and designer extensibility is possible since December
2008 but I cannot find much details how this is technically done.
Could you please, describe with few sentences how this could be achieved?
e.g. is done only via extension points, what would be those extension
point?
Is there an example how the common SCA meta-model is extended with e.g.
additional binding type? How component visualizations are contriubuted to
the Deigner? Is it possible to change the shapes of the core components in
the SCA Designer via extension point too?

Thanks in advance.

Best regards,
Bogdan
Re: SCA Meta-model & Designer extensibility [message #6221 is a reply to message #6206] Thu, 26 February 2009 10:51 Go to previous messageGo to next message
Vincent Zurczak is currently offline Vincent ZurczakFriend
Messages: 149
Registered: July 2009
Senior Member

Hi Bogdan.


Bogdan Vatkov a écrit :
> I see SCA meta-model and designer extensibility is possible since
> December 2008 but I cannot find much details how this is technically done.
> Could you please, describe with few sentences how this could be
> achieved? e.g. is done only via extension points, what would be those
> extension point?
> Is there an example how the common SCA meta-model is extended with e.g.
> additional binding type? How component visualizations are contriubuted
> to the Deigner?

Yes, there are examples in the trunk showing how you can extend the
model and the diagram editor.

For the model extension (add a new binding and a new implementation),
take a look at *.domainmodel.frascati, *.domainmodel.frascati.edit and
*.domainmodel.frascati.editor (there is also an extension for Apache
Tuscany).

For the designer extension, take a look at *.diagram.frascati.

And to extend the validation (to add extra-constraints on your model),
you can take a look at *.validation.frascati


> Is it possible to change the shapes of the core
> components in the SCA Designer via extension point too?

Maybe Stéphane has done something about this, but I don't think it is
possible.


Regards,

Vincent Zurczak.


--
Vincent Zurczak
EBM WebSourcing
+33 (0) 4 38 12 16 77
Re: SCA Meta-model & Designer extensibility [message #6236 is a reply to message #6221] Thu, 26 February 2009 13:46 Go to previous messageGo to next message
Bogdan Vatkov is currently offline Bogdan VatkovFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Vincent,

Thanks for the details - I have managed to plug-in an additional binding
type in the meta-model and the diagram too, I did not try out this story
with the validator.

Btw, I cannot access the svn repository for stp. I tried with anonynous
and non=anonymous access but no success, the svn+ssh: says "connection
timeout" and svn: says "no such repository". I had to walk thtough the
sources via the web interface. Do you experience problems with the stp svn
repo these days? or if you have some hint, what could be wrong?

Best regards,
Bogdan
Re: SCA Meta-model & Designer extensibility [message #6251 is a reply to message #6236] Thu, 26 February 2009 15:11 Go to previous messageGo to next message
Vincent Zurczak is currently offline Vincent ZurczakFriend
Messages: 149
Registered: July 2009
Senior Member

Bogdan Vatkov a écrit :
> Hi Vincent,
>
> Thanks for the details - I have managed to plug-in an additional binding
> type in the meta-model and the diagram too, I did not try out this story
> with the validator.
>
> Btw, I cannot access the svn repository for stp. I tried with anonynous
> and non=anonymous access but no success, the svn+ssh: says "connection
> timeout" and svn: says "no such repository". I had to walk thtough the
> sources via the web interface. Do you experience problems with the stp
> svn repo these days? or if you have some hint, what could be wrong?

I just tried all of them (svn+ssh with my committer account, anonymous
svn and http) and I got no problem. But Eclipse servers have had some
troubles these last weeks.

Maybe you should give another try:
svn://dev.eclipse.org/svnroot/stp/org.eclipse.stp.sca-tools


Regards,

Vincent.


--
Vincent Zurczak
EBM WebSourcing
+33 (0) 4 38 12 16 77
Re: SCA Meta-model & Designer extensibility [message #6280 is a reply to message #6236] Mon, 02 March 2009 13:45 Go to previous messageGo to next message
Stephane Drapeau is currently offline Stephane DrapeauFriend
Messages: 199
Registered: July 2009
Senior Member
Bogdan Vatkov a écrit :
> Hi Vincent,
>
> Thanks for the details - I have managed to plug-in an additional binding
> type in the meta-model and the diagram too, I did not try out this story
> with the validator.
>
> Btw, I cannot access the svn repository for stp. I tried with anonynous
> and non=anonymous access but no success, the svn+ssh: says "connection
> timeout" and svn: says "no such repository". I had to walk thtough the
> sources via the web interface. Do you experience problems with the stp
> svn repo these days? or if you have some hint, what could be wrong?
>
> Best regards,
> Bogdan
>

Hi Bogdan,

Nice to hear you again. Are you willing to contribute to SCA Tools? ;)

Did you successfully add your new binding?

As Vincent said you, currently, there is no documentation but you can
have a look at the Frascati and Tuscany plugins. To resume, there are
two steps:
- First, create a new plugin where you define a new ecore that extends
the SCA MM. Then, generate the code. The namespace mustn't be the open
SOA one.
- Then, create a new plugin (...diagram). Edit the plugin.xml file and
add the extension points needed to add your new SCA elements in the SCA
Designer. You can also use the creation wizard (SCA Diagram Extension)
that generates this plugin. I recommend you to write directly the
plugin.xml file because this wizard isn't yet stable...
That's all.

If you want, you can explain the procedure on the wiki [0]. All the
contributions are welcome ;)

Concerning the possibility to change the shape, we didn't work on this.
You're the first that get onto this. I think that it can be an
interesting feature and not very hard to implement.

In addition, we received a contribution, one month ago, that allows to
introspect Java code (only POJO, not EJB as you made). We have a first
prototype where we can construct SCA assembly file in a bottom-up
manner. Some paperwork from the contributors are missing before I can
commit the code... I though this contribution can interest you.

Concerning the svn, did you use [1]?

Best regards,

Stephane Drapeau
Obeo

[0]: http://wiki.eclipse.org/STP/SCA_Component#Articles
[1]:
svn://dev.eclipse.org/svnroot/stp/org.eclipse.stp.sca-tools/ org.eclipse.stp.sca/trunk/
Re: SCA Meta-model & Designer extensibility [message #7631 is a reply to message #6280] Wed, 04 March 2009 15:40 Go to previous message
Bogdan Vatkov is currently offline Bogdan VatkovFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Stephane,

Nice to hear from you too :)

I could plug-in some bindings, implementations and even an interface :)

By knowing that Tuscany and Frascati plug-ins already leverage most of the
extensibility mechanisms and by reading the extensive doc at [0] I was
able to implement my bindings.

Right after Vincent and Etienne gave me the hint that Tuscany and Frascati
are already doing that I was able to go on with implementation :)

Regarding Designer (shapes, connectors) extensibility requirements I will
come back to you as soon as I have more info on what exactly is needed to
be extended/customized (e.g. colors, styles, shapes, layouts etc.).

Regarding the introspection - I think we will stick to EJB introspection
:), also other types, but we do not support plain Java, but yes it will be
interesting how Java files will be introspected and not that much from
model to model transformation (Java to SCA) POV but rather from
development artifact lifecycle POV i.e. when the very introspection
happens, is it on Java file save, or is it per explicit user action (e.g.
drag&drop), etc. This would be interesting.

I was not able to reach the stp repo via svn protocol - I tried from our
(firewalled) corporate network, but also from my home network (no
firewalls, no proxies, static ip address, etc.) and it did not work too.
Anyway I managed to reach the repo via http protocol :)

Best regards,
Bogdan

[0] http://dev.eclipse.org/mhonarc/lists/stp-dev/msg00730.html
Re: SCA Meta-model & Designer extensibility [message #574609 is a reply to message #6206] Thu, 26 February 2009 10:51 Go to previous message
Vincent Zurczak is currently offline Vincent ZurczakFriend
Messages: 149
Registered: July 2009
Senior Member

Hi Bogdan.


Bogdan Vatkov a écrit :
> I see SCA meta-model and designer extensibility is possible since
> December 2008 but I cannot find much details how this is technically done.
> Could you please, describe with few sentences how this could be
> achieved? e.g. is done only via extension points, what would be those
> extension point?
> Is there an example how the common SCA meta-model is extended with e.g.
> additional binding type? How component visualizations are contriubuted
> to the Deigner?

Yes, there are examples in the trunk showing how you can extend the
model and the diagram editor.

For the model extension (add a new binding and a new implementation),
take a look at *.domainmodel.frascati, *.domainmodel.frascati.edit and
*.domainmodel.frascati.editor (there is also an extension for Apache
Tuscany).

For the designer extension, take a look at *.diagram.frascati.

And to extend the validation (to add extra-constraints on your model),
you can take a look at *.validation.frascati


> Is it possible to change the shapes of the core
> components in the SCA Designer via extension point too?

Maybe Stéphane has done something about this, but I don't think it is
possible.


Regards,

Vincent Zurczak.


--
Vincent Zurczak
EBM WebSourcing
+33 (0) 4 38 12 16 77
Re: SCA Meta-model & Designer extensibility [message #574630 is a reply to message #6221] Thu, 26 February 2009 13:46 Go to previous message
Bogdan Vatkov is currently offline Bogdan VatkovFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Vincent,

Thanks for the details - I have managed to plug-in an additional binding
type in the meta-model and the diagram too, I did not try out this story
with the validator.

Btw, I cannot access the svn repository for stp. I tried with anonynous
and non=anonymous access but no success, the svn+ssh: says "connection
timeout" and svn: says "no such repository". I had to walk thtough the
sources via the web interface. Do you experience problems with the stp svn
repo these days? or if you have some hint, what could be wrong?

Best regards,
Bogdan
Re: SCA Meta-model & Designer extensibility [message #574644 is a reply to message #6236] Thu, 26 February 2009 15:11 Go to previous message
Vincent Zurczak is currently offline Vincent ZurczakFriend
Messages: 149
Registered: July 2009
Senior Member

Bogdan Vatkov a écrit :
> Hi Vincent,
>
> Thanks for the details - I have managed to plug-in an additional binding
> type in the meta-model and the diagram too, I did not try out this story
> with the validator.
>
> Btw, I cannot access the svn repository for stp. I tried with anonynous
> and non=anonymous access but no success, the svn+ssh: says "connection
> timeout" and svn: says "no such repository". I had to walk thtough the
> sources via the web interface. Do you experience problems with the stp
> svn repo these days? or if you have some hint, what could be wrong?

I just tried all of them (svn+ssh with my committer account, anonymous
svn and http) and I got no problem. But Eclipse servers have had some
troubles these last weeks.

Maybe you should give another try:
svn://dev.eclipse.org/svnroot/stp/org.eclipse.stp.sca-tools


Regards,

Vincent.


--
Vincent Zurczak
EBM WebSourcing
+33 (0) 4 38 12 16 77
Re: SCA Meta-model & Designer extensibility [message #574685 is a reply to message #6236] Mon, 02 March 2009 13:45 Go to previous message
Stephane Drapeau is currently offline Stephane DrapeauFriend
Messages: 199
Registered: July 2009
Senior Member
Bogdan Vatkov a écrit :
> Hi Vincent,
>
> Thanks for the details - I have managed to plug-in an additional binding
> type in the meta-model and the diagram too, I did not try out this story
> with the validator.
>
> Btw, I cannot access the svn repository for stp. I tried with anonynous
> and non=anonymous access but no success, the svn+ssh: says "connection
> timeout" and svn: says "no such repository". I had to walk thtough the
> sources via the web interface. Do you experience problems with the stp
> svn repo these days? or if you have some hint, what could be wrong?
>
> Best regards,
> Bogdan
>

Hi Bogdan,

Nice to hear you again. Are you willing to contribute to SCA Tools? ;)

Did you successfully add your new binding?

As Vincent said you, currently, there is no documentation but you can
have a look at the Frascati and Tuscany plugins. To resume, there are
two steps:
- First, create a new plugin where you define a new ecore that extends
the SCA MM. Then, generate the code. The namespace mustn't be the open
SOA one.
- Then, create a new plugin (...diagram). Edit the plugin.xml file and
add the extension points needed to add your new SCA elements in the SCA
Designer. You can also use the creation wizard (SCA Diagram Extension)
that generates this plugin. I recommend you to write directly the
plugin.xml file because this wizard isn't yet stable...
That's all.

If you want, you can explain the procedure on the wiki [0]. All the
contributions are welcome ;)

Concerning the possibility to change the shape, we didn't work on this.
You're the first that get onto this. I think that it can be an
interesting feature and not very hard to implement.

In addition, we received a contribution, one month ago, that allows to
introspect Java code (only POJO, not EJB as you made). We have a first
prototype where we can construct SCA assembly file in a bottom-up
manner. Some paperwork from the contributors are missing before I can
commit the code... I though this contribution can interest you.

Concerning the svn, did you use [1]?

Best regards,

Stephane Drapeau
Obeo

[0]: http://wiki.eclipse.org/STP/SCA_Component#Articles
[1]:
svn://dev.eclipse.org/svnroot/stp/org.eclipse.stp.sca-tools/ org.eclipse.stp.sca/trunk/
Re: SCA Meta-model & Designer extensibility [message #574805 is a reply to message #6280] Wed, 04 March 2009 15:40 Go to previous message
Bogdan Vatkov is currently offline Bogdan VatkovFriend
Messages: 16
Registered: July 2009
Junior Member
Hi Stephane,

Nice to hear from you too :)

I could plug-in some bindings, implementations and even an interface :)

By knowing that Tuscany and Frascati plug-ins already leverage most of the
extensibility mechanisms and by reading the extensive doc at [0] I was
able to implement my bindings.

Right after Vincent and Etienne gave me the hint that Tuscany and Frascati
are already doing that I was able to go on with implementation :)

Regarding Designer (shapes, connectors) extensibility requirements I will
come back to you as soon as I have more info on what exactly is needed to
be extended/customized (e.g. colors, styles, shapes, layouts etc.).

Regarding the introspection - I think we will stick to EJB introspection
:), also other types, but we do not support plain Java, but yes it will be
interesting how Java files will be introspected and not that much from
model to model transformation (Java to SCA) POV but rather from
development artifact lifecycle POV i.e. when the very introspection
happens, is it on Java file save, or is it per explicit user action (e.g.
drag&drop), etc. This would be interesting.

I was not able to reach the stp repo via svn protocol - I tried from our
(firewalled) corporate network, but also from my home network (no
firewalls, no proxies, static ip address, etc.) and it did not work too.
Anyway I managed to reach the repo via http protocol :)

Best regards,
Bogdan

[0] http://dev.eclipse.org/mhonarc/lists/stp-dev/msg00730.html
Previous Topic:ecore model instance
Next Topic:SCA builder & wiki update
Goto Forum:
  


Current Time: Thu Mar 28 16:54:32 GMT 2024

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

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

Back to the top