|
|
|
|
|
Re: KeyBindings don't work after product is exported [message #482410 is a reply to message #482091] |
Wed, 26 August 2009 13:16 |
|
Thanx, that looks fine. What scheme does eclipse think is active? Either bring up the keys preference page or if that is not in your RCP product write a little command/handler:
import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.jface.bindings.Scheme;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.keys.IBindingService;
public class WhatSchemeHandler extends AbstractHandler {
public Object execute(ExecutionEvent event) throws ExecutionException {
IBindingService s = (IBindingService) PlatformUI.getWorkbench()
.getService(IBindingService.class);
Scheme scheme = s.getActiveScheme();
System.out.println(scheme.getId() + "\t" + scheme);
return null;
}
}
That will tell you what scheme is active in your RCP product.
PW
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03556 seconds