Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » ECP Static UI widgets into Editor
ECP Static UI widgets into Editor [message #1287432] Mon, 07 April 2014 15:59 Go to next message
Eclipse UserFriend
I am using ECP to develop a model Application. The documentation "EMF Forms: View Model Elements" mentions that you can put "Label and Separators" in the editor view to add static UI elements to structure the UI.

I want to add buttons that do not have any model attributes assigned, such as save and cancel. Is it possible to add static UI elements such as these. If so, how do you do this with a view model or how can you do it via hard coding. Susan
Re: ECP Static UI widgets into Editor [message #1288016 is a reply to message #1287432] Tue, 08 April 2014 03:47 Go to previous message
Eclipse UserFriend
Hi Susan,
you can either use CustomControls (see http://eclipsesource.com/blogs/tutorials/emf-forms-view-model-elements/#customcontrols )
or implement your own view model element and a renderer.
I would recommend to use custom controls for very specific problems, where you need a specific control for a very specific attribute. Those controls are mostly used only once in the view model.
If you can implement the save/cancel buttons in a way that you can reuse them multiple times (e.g. on multiple views) without code changes, then I would recommend you to create an own view model element for those.

Cheers,
Eugen
Previous Topic:[EMF Store] Re-connection to server
Next Topic:[EMFForms] Indigo version
Goto Forum:
  


Current Time: Wed Jul 16 17:47:50 EDT 2025

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

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

Back to the top