Skip to main content



      Home
Home » Newcomers » Newcomers » binding question
binding question [message #212067] Fri, 25 May 2007 05:26 Go to next message
Eclipse UserFriend
Hello,

I've some questions whose answers I was not able to find in the archive.

1. Calling a action via a Keybinding using parameters.
In my application I want the F3 Button to do two different jobs depending
on which perspective the user presses the button.
In perspective A F3 exits the application.
In perspective B F3 closes the current perstecive and opens perspective A

Therefor A addet a context in the context extension point and also created
all commands, bindings and actions required. A PerspectiveAdapter listens
to perspective changes and changes the context programatically.

When starting the application F3 does its job in perspective A.
When changing to perspective B F3 does nothing. I assume that means that
manually changing the context and assigning a different binding to F3
works.

The problem is that my changePerspectiveAction() expects parameters. (a
perspective ID).

a. My Question is, can I call my switchPerspectiveAction using a
parameters? Or,

b. can I add this functionality to my perspectives avoiding extensionpoint
configuration at all (a 'gobal' key listener e.g. ???)

Thanks!
Re: binding question [message #212213 is a reply to message #212067] Sun, 27 May 2007 09:55 Go to previous message
Eclipse UserFriend
Hi jan. This is a somewhat involved question for the newcomer group. I
wonder if you might have better luck on the eclipse.platform.rcp
newsgroup. HTH. Mark Dexter
Previous Topic:Plug-in tutorial
Next Topic:fatjar plug-in license
Goto Forum:
  


Current Time: Sun May 11 07:35:13 EDT 2025

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

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

Back to the top