Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Custom Plug-in - Capture the Mouse Right Click popup menu selection
Custom Plug-in - Capture the Mouse Right Click popup menu selection [message #1835870] Tue, 15 December 2020 14:27
Jayaseelan Gabriel is currently offline Jayaseelan GabrielFriend
Messages: 1
Registered: December 2020
Junior Member
Dear All,

Recently I have developed a plugin for education purpose. The main functionality of this plug-in is capture the copy & paste action in the editor.

I have used ICommandService class to capture the copy & paste event. It is working successfully in Keyboard shortcuts ( Cntl+V) and eclipse main menu ( Edit--> Paste)

But same is not working while using Mouse Right Click -> Popup Menu -> Paste.

Is there any way to capture the Mouse Popup Menu Selection.

I am using following code to capture the Paste event.

ICommandService commandService = (ICommandService) PlatformUI.getWorkbench().getService(ICommandService.class);
Command defaultCopyCommand = commandService.getCommand(org.eclipse.ui.IWorkbenchCommandConstants.EDIT_COPY);
Command defaultPasteCommand = commandService.getCommand(org.eclipse.ui.IWorkbenchCommandConstants.EDIT_PASTE);

Thanks in Advance.
Previous Topic:What is required to make a documentation plugin show up in Eclipse Infocenter 4.17 war?
Next Topic:JakartaMail / JavaMail: IOException: no data
Goto Forum:

Current Time: Mon May 10 19:51:26 GMT 2021

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

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

Back to the top