blob: 037551716f5ce0f852e03fa6ef6b6bebfc0ab148 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 Matthew Hall and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Matthew Hall - initial API and implementation (bug 263709)
******************************************************************************/
package org.eclipse.core.internal.databinding;
import org.eclipse.core.databinding.ValidationStatusProvider;
import org.eclipse.core.databinding.observable.IObservable;
import org.eclipse.core.databinding.observable.Realm;
import org.eclipse.core.databinding.observable.list.IObservableList;
import org.eclipse.core.databinding.property.list.ListProperty;
/**
* @since 3.3
*
*/
public class ValidationStatusProviderModelsProperty extends ListProperty {
public Object getElementType() {
return IObservable.class;
}
public IObservableList observe(Realm realm, Object source) {
return ((ValidationStatusProvider) source).getModels();
}
public String toString() {
return "ValidationStatusProvider#models[] <IObservable>"; //$NON-NLS-1$
}
}