Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Forms] Custom Command in TreeViewer
[EMF Forms] Custom Command in TreeViewer [message #1746227] Tue, 25 October 2016 15:36 Go to next message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 174
Registered: May 2015
Senior Member
Repost:
Dear Community,

Currently I develop an EMF-project based on RAP. I can load, edit and view my model with custom ViewModels and works even in the tomcat as a separate web application. Now I need the following feature, which was not possible for me to implement using any documentation:

I would like to have an additional custom command in the context on my elements in the treeview, which will call some custom action. I tried to add custom command to the implementation of IEditingDomainItemProvider, but it was not possible for me because I can only override existing Commands, not adding extra ones. Is it not intended to add custom commands?

Best Regards,
Peter Friedland


--
Eugen Neufeld

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: [EMF Forms] Custom Command in TreeViewer [message #1746228 is a reply to message #1746227] Tue, 25 October 2016 15:42 Go to previous messageGo to next message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 174
Registered: May 2015
Senior Member
Hi Peter,
there is an extension point called: org.eclipse.emf.ecp.view.treemasterdetail.ui.swt.masterDetailActions
there you can add actions.
Those Actions must extend org.eclipse.emf.ecp.view.spi.treemasterdetail.ui.swt.MasterDetailAction.
The execute(EObject object) Method provides the currently selected Object.

Cheers,
Eugen


--
Eugen Neufeld

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: [EMF Forms] Custom Command in TreeViewer [message #1746603 is a reply to message #1746227] Tue, 01 November 2016 16:03 Go to previous messageGo to next message
Peter Friedland is currently offline Peter FriedlandFriend
Messages: 6
Registered: November 2016
Junior Member
Hi Eugen,

now my account is registered properly.

Thank you very much, that solved my problem as expected Wink
Re: [EMF Forms] Custom Command in TreeViewer [message #1747963 is a reply to message #1746603] Thu, 17 November 2016 10:27 Go to previous messageGo to next message
vikash singh is currently offline vikash singhFriend
Messages: 5
Registered: November 2016
Junior Member
HI
can you please explain little bit more about which class we have to extend or implements .if it is possible please explain all steps.

[Updated on: Thu, 17 November 2016 10:28]

Report message to a moderator

Re: [EMF Forms] Custom Command in TreeViewer [message #1748839 is a reply to message #1747963] Tue, 29 November 2016 09:09 Go to previous message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 174
Registered: May 2015
Senior Member
Hi Vikash,
what do you want to achieve?

Cheers,
Eugen
--
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/


--
Eugen Neufeld

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Previous Topic:[EMF Forms] Remove Create and Link Button on Table Control
Next Topic:[EMFFORMS] Dependencies in custom application
Goto Forum:
  


Current Time: Fri Apr 19 11:46:33 GMT 2024

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

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

Back to the top