Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Forms] How to add actions to a form(I can't work out how to add buttons to a form or receive events from controls on it)
[EMF Forms] How to add actions to a form [message #1422241] Fri, 12 September 2014 14:44 Go to next message
Phil B is currently offline Phil BFriend
Messages: 7
Registered: February 2012
Junior Member
Hello,
I've been trying out EMF Forms in an RCP application and it does indeed seem like a very quick way to create a data bound form.

So now I want to add some more action oriented features to my form.
In particular I want to add a button, provide a popup menu on a table and I want the property view to be able to pick up selection events from a table.

I created a Custom Control containing a push button but I found that it needed a Custom Domain Model Reference and that Custom Domain Model Reference had to provide a VFeaturePathDomainModelReference/DomainModelEFeature.
Is there any way to avoid the need for the DomainModelEFeature as my push button isn't really associated with a feature?

I've had a look at TableControlSWTRenderer and ECPSWTView but I can't work out how I should hook a popup menu into them or hook into selection events. Does anyone have any suggestions?

Thanks
Phil
Re: [EMF Forms] How to add actions to a form [message #1423935 is a reply to message #1422241] Mon, 15 September 2014 07:44 Go to previous message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi,

is the button somehow connected with the table? If so, I would override
the default table renderer and provide your own implementation which
adds the Button and also handles the selection as you need it to.


Best Regards

Jonas

Am 12.09.2014 16:44, schrieb Phil B:
> Hello,
> I've been trying out EMF Forms in an RCP application and it does indeed
> seem like a very quick way to create a data bound form.
>
> So now I want to add some more action oriented features to my form.
> In particular I want to add a button, provide a popup menu on a table
> and I want the property view to be able to pick up selection events from
> a table.
>
> I created a Custom Control containing a push button but I found that it
> needed a Custom Domain Model Reference and that Custom Domain Model
> Reference had to provide a
> VFeaturePathDomainModelReference/DomainModelEFeature.
> Is there any way to avoid the need for the DomainModelEFeature as my
> push button isn't really associated with a feature?
>
> I've had a look at TableControlSWTRenderer and ECPSWTView but I can't
> work out how I should hook a popup menu into them or hook into selection
> events. Does anyone have any suggestions?
>
> Thanks
> Phil
Previous Topic:[TEXO] Performance issue during Serializing Objects into XMI using Texo's ModelXMLSaver
Next Topic:[EMFForms] Custom Group Control has wrong numColumns
Goto Forum:
  


Current Time: Fri Apr 26 18:30:43 GMT 2024

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

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

Back to the top