|
From: Rogan D. <ro...@da...> - 2008-07-08 13:26:26
|
Peter De Bruycker wrote: > > Is there some way of instructing the different views on which object to > present? e.g. in Eclipse, you can have multiple instances of a Java code > editor, each editing a different .java source file. How do you specify > which file to edit? > > to open a view, you do ApplicationPage.showView(String id). > > I created a new method ApplicationPage.showView(String id, Object input) > the ApplicationPage checks if a view with the given id and input is > already open. if not, it opens a new one, otherwise it shows the > existing one > > the input is passed on to the View, so it can render itself using this > object (the object can be anything, a file, a customer object, ...) > Perfect. Thanks! Rogan |