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

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?

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

Current Time: Thu Feb 25 02:53:26 GMT 2021

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

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

Back to the top