JKeyManager prototype

Well, after some work last night and this morning, I have a prototype:
JKeyMan prototype

It looks pretty much like KeyToolGUI so far, but I hope to move further away from that with every piece of added functionality.

I really am starting to like JFaces. It makes the creation of Actions quite a bit easier than standard SWT or Swing. Instead of handling the events yourself, you create a class that extends Action and define the run() method with what you want to happen. Then, you can reuse the actions, so for instance, I am reusing the Open Keystore action for both the toolbar AND the menu. Awesome.

Also, the actions made it pretty easy to genericize the code, so I am loading the menu and toolbar based off of data in the properties file.

However, I am struggling a bit as to how I should get information between the Actions and the main window… Specifically, I am not quite sure how to indicate to each Action when it is enabled or disabled. So, when the program starts up, right now all of the actions are enabled, including the Refresh action. Now, thats not a huge deal, but when I add the Create Key actions, that will be a big deal. I think I can solve this via the Observer pattern and some “event scripting” in Jython or Groovy. Need to prototype it out.