|
Re: Delete command of Model Element [message #1074288 is a reply to message #1074265] |
Fri, 26 July 2013 12:30 |
Ed Merks Messages: 33158 Registered: July 2009 |
Senior Member |
|
|
Serhat,
Cross posting the same question to multiple newsgroups tends to generate
more work for the people helping. You're question on the EMF Tools
newsgroup mentioned nothing about GMF and the answer for how to
specialize something like the delete action might well be different for
GMF than for an EMF editor...
On 26/07/2013 1:55 PM, serhat gezgin wrote:
> Hi all,
>
> I want to customize delete action of my model. But dont know how can i
> do this.
>
> For example i have;
>
>
> abstract class ContentUnit {
> attr String name;
> }
>
> @gmf.diagram(foo="bar")
> class ContentModel extends ContentUnit {
> attr String webApplicataionName;
> attr String siteCollectionName;
> val Web ownedWeb;
> }
>
> @gmf.node(label = "displayName")
> class Web extends ContentUnit {
> @gmf.compartment(foo="bar")
> val CustomList[*] ownedList;
> @gmf.compartment(foo="bar")
> val Web[*] ownedWeb;
> }
>
> @gmf.node(label = "displayName")
> class CustomList extends ContentUnit {
> }
>
>
> this metamodel of my dsl.
>
> and on diagram when a web deleted i want to delete a element releated
> to another resource(emf resource) on file system.
>
> but i dont know how can i done this.
>
> so anyone can help me ?
>
> Regards
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03311 seconds