A part my project is to build plug-in to recommend for menuitems in the main menu of eclipse. So i need some sort of highlight at menuItem when i drop down menu(File).
I know for example to Listen for command From menuItem with this code:
private IExecutionListener listener = new IExecutionListener() {
@Override
public void postExecuteSuccess(String commandId, Object returnValue) {
System.out.println(commandId);
}
};
public void setWorkbench(IWorkbench workbench) {
getCommandService(workbench).addExecutionListener(listener);
}
public void unsetWorkbench(IWorkbench workbench) {
getCommandService(workbench).removeExecutionListener(listener);
}
private ICommandService getCommandService(IWorkbench workbench) {
return (ICommandService)workbench.getAdapter(ICommandService.class);
}
so now i need something similar to it(if it possible) to listen for drop down even, or mouse hover event, anything that helps me to Listen.
hope this explains my problem.
Another question is how i listen to every thing in the workbench while hovering with the mouse? i mean when my mouse for example hovers over toolbar item or menu item, it tells me that?
thanks