|
Re: Parent and Child Node [message #1612900 is a reply to message #1609739] |
Thu, 12 February 2015 09:16 |
|
> Hi,
Hi,
> im new with Sirius. I want to create a new graphical Editor for my
> current Model project. There are 2 Class TrackSectionControl and
> CrossingControl. Class CrossingControl extends SuperClass
> TrackSectionControl.
So, to avoid confusions, did you create a model based on ecore with two
EClass "CrossingControl" and "TrackSectionControl" ? Or those classes
are from your meta-model defined with Ecore ?
> Now problem appear when i want to present a Node
> CrossingControl. It displays 2 times 1 Node with TrackSectionControl
> View and 1 Node with CrossingControl View. However i want to display
> only Node with CrossingControl View. Is there anyway to hide Node with
> TrackSectionControl View? One more question i want to display EOperation
> of my EClass. Is there any solution?
If you defined a specification model based on Ecore, with two EClass
TrackSectionControl and CrossingControl, you can use a precondition
expression on the EClass name to restrict the created view only for
"CrossingControl". But if TrackSectionControl and CrossingControl are
types from your meta-model, you have to restrict the Domain class on
"CrossingControl".
If you want more informations about how define sub-nodes (to display
EOperations for instance) I suggest you to take a look on the specifier
documentation
(http://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html)
>
> im so sorry about my language, because english is not my mother language
> and i dont used to use it usually. That is great to have an answer from
> you. Thanks a lot and have a good day.
>
> Minh Hiep Pham
Regards,
--
Florian - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
|
|
Re: Parent and Child Node [message #1618942 is a reply to message #1615084] |
Mon, 16 February 2015 08:25 |
|
A good example is the project "Ecore Tools" which is based on Sirius.
See http://git.eclipse.org/c/ecoretools/org.eclipse.ecoretools.git/. You
can take a look in the org.eclipse.emf.ecoretools.design project which
contains the *.odesign and the services.
> Hi Florian,
>
> Thanks a lot for your help! I have edit my post with the screenshot from
> my work. Can you check it, which wrong did i do? I want to learn more
> about service methods! Do you have any example or something else! I have
> read the documentation. However i have not really understand about the
> information! I need so much help about that.
> Regards,
>
> Minh Hiep Pham
--
Florian - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
Powered by
FUDForum. Page generated in 0.04869 seconds