Thursday, July 10, 2008

Utility Computer

I implemented the UtilityComputer task for OpenBiomind-GUI. Following is the snapshot of the wizard:

Tuesday, July 8, 2008

How to fix "workspace excited with unsaved changes" issue?

!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

While using the workspace resources in Eclipse 3.4 RCP application, if you get the above message whenever you restart the workbench, then you need to save the workspace, before existing the workbench. One possible, way to do this is to overload the preWindowShellClose() method in your of WorkbenchWindowAdvisor. You can save the workspace by using ResourcesPlugin.getWorkspace().save(...) method.

Following snippet elaborates this (this snippet was modified from revision 32 of ApplicationWorkbenchWindowAdvisor):

File Menu and Edit Menu

Eclipse RCP 3.4 allows you to easily add menu commands. You just need to use the ID of an existing command as the command ID of the menu item. I used that extensively to create the File and Edit menus.
File Menu

Edit Menu

Following is the code snippet of plugin.xml file (you may also look at the revision 34 from where this snippet has been copied):

Sunday, July 6, 2008

Meta Task

I implemented the MetaTask task for OpenBiomind-GUI. Following is the snapshot of the wizard: