Skip to main content



      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 11:36 Go to next message
Eclipse UserFriend
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
Re: [EMF Forms] Custom Command in TreeViewer [message #1746228 is a reply to message #1746227] Tue, 25 October 2016 11:42 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: [EMF Forms] Custom Command in TreeViewer [message #1746603 is a reply to message #1746227] Tue, 01 November 2016 12:03 Go to previous messageGo to next message
Eclipse UserFriend
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 05:27 Go to previous messageGo to next message
Eclipse UserFriend
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 05:28] by Moderator

Re: [EMF Forms] Custom Command in TreeViewer [message #1748839 is a reply to message #1747963] Tue, 29 November 2016 04:09 Go to previous message
Eclipse UserFriend
Hi Vikash,
what do you want to achieve?

Cheers,
Eugen
--
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: Wed Jul 23 23:36:41 EDT 2025

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

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

Back to the top