Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Filtering key binding / Activities support it someway?
Filtering key binding / Activities support it someway? [message #330963] Tue, 19 August 2008 17:08 Go to next message
Marcelo Alcantara is currently offline Marcelo AlcantaraFriend
Messages: 48
Registered: July 2009
Member
Hi,

I am using the extensions meachanism as a way to control access to resources
in our applications here.

The big problem right now is how to filter the shortcut key bindings.

Somebody has some idea about it? I googled a lot today searching for some
information without no clues. I also tried to filter all the possible ids
inside the key bindinds definition without success.

Thanks in advance,

Marcelo
Re: Filtering key binding / Activities support it someway? [message #330968 is a reply to message #330963] Tue, 19 August 2008 19:07 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Marcelo Alcantara wrote:
> Hi,
>
> I am using the extensions meachanism as a way to control access to resources
> in our applications here.
>
> The big problem right now is how to filter the shortcut key bindings.

AFAIK the filtering is not applied against keybindings. You might have
to go in and delete them yourself. There's no easy API for
adding/removing keybindings (it's an expensive operation) but at login
you might be able to modify them. Check out IBindingService

BTW: you make system bindings disappear by *adding* a delete binding :-)
Check out how the KeysPreferencePage does it.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Re: Filtering key binding / Activities support it someway? [message #334262 is a reply to message #330963] Thu, 29 January 2009 18:32 Go to previous message
Jens  übler is currently offline Jens üblerFriend
Messages: 17
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------070405060508060707000609
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Marcelo Alcantara schrieb:
> Hi,
>
> I am using the extensions meachanism as a way to control access to resources
> in our applications here.
>
> The big problem right now is how to filter the shortcut key bindings.
>
> Somebody has some idea about it? I googled a lot today searching for some
> information without no clues. I also tried to filter all the possible ids
> inside the key bindinds definition without success.
>
> Thanks in advance,
>
> Marcelo
>
>

Execution of commands started by bindings can be denied with the
attached patch. If you want to discard certain bindings within the
preferences take a look at BindingModel.

Jens

--------------070405060508060707000609
Content-Type: text/plain;
name="patchBindings.txt"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="patchBindings.txt"

IyMjIEVjbGlwc2UgV29ya3NwYWNlIFBhdGNoIDEuMAojUCBvcmcuZWNsaXBz ZS51aS53b3Jr
YmVuY2gKSW5kZXg6IEVjbGlwc2UgVUkvb3JnL2VjbGlwc2UvdWkvaW50ZXJu YWwva2V5cy9X
b3JrYmVuY2hLZXlib2FyZC5qYXZhCj09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6 IC9jdnNyb290
L2VjbGlwc2Uvb3JnLmVjbGlwc2UudWkud29ya2JlbmNoL0VjbGlwc2UgVUkv b3JnL2VjbGlw
c2UvdWkvaW50ZXJuYWwva2V5cy9Xb3JrYmVuY2hLZXlib2FyZC5qYXZhLHYK cmV0cmlldmlu
ZyByZXZpc2lvbiAxLjk3LjQuMQpkaWZmIC11IC1yMS45Ny40LjEgV29ya2Jl bmNoS2V5Ym9h
cmQuamF2YQotLS0gRWNsaXBzZSBVSS9vcmcvZWNsaXBzZS91aS9pbnRlcm5h bC9rZXlzL1dv
cmtiZW5jaEtleWJvYXJkLmphdmEJMzEgSnVsIDIwMDggMTc6MDM6MzUgLTAw MDAJMS45Ny40
LjEKKysrIEVjbGlwc2UgVUkvb3JnL2VjbGlwc2UvdWkvaW50ZXJuYWwva2V5 cy9Xb3JrYmVu
Y2hLZXlib2FyZC5qYXZhCTI5IEphbiAyMDA5IDE3OjQ4OjEzIC0wMDAwCkBA IC00NjksNyAr
NDY5LDkgQEAKIAkJfQogCiAJCXRyeSB7Ci0JCQloYW5kbGVyU2VydmljZS5l eGVjdXRlQ29t
bWFuZChwYXJhbWV0ZXJpemVkQ29tbWFuZCwgdHJpZ2dlcik7CisJCSAgaWYg KHdvcmtiZW5j
aC5nZXRBY3Rpdml0eVN1cHBvcnQoKS5nZXRBY3Rpdml0eU1hbmFnZXIoKS5n ZXRBY3Rpdml0
eShjb21tYW5kLmdldElkKCkpLmlzRW5hYmxlZCgpKSB7CisgICAgICAgIGhh bmRsZXJTZXJ2
aWNlLmV4ZWN1dGVDb21tYW5kKHBhcmFtZXRlcml6ZWRDb21tYW5kLCB0cmln Z2VyKTsKKyAg
ICAgIH0KIAkJfSBjYXRjaCAoZmluYWwgTm90RGVmaW5lZEV4Y2VwdGlvbiBl KSB7CiAJCQkv
LyBUaGUgY29tbWFuZCBpcyBub3QgZGVmaW5lZC4gRm9yd2FyZGVkIHRvIHRo ZSBJRXhlY3V0
aW9uTGlzdGVuZXIuCiAJCX0gY2F0Y2ggKGZpbmFsIE5vdEVuYWJsZWRFeGNl cHRpb24gZSkg
ewo=
--------------070405060508060707000609--
Previous Topic:Headless Build for Custom Builder
Next Topic:RCP dev - how to handle plugin.jars ?
Goto Forum:
  


Current Time: Sat Oct 19 12:09:24 GMT 2024

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

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

Back to the top