Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Delete command of Model Element
Delete command of Model Element [message #1074265] Fri, 26 July 2013 11:55 Go to next message
serhat gezgin is currently offline serhat gezginFriend
Messages: 243
Registered: January 2013
Location: Izmir
Senior Member
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 12:30 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
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/
Previous Topic:SETTING-UP the EDITOR Models by code
Next Topic:Editor hasn't "Connection Creation Assistants" in MultiPageEditor
Goto Forum:
  


Current Time: Wed Apr 24 16:04:25 GMT 2024

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

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

Back to the top