当前位置: 首页>>代码示例>>Java>>正文


Java StyledString类代码示例

本文整理汇总了Java中org.eclipse.emf.edit.provider.StyledString的典型用法代码示例。如果您正苦于以下问题:Java StyledString类的具体用法?Java StyledString怎么用?Java StyledString使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


StyledString类属于org.eclipse.emf.edit.provider包,在下文中一共展示了StyledString类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * This returns the label styled text for the adapted class.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object getStyledText ( Object object )
{
    Pattern labelValue = ( (Include)object ).getPattern ();
    String label = labelValue == null ? null : labelValue.toString ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_Include_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_Include_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:23,代码来源:IncludeItemProvider.java

示例2: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * 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 = ( (RestExporter)object ).getContextId ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_RestExporter_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_RestExporter_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:RestExporterItemProvider.java

示例3: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * 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 = ( (Connection)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_Connection_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_Connection_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:ConnectionItemProvider.java

示例4: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * 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 = ( (MonitorPool)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_MonitorPool_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_MonitorPool_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:MonitorPoolItemProvider.java

示例5: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * 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 = ( (SimpleDataMapper)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_SimpleDataMapper_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_SimpleDataMapper_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:SimpleDataMapperItemProvider.java

示例6: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * 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 = ( (EventInjectorPostgres)object ).getInstanceName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_EventInjectorPostgres_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_EventInjectorPostgres_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:EventInjectorPostgresItemProvider.java

示例7: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * 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 = ( (SimpleExternalEventFilter)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_SimpleExternalEventFilter_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_SimpleExternalEventFilter_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:SimpleExternalEventFilterItemProvider.java

示例8: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * This returns the label styled text for the adapted class.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated NOT
 */
@Override
public Object getStyledText ( final Object object )
{
    final StyledString styledLabel = new StyledString ();

    styledLabel.append ( getString ( "_UI_PropertyEntry_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$

    final String key = ( (PropertyEntry)object ).getKey ();
    final String value = ( (PropertyEntry)object ).getValue ();

    if ( key != null && !key.isEmpty () )
    {
        styledLabel.append ( " " ).append ( key );
    }

    styledLabel.append ( " = ", StyledString.Style.QUALIFIER_STYLER );

    if ( value != null && !value.isEmpty () )
    {
        styledLabel.append ( value );
    }

    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:32,代码来源:PropertyEntryItemProvider.java

示例9: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * 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 = ( (EventStoragePostgres)object ).getInstanceName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_EventStoragePostgres_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_EventStoragePostgres_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:EventStoragePostgresItemProvider.java

示例10: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * 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 = ( (ScaledValue)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_ScaledValue_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_ScaledValue_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:ScaledValueItemProvider.java

示例11: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * 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 = ( (FormulaModule)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_FormulaModule_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_FormulaModule_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:FormulaModuleItemProvider.java

示例12: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * 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 = ( (HeartbeatDetector)object ).getShortDescription ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_HeartbeatDetector_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_HeartbeatDetector_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:HeartbeatDetectorItemProvider.java

示例13: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * 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 = ( (StaticExternalEventFilter)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_StaticExternalEventFilter_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_StaticExternalEventFilter_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:StaticExternalEventFilterItemProvider.java

示例14: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * 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 = ( (ToggleHeartbeatGenerator)object ).getShortDescription ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_ToggleHeartbeatGenerator_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_ToggleHeartbeatGenerator_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:ToggleHeartbeatGeneratorItemProvider.java

示例15: getStyledText

import org.eclipse.emf.edit.provider.StyledString; //导入依赖的package包/类
/**
 * 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 = ( (ItemReference)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_ItemReference_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_ItemReference_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:ItemReferenceItemProvider.java


注:本文中的org.eclipse.emf.edit.provider.StyledString类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。