«« Acceptance Testing Web App He's a Microsoft Human Aggregator ... Deal With It »»
blog header image
An About JFace

Time for an AudioMan update once again. I read more about how the SWT/JFace TableViewer is suppose to work and I think I finally figured it out. I had to pull the information together from a few sources, including the Eclipse help. One of the problems: The setInput() method is poorly named. It should be setModel(). Maybe if I have some time later I'll write a nice long post/tutorial of sorts on it. I couldn't find a lucid one on the 'net to save my life. JFace is new, but it's not that new.

At any rate, in order to take advantage of all of the nice JFace TableViewer stuff I'm going to have to re-architecture AudioMan a bit. Some of the stuff won't change at all, like the XML Repository (AKA database/cache) and everything below the File Abstraction (reading/writing metadata). But the Data Abstraction Layer is going to be wicked complex, managing all of the paths that the data can go in and out, synchronizing between the repository cache and the file data and also doing automatic formatting like capitalization.

I figure it's better to get something major like this out of the way really early in a version (0.1.3) than later. All of the small detail bugs that I fixed for 0.1.2 will be thrown out though, probably. But 0.1.2 gives people a more polished idea of what we're going for and something to get feedback on. I'm still ambitiously aiming for a 0.1.3 release by the end of the week, which will be a whole re-arch using the model-view-controller (MVC) pattern for the TableViewers and data displayed in them (if you're really curious you can check out the notes I've been making on bug #403). It's going to be for the best I think. A large refactor like this was needed anyway before we start to add more features again.

I hate to be cryptic and vague about it but that's all I've got for now until I "architect" it out. I'll try to get Visio fired up a make a pretty picture or two. Bring your crayons to class tomorrow.

Posted at January 27, 2004 at 04:05 PM EST
Last updated January 27, 2004 at 04:05 PM EST
Comments

i want to know , whether jface is applicable for crating PDA application, and brief notes on Jface TableViewer, ie how to add a editable text,combobox,checkbox, and linker etc.
regards
S.Kalaivanan

» Posted by: kalaivanan subramani at February 13, 2004 09:42 AM

If SWT has been ported to the PDA platform (ie. Linux) then yes it could be applicable.

When I get to know the TableViewer better I'd like to write some articles on it. Right now I don't really know enough about it.

» Posted by: Ryan at February 13, 2004 01:24 PM
Google
 
Search scope: Web ryanlowe.ca