org.eclipse.scada.configuration.world.osgi.Exporter.getName()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(102)

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

Exporter.getName介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.neoscada.ide/org.eclipse.scada.configuration.infrastructure.lib

private Endpoint createExporter ( final EClass exporterClass, final Node node, final EquinoxApplication application, final int port )
{
  final Exporter exporter = (Exporter)EcoreUtil.create ( exporterClass );
  final Endpoint ep = Endpoints.registerEndpoint ( node, port, Endpoints.reference ( exporter ), String.format ( "Exporter Endpoint: %s - %s", exporter.getTypeTag (), exporter.getName () ) );
  node.getEndpoints ().add ( ep );
  exporter.setName ( application.getName () + "/exporter" );
  exporter.getEndpoints ().add ( ep );
  application.getExporter ().add ( exporter );
  return ep;
}

代码示例来源:origin: org.eclipse.neoscada.ide/org.eclipse.scada.configuration.lib

logger.debug ( "Recording endpoint - exporter {} -> {}", exp.getName (), endp.getName () );
map.put ( endp, exp );
logger.debug ( "Connection points to - exporter: {}, endpoint: {}", exporter.getName (), con.getEndpoint ().getName () );
result.add ( con.getEndpoint () );

代码示例来源:origin: de.dentrassi.eclipse.neoscada.ide/org.eclipse.scada.configuration.lib

logger.debug ( "Recording endpoint - exporter {} -> {}", exp.getName (), endp.getName () );
map.put ( endp, exp );
logger.debug ( "Connection points to - exporter: {}, endpoint: {}", exporter.getName (), con.getEndpoint ().getName () );
result.add ( con.getEndpoint () );

代码示例来源:origin: de.dentrassi.eclipse.neoscada.ide/org.eclipse.scada.configuration.world.edit

/**
 * This returns the label styled text for the adapted class.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object getStyledText ( Object object )
{
  String label = ( (Exporter)object ).getName ();
  StyledString styledLabel = new StyledString ();
  if ( label == null || label.length () == 0 )
  {
    styledLabel.append ( getString ( "_UI_Exporter_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
  }
  else
  {
    styledLabel.append ( getString ( "_UI_Exporter_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
  }
  return styledLabel;
}

相关文章