Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Model transformation on EditPart
Model transformation on EditPart [message #1215872] Thu, 28 November 2013 03:17
Eclipse UserFriend
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: Sun Jul 13 03:50:02 EDT 2025

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

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

Back to the top