Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF Parsley » context menu (delete option)(How to control delete option depending user role)
context menu (delete option) [message #1850144] Thu, 17 February 2022 21:55 Go to next message
Olivier BISSON is currently offline Olivier BISSONFriend
Messages: 6
Registered: February 2022
Junior Member
Hi,

I m trying to modify a running EMF Parlsey application and control the "delete" option on the context menu. (Rigth click : see image in copy)

I m searching how to show this "delete" option only if user has a role but i don t know were it could be control.

Any idea will be great.

thanks
Oliver
Re: context menu (delete option) [message #1850153 is a reply to message #1850144] Fri, 18 February 2022 08:54 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1803
Registered: July 2009
Location: Firenze, Italy
Senior Member
As far as I remember, you have to handle the generation of context menus manually: for the moment you cannot simply disable a default context menu, you have to create all the items in the context menu of a given object

Re: context menu (delete option) [message #1850163 is a reply to message #1850153] Fri, 18 February 2022 15:03 Go to previous messageGo to next message
Olivier BISSON is currently offline Olivier BISSONFriend
Messages: 6
Registered: February 2022
Junior Member
Hi here the solution finded.
Maybe will be util for someone.

In view.parsley -> section menuBuilder

menuBuilder {
		menus {
			ObjectTypeToReplace -> #[				
				separator
			]
		}
	}


Re: context menu (delete option) [message #1850171 is a reply to message #1850163] Sat, 19 February 2022 08:54 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1803
Registered: July 2009
Location: Firenze, Italy
Senior Member
Exactly! Thanks for sharing :)

Previous Topic:how to make a ComboView not selectable
Next Topic:Customize default SaveableTreeView edit action
Goto Forum:
  


Current Time: Mon Dec 05 21:56:52 GMT 2022

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

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

Back to the top