org.eclipse.core.databinding.observable.Realm.getDefault()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(143)

本文整理了Java中org.eclipse.core.databinding.observable.Realm.getDefault方法的一些代码示例,展示了Realm.getDefault的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Realm.getDefault方法的具体详情如下:
包路径:org.eclipse.core.databinding.observable.Realm
类名称:Realm
方法名:getDefault

Realm.getDefault介绍

[英]Returns the default realm for the calling thread, or null if no default realm has been set.
[中]返回调用线程的默认域,如果未设置默认域,则返回null

代码示例

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
 * Constructs a new empty instance in the default realm with a
 * <code>null</code> element type.
 * 
 */
public WritableSet() {
  this(Realm.getDefault());
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
 * 
 */
public ComputedValue() {
  this(Realm.getDefault(), null);
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
 * Constructs a new WritableMap on the default realm.
 */
public WritableMap() {
  this(Realm.getDefault(), null, null);
}

代码示例来源:origin: org.eclipse.emf/databinding

/**
 * Observe a feature of the instance using the default realm
 * 
 * @param eObject
 *            the object
 * @param eStructuralFeature
 *            the feature
 */
public EObjectObservableValue(EObject eObject, EStructuralFeature eStructuralFeature)
{
 this(Realm.getDefault(), eObject, eStructuralFeature);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.core.databinding

/**
 * Constructs a MultiValidator on the default realm.
 */
public MultiValidator() {
  this(Realm.getDefault());
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
 * 
 */
public AbstractObservableList() {
  this(Realm.getDefault());
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
 * @param wrappedMap
 */
public ObservableMap(Map wrappedMap) {
  this(Realm.getDefault(), wrappedMap);
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
 * Creates a computed list in the default realm and with an unknown (null)
 * element type.
 */
public ComputedList() {
  this(Realm.getDefault(), null);
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
 * Constructs a new WritableMap on the default realm with the specified key
 * and value types.
 * 
 * @param keyType
 * @param valueType
 * @since 1.2
 */
public WritableMap(Object keyType, Object valueType) {
  this(Realm.getDefault(), keyType, valueType);
}

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.databinding

/**
 * Create a new databinding context which uses the default realm for
 * validation
 */
public EMFDataBindingContext()
{
 this(Realm.getDefault());
}

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.databinding

/**
 * Observe a feature of the instance using the default realm
 * 
 * @param eObject
 *            the object
 * @param eStructuralFeature
 *            the feature
 */
public EObjectObservableValue(EObject eObject, EStructuralFeature eStructuralFeature)
{
 this(Realm.getDefault(), eObject, eStructuralFeature);
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
 * Creates an empty writable list in the default realm with a
 * <code>null</code> element type.
 * 
 */
public WritableList() {
  this(Realm.getDefault());
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
 * Constructs a MultiList in the default realm, and backed by the given
 * observable lists.
 * 
 * @param lists
 *            the array of observable lists backing this MultiList.
 */
public MultiList(IObservableList[] lists) {
  this(Realm.getDefault(), lists, null);
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
 * Constructs a SelectObservableValue on the default realm.
 */
public SelectObservableValue() {
  this(Realm.getDefault(), null);
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
 * Constructs a new instance in the default realm containing the
 * elements of the given collection. Changes to the given collection after
 * calling this method do not affect the contents of the created WritableSet.
 * 
 * @param c
 * @param elementType
 *            can be <code>null</code>
 */
public WritableSet(Collection c, Object elementType) {
  this(Realm.getDefault(), new HashSet(c), elementType);
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
 * Returns an observable list backed by the given list.
 * 
 * @param list
 *            the list to wrap in an IObservableList
 * @return an observable list backed by the given unchanging list
 */
public static IObservableList staticObservableList(List list) {
  return staticObservableList(Realm.getDefault(), list, Object.class);
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
   * @param elementType can be <code>null</code>
   * @return new instance with the default realm
   */
  public static WritableSet withElementType(Object elementType) {
    return new WritableSet(Realm.getDefault(), new HashSet(), elementType);
  }
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
   * @param elementType can be <code>null</code>
   * @return new instance with the default realm and a value of <code>null</code>
   */
  public static WritableValue withValueType(Object elementType) {
    return new WritableValue(Realm.getDefault(), null, elementType);
  }
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
 * Returns an observable value with the given constant value.
 * 
 * @param value
 *            the observable's constant value
 * @return an immutable observable value with the given constant value
 * @since 1.1
 */
public static IObservableValue constantObservableValue(Object value) {
  return constantObservableValue(Realm.getDefault(), value, null);
}

代码示例来源:origin: org.eclipse.fx/org.eclipse.core.databinding.observable

/**
 * Returns an empty observable set. The returned set continues to work after
 * it has been disposed of and can be disposed of multiple times.
 * 
 * @return an empty observable set.
 */
public static IObservableSet emptyObservableSet() {
  return emptyObservableSet(Realm.getDefault(), null);
}

相关文章