|New Help with RCP Application Design [message #501985]
||Fri, 04 December 2009 16:26
| No real name
Registered: December 2009
Hi there. I am new to RCP and have been tasked with designing a new application in RCP. I have a question on how best to structure the flow through the application and thought I would drop a question here to see if anybody has any good suggestions.|
The application being created is a fairly "typical" looking application. There is a tree view on the left side of the application, and based on what you select in the tree, one or more views show up on the right hand side of the application. The views on the right hand side can be a single chart for example, or a tabbed pane with several charts and report like views.
My question is how best to structure this navigation in the application. Based on the RCP paradigm, I initially thought it would be best to create a bunch of different perspectives, one for each unique view that needs to be shown on the right and make the tree view a sticky view on the left so it is not affected by perspective changes. In this model, as they click around in the tree, that code will display the applicable perspective to show what is needed on the right. Initially this looked like it might be a good idea, but as I thought through it more, I am not so sure. If I design the application in this fashion, I could end up with 25-30 different perspectives. Not exactly optimal. In addition, even though the tree view is a stick view, the tree view maintains it specific size for each perspective. So for example, if I am in perspective 1 and resize the tree to make it really small, then open perspective 2, it is large again, and back to perspective 1 it is how it was and small again.
Based on this, I went down the line of thinking that instead of a perspective based approach, that I should have a single perspective, and then have some logic in there to based on the selection in tree, tear down and recreate the applicable views on the right. This also is not really optimal since you will end up with this mondo case statement that has to determine based on the selection in the tree, to show x and y, or x, y, and z., etc.
So does anybody have any suggestions about better approaches to take along these lines? Any information would be greatly appreciated. Thanks!
Powered by FUDForum
. Page generated in 0.01736 seconds