You are wright the ViewFactorys are deprecated but you can use a
ViewProvider. A ViewProvider is generated with the name
<Diagramname>ViewProvider. Inside this you have creation methods for all
all view elements. Here you call the same stuff you could in the
ViewFactorys. You can either overwrite the stuff in the generated code or
provide you own ViewProvider via the
org.eclipse.gmf.runtime.diagram.core.viewProviders extension.