Sonntag, 23. März 2008

User settings

The new property page for MoreUnit is finished. Last week I spend some time to get the test running again.
There was a enhancement request to store the settings within the project. Today I got started with scopes for preferences and implemented a first version which stores the project specific settings within the project folder.

Sonntag, 16. März 2008

Source folder mapping

This weekend I implemented the source folder mapping. For every project you can configure test folder and corresponding source folder. It was quite a lot work to make moreUnit run again. Switching seems to work fine again. But there is still much more to do.
Additionally I got some user feedback about a preformance leak. Markus Gebhard gave very valuable feedback about some performance problems. So I invested some time to solve this problem and Markus started his profiler again => MoreUnit is a lot faster now :-)

Mittwoch, 12. März 2008

Checkbox for project specific settings

To enable/disable project specific settings I added a checkbox above the tabs. I have worked with JFace for some evenings now and it's fun to use.

Dienstag, 11. März 2008

Tabs for properties

For a better design I started to reimplement the properties. There should be only one Property page for moreUnit. To have enough space for all the settings I'd like to split them into two tabs.
Todays challenge was to get involved with Tabs in JFace. It was quite easy after I found the classes (TabFolder and TabItem) for it.

Freitag, 7. März 2008

Working prefs

The converter for the prefs are integrated now and everthing seems to work fine.
There are four places, where this pref must be checked (which is not implemented yet)
  • label decoration
  • marker
  • jump
  • test code creation

Mittwoch, 5. März 2008

Converter for prefs

Tonight I've written the converter methods:
PluginTools#convertStringToSourceFolderList
PluginTools#convertSourceFolderListToString

This needs to be integrated to the preferences/properties now.

Dienstag, 4. März 2008

How to store complex types in prefs

As the property page for the test source folder is almost completed, I'm wondering (like yesterday) how I can store complex type in the preference-store. IPreferencesStore only handles some basic types. All I found out tonight is the existence PreferencesConverter-class which allows conversion of some complex types between their string representation. But the type I need for MoreUnit is not part of the converter class :-(

Montag, 3. März 2008

Progress with new property page

Tonight I proceeded with the implementation of the new property page. Everthing seems to work fine. What is still missing is the integration of the preferences. I'm wondering how I can make complex objects like IPackageFragmentRoot persistent. There are only setters for some basic types. But this is a job for another evening.

Sonntag, 2. März 2008

Cool new property page

Last week there was some user feedback about the possibilties to configure test source folder.
This weekend during napping I had the idea how to implement this feature request.
After some hours of work I have created a new property page which shows the test source folder (as preferences are not adapted yet for the new feature this page shows all source folder of the underlying project). Additionally I started a wizard for the unit source folder selection.
I learned a lot of stuff about JFace and this was really fun :-) (I'm hoping to find some more freetime to work an this soon)