Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsViewFactory Deprecation
https://www.eclipse.org/forums/index.php/mv/msg/207928/666057/#msg_666057
Specifically, I am trying to extend a GMF generated model and customize the Views that are created. With view factories that was easy all I had to do was extend the view factory for the view I wanted to customize and provide the extended view factory from my own View Provider. Now the only way I can think to do it is create a ViewFactory and create an instance of the generated View Provider and call the create method from my own view factory. This doesn't seem correct.]]>Erik Englund2011-04-18T19:40:38-00:00Re: ViewFactory Deprecation
https://www.eclipse.org/forums/index.php/mv/msg/207928/666510/#msg_666510
However, as I stated before I'm trying to extend a model and all the examples on how to do that use a ViewFactory.
So to accomplish my goals I created a view provider with a high priority than the original model. It then returns a ViewFactory when I want to override the behavior. This ViewFactory extends the ViewProvider from the Generated model and implements ViewFactory. This seems to work nicely since then I can override the create methods if I want and can easily call all the other create methods from the View Factory's create method.
Is this the correct way to go about doing this?]]>Erik Englund2011-04-20T15:50:11-00:00