org.eclipse.core.databinding.observable.set.WritableSet.add()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(6.3k)|赞(0)|评价(0)|浏览(85)

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

WritableSet.add介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.neoscada.hmi/org.eclipse.scada.da.ui.connection

@Override
public boolean add ( final Object o )
{
  return this.data.add ( o );
}

代码示例来源:origin: org.eclipse.neoscada.hmi/org.eclipse.scada.core.ui.connection

private void add ( final DiscovererListener discovererListener, final ConnectionDescriptor desc )
{
  Set<DiscovererListener> listeners = this.descriptorMap.get ( desc );
  if ( listeners == null )
  {
    listeners = new HashSet<DiscovererListener> ();
    this.descriptorMap.put ( desc, listeners );
    final ConnectionHolder holder = new ConnectionHolder ( null, desc );
    this.holderMap.put ( desc, holder );
    this.connectionHolders.add ( holder );
  }
  listeners.add ( discovererListener );
}

代码示例来源:origin: de.dentrassi.eclipse.neoscada.hmi/org.eclipse.scada.core.ui.connection

private void add ( final DiscovererListener discovererListener, final ConnectionDescriptor desc )
{
  Set<DiscovererListener> listeners = this.descriptorMap.get ( desc );
  if ( listeners == null )
  {
    listeners = new HashSet<DiscovererListener> ();
    this.descriptorMap.put ( desc, listeners );
    final ConnectionHolder holder = new ConnectionHolder ( null, desc );
    this.holderMap.put ( desc, holder );
    this.connectionHolders.add ( holder );
  }
  listeners.add ( discovererListener );
}

代码示例来源:origin: de.dentrassi.eclipse.neoscada.hmi/org.eclipse.scada.core.ui.connection

protected void addPath ( final List<String> path, final ConnectionHolder holder )
{
  if ( path.isEmpty () )
  {
    // add
    this.implNode.getConnections ().add ( holder );
  }
  else
  {
    // pass on
    final String name = path.get ( 0 );
    path.remove ( 0 );
    GroupChildNode child = this.children.get ( name );
    if ( child == null )
    {
      child = new GroupChildNode ( this.realm, name, this );
      this.children.put ( name, child );
      this.implNode.getChildren ().add ( child );
    }
    child.addPath ( path, holder );
  }
}

代码示例来源:origin: de.dentrassi.eclipse.neoscada.hmi/org.eclipse.scada.core.ui.connection

private void addInitial ( final WritableSet treeRoot )
{
  treeRoot.add ( new AllConnectionsNode ( this.realm, this.poolManager ) );
  treeRoot.add ( new GroupingNode ( this.realm, "By URI", this.poolManager, new UriGroupingProvider () ) );
  treeRoot.add ( new GroupingNode ( this.realm, "By Target", this.poolManager, new TargetGroupingProvider () ) );
}

代码示例来源:origin: org.eclipse.neoscada.hmi/org.eclipse.scada.core.ui.connection

protected void addPath ( final List<String> path, final ConnectionHolder holder )
{
  if ( path.isEmpty () )
  {
    // add
    this.implNode.getConnections ().add ( holder );
  }
  else
  {
    // pass on
    final String name = path.get ( 0 );
    path.remove ( 0 );
    GroupChildNode child = this.children.get ( name );
    if ( child == null )
    {
      child = new GroupChildNode ( this.realm, name, this );
      this.children.put ( name, child );
      this.implNode.getChildren ().add ( child );
    }
    child.addPath ( path, holder );
  }
}

代码示例来源:origin: org.eclipse.neoscada.hmi/org.eclipse.scada.core.ui.connection

private void addInitial ( final WritableSet treeRoot )
{
  treeRoot.add ( new AllConnectionsNode ( this.realm, this.poolManager ) );
  treeRoot.add ( new GroupingNode ( this.realm, "By URI", this.poolManager, new UriGroupingProvider () ) );
  treeRoot.add ( new GroupingNode ( this.realm, "By Target", this.poolManager, new TargetGroupingProvider () ) );
}

代码示例来源:origin: org.eclipse.neoscada.hmi/org.eclipse.scada.core.ui.connection

protected void handleDiscoveryUpdate ( final ConnectionDescriptor[] added, final ConnectionDescriptor[] removed )
{
  if ( removed != null )
  {
    for ( final ConnectionDescriptor info : removed )
    {
      final ConnectionHolder holder = this.connections.remove ( info );
      if ( holder != null )
      {
        this.knownConnections.remove ( holder );
        holder.dispose ();
      }
    }
  }
  if ( added != null )
  {
    for ( final ConnectionDescriptor info : added )
    {
      final ConnectionHolder holder = new ConnectionHolder ( this, info );
      this.knownConnections.add ( holder );
      this.connections.put ( info, holder );
    }
  }
}

代码示例来源:origin: de.dentrassi.eclipse.neoscada.hmi/org.eclipse.scada.core.ui.connection

protected void handleDiscoveryUpdate ( final ConnectionDescriptor[] added, final ConnectionDescriptor[] removed )
{
  if ( removed != null )
  {
    for ( final ConnectionDescriptor info : removed )
    {
      final ConnectionHolder holder = this.connections.remove ( info );
      if ( holder != null )
      {
        this.knownConnections.remove ( holder );
        holder.dispose ();
      }
    }
  }
  if ( added != null )
  {
    for ( final ConnectionDescriptor info : added )
    {
      final ConnectionHolder holder = new ConnectionHolder ( this, info );
      this.knownConnections.add ( holder );
      this.connections.put ( info, holder );
    }
  }
}

代码示例来源:origin: de.dentrassi.eclipse.neoscada.hmi/org.eclipse.scada.core.ui.connection

resultDiscoverers.add ( bean );
  resultStores.add ( bean );

代码示例来源:origin: org.eclipse.neoscada.hmi/org.eclipse.scada.core.ui.connection

resultDiscoverers.add ( bean );
  resultStores.add ( bean );

代码示例来源:origin: org.eclipse.neoscada.hmi/org.eclipse.scada.da.ui.client.dataitem.details

this.groupSet.add ( new GroupEntry ( "error", Messages.FlagsDetailsPart_GroupErrorLabel ) ); //$NON-NLS-1$
this.groupSet.add ( new GroupEntry ( "alarm", Messages.FlagsDetailsPart_GroupAlarmLabel ) ); //$NON-NLS-1$
this.groupSet.add ( new GroupEntry ( "warning", Messages.FlagsDetailsPart_GroupWarningLabel ) ); //$NON-NLS-1$
this.groupSet.add ( new GroupEntry ( "blocked", Messages.FlagsDetailsPart_GroupBlockingLabel ) ); //$NON-NLS-1$
this.groupSet.add ( new GroupEntry ( "ackRequired", Messages.FlagsDetailsPart_GroupAknLabel ) ); //$NON-NLS-1$
this.groupSet.add ( new GroupEntry ( "manual", Messages.FlagsDetailsPart_ManualLabel ) ); //$NON-NLS-1$

代码示例来源:origin: org.eclipse.neoscada.hmi/org.eclipse.scada.da.ui.connection

this.data.add ( newEntry );

代码示例来源:origin: de.dentrassi.eclipse.neoscada.hmi/org.eclipse.scada.da.ui.client.dataitem.details

this.groupSet.add ( new GroupEntry ( "error", Messages.FlagsDetailsPart_GroupErrorLabel ) ); //$NON-NLS-1$
this.groupSet.add ( new GroupEntry ( "alarm", Messages.FlagsDetailsPart_GroupAlarmLabel ) ); //$NON-NLS-1$
this.groupSet.add ( new GroupEntry ( "warning", Messages.FlagsDetailsPart_GroupWarningLabel ) ); //$NON-NLS-1$
this.groupSet.add ( new GroupEntry ( "blocked", Messages.FlagsDetailsPart_GroupBlockingLabel ) ); //$NON-NLS-1$
this.groupSet.add ( new GroupEntry ( "ackRequired", Messages.FlagsDetailsPart_GroupAknLabel ) ); //$NON-NLS-1$
this.groupSet.add ( new GroupEntry ( "manual", Messages.FlagsDetailsPart_ManualLabel ) ); //$NON-NLS-1$

代码示例来源:origin: de.dentrassi.eclipse.neoscada.hmi/org.eclipse.scada.core.ui.connection.login

this.dataSet.add ( entry );

相关文章