Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Activate actionSets, commands & bindings plugin before workbench startup
Activate actionSets, commands & bindings plugin before workbench startup [message #462300] Fri, 26 January 2007 07:55 Go to next message
Steven is currently offline StevenFriend
Messages: 3
Registered: July 2009
Junior Member
Hi,

How do I load/activate the plugins for org.eclipse.ui.actionSets, commands, and bindings before workbench is start-up?

I can't use org.eclipse.ui.startup, earlyStartup() as it is only executed after workbench has been started.

I tried to access IConfigurationElements of org.eclipse.ui.actionSets, commands, and bindings to get Eclipse to load their plugins. But it does not seem to work.

Any help on this subject is much appreciated.

Thanks. Rgds.
Re: Activate actionSets, commands & bindings plugin before workbench startup [message #462311 is a reply to message #462300] Fri, 26 January 2007 13:29 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

1) you can't
2) don't

Even early startup is supposed to initialize data (or re-establish io
connections or database information, etc) ... not to pre-load UI elements.

:-)

OK, now that I've covered the best practices, what behaviour are you
trying to accomplish that you would like to load action set <actions/>
or commands and keybindings ... and why do you think you need them
before the workbench itself is up?

Also note, in RCP there are pre and post methods on WorkbenchAdvisor and
WorkbenchWindowAdvisor ... but they usually depend on the workbench
being up.

Until the workbench comes up, none of the extension points have been
read. In some cases, the extension points are not read until a
workbench window comes up.

PW


Re: Activate actionSets, commands & bindings plugin before workbench startup [message #462389 is a reply to message #462311] Mon, 29 January 2007 01:50 Go to previous messageGo to next message
Steven is currently offline StevenFriend
Messages: 3
Registered: July 2009
Junior Member
Thks for the reply.

My project needs to open a login dialog box to allow users to input their user ID and password. After the user has input the data, the system will perform some security checks before loading the UI workbench. I'm not sure why security checks must be done before loading the UI workbench but it is a key requirement for my project team.

The users can only input the data using a virtual keyboard on a touchscreen. Therefore, I need to use the actionSet, command and binding extension points to capture key events on the virtual keyboard to display the correct alphabets & digits on the screen.

As such, I need to load the actionSet, command, and binding extension points before the UI workbench is opened.
Re: Activate actionSets, commands & bindings plugin before workbench startup [message #462391 is a reply to message #462389] Mon, 29 January 2007 02:37 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
You ought to look into Eclipse-JAAS, which also has an associated talk scheduled for EclipseCon this year. It aims to do something similar.

Note that the splash screen and dialog box asking which workbench you want to use does essentially this already, but IIRC doesn't use the actionSet or similar to deal with user interaction. Indeed, I'm not sure it makes sense to think about using actionSets prior to the workspace UI's initialisation.

http://sourceforge.net/projects/eclipse-jaas
http://www.eclipsecon.org/2007/index.php?page=sub/&id=38 89

Alex.
Re: Activate actionSets, commands & bindings plugin before workbench startup [message #462393 is a reply to message #462391] Mon, 29 January 2007 03:35 Go to previous messageGo to next message
Steven is currently offline StevenFriend
Messages: 3
Registered: July 2009
Junior Member
My project is using Eclipse-JAAS but it's being handled by another team mate. So I'm not really sure about the specifics.

I'm wondering what is the specific reason for the inability to load actionSet, command, and binding extension points before workbench is being loaded?

Just curious to know.
Re: Activate actionSets, commands & bindings plugin before workbench startu [message #462407 is a reply to message #462393] Mon, 29 January 2007 10:54 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
Because they depend on the workbench being up? It's like complaining that you can't move anywhere in a car before turning it on.

Alex
Re: Activate actionSets, commands & bindings plugin before workbench startu [message #462409 is a reply to message #462393] Mon, 29 January 2007 10:57 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
Because they depend on the workbench being up? It's like complaining that you can't move anywhere in a car before turning it on.

Alex
Re: Activate actionSets, commands & bindings plugin before workbench startup [message #462439 is a reply to message #462393] Mon, 29 January 2007 15:26 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Steven wrote:
>
> I'm wondering what is the specific reason for the inability to load actionSet, command, and binding extension points before workbench is being loaded?

They're a function of the working workbench/workbench window ... and in
the actionSet case, they are tied specifically to a menu item or toolbar
item ... you don't initialize a toolbar item until you have a toolbar to
point to ...

That being said, none of that is necessary. Your virtual keyboard is
just an input device. Does it not generate key pressed events? Any
dialog you put up should get them already, and of course you can add a
filter to the display to capture global key press events as they go through.

eclipse-jaas must already do part of the login work and get this input, no?

Later,
PW


Previous Topic:Problem about ComboBoxCellEditor, loading dynamic items.
Next Topic:Unhandled event loop exception
Goto Forum:
  


Current Time: Fri Sep 13 12:02:24 GMT 2024

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

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

Back to the top