Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Delete command of Model Element
Delete command of Model Element [message #1074265] Fri, 26 July 2013 07:55 Go to next message
Eclipse UserFriend
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
Re: Delete command of Model Element [message #1074288 is a reply to message #1074265] Fri, 26 July 2013 08:30 Go to previous message
Eclipse UserFriend
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
Previous Topic:SETTING-UP the EDITOR Models by code
Next Topic:Editor hasn't "Connection Creation Assistants" in MultiPageEditor
Goto Forum:
  


Current Time: Sun Jul 13 15:23:39 EDT 2025

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

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

Back to the top