@@ -0,0 +1,1508 @@
+/*%0A * Copyright 2002-2006 the original author or authors.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22); you may not%0A * use this file except in compliance with the License. You may obtain a copy of%0A * the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS, WITHOUT%0A * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the%0A * License for the specific language governing permissions and limitations under%0A * the License.%0A */%0Apackage org.springframework.richclient.convert.support;%0A%0Aimport javax.swing.ListModel;%0A%0Aimport org.springframework.binding.convert.support.AbstractConverter;%0A%0Aimport ca.odell.glazedlists.EventList;%0Aimport ca.odell.glazedlists.swing.EventListModel;%0A%0A/**%0A * supports converting %7B@link EventList%7Ds to %7B@link ListModel%7D%0A * %0A * @author Mathias Broekelmann%0A *%0A */%0Apublic class GlazedListModelConverter extends AbstractConverter %7B%0A%0A    private static final Class%5B%5D TARGET_CLASSES = new Class%5B%5D %7BListModel.class%7D;%0A    private static final Class%5B%5D SOURCE_CLASSES = new Class%5B%5D %7BEventList.class%7D;%0A%0A    protected Object doConvert(Object source, Class targetClass) throws Exception %7B%0A        return new EventListModel((EventList) source);%0A    %7D%0A%0A    public Class%5B%5D getSourceClasses() %7B%0A        return SOURCE_CLASSES;%0A    %7D%0A%0A    public Class%5B%5D getTargetClasses() %7B%0A        return TARGET_CLASSES;%0A    %7D%0A%0A%7D%0A

support for EventList to ListModel conversions