labs4capella / python4capella

Python for Capella
Eclipse Public License 2.0
52 stars 10 forks source link

Capella Simplified Metamodel - Appearance & Style properties #148

Open mvccogo opened 2 years ago

mvccogo commented 2 years ago

Greetings! According to the Simplified Metamodel, "...the content of diagram (graphical elements) is not yet defined". Does this mean that Style & Appearance properties cannot be exported/imported? If so, how could I add support for real-time editing of those elements? Below, the properties that I need to edit.

image

mvccogo commented 2 years ago

This seems related to #51, I'm new to Eclipse/Java development but willing to add this feature if needed.

ylussaud commented 2 years ago

No, for the moment we don't provide an API to get/set colors and styles. And yes it's related to #51. There is a discussion on on how to do this on the Capella forum. And also one on getting GMF Notation Nodes to get the coordinates of an element on a diagram that might be useful as well for diagram manipulation.

mvccogo commented 2 years ago

@ylussaud I see... I will give Stephane Lacrampe's solution a try, maybe that approach will be enough for what I need.

Having said that, if someone were to develop the necessary classes to directly deal with GMF definitions (in the Sirius module along with additions to the simplified Python API as you suggested), would that be implemented in P4C? Or is that considered too specific/out of scope of P4C?

ylussaud commented 2 years ago

It should be in the scope of #51, but I don't know if it will expose the GMF Notation concepts or provide shortcuts to deal with some of its properties...