1 12 13 package org.eclipse.core.databinding.observable.masterdetail; 14 15 import org.eclipse.core.databinding.observable.list.IObservableList; 16 import org.eclipse.core.databinding.observable.set.IObservableSet; 17 import org.eclipse.core.databinding.observable.value.IObservableValue; 18 import org.eclipse.core.internal.databinding.observable.masterdetail.DetailObservableList; 19 import org.eclipse.core.internal.databinding.observable.masterdetail.DetailObservableSet; 20 import org.eclipse.core.internal.databinding.observable.masterdetail.DetailObservableValue; 21 22 28 public class MasterDetailObservables { 29 30 47 public static IObservableValue detailValue(IObservableValue master, 48 IObservableFactory detailFactory, Object detailType) { 49 return new DetailObservableValue(master, detailFactory, detailType); 50 } 51 52 69 public static IObservableList detailList(IObservableValue master, 70 IObservableFactory detailFactory, Object detailElementType) { 71 return new DetailObservableList(detailFactory, master, 72 detailElementType); 73 } 74 75 92 public static IObservableSet detailSet(IObservableValue master, 93 IObservableFactory detailFactory, Object detailElementType) { 94 return new DetailObservableSet(detailFactory, master, detailElementType); 95 } 96 97 } 98 | Popular Tags |