Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Model transformation on EditPart
Model transformation on EditPart [message #1215872] Thu, 28 November 2013 08:17
serhat gezgin is currently offline serhat gezginFriend
Messages: 243
Registered: January 2013
Location: Izmir
Senior Member
Hi,

When objects attribute changed on diagram I need to model transformation on editpart of object;

my meta-model;
enum UIElementContext {
  Edit = 0;
  Display = 1;
}

abstract class UIFieldElement{
  attr UIElementContext context;
  ref content.NamedElement[1] contentField;
}

class TextInput extends UIFieldElement {
  attr boolean multi;
}

class LabelField extends UIFieldElement {
}


here i want to when TextInput objects context set to display i want to change TextInput class to LabelField and vice versa so how can i done this on handleNotificationEvent method or on different method, class?

Regards
Previous Topic:How can i make Compartment with Grid layout ?
Next Topic:Connection creation throws exception
Goto Forum:
  


Current Time: Fri Apr 10 07:27:48 GMT 2020

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

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

Back to the top