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


Java StyledString.append方法代码示例

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


在下文中一共展示了StyledString.append方法的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 )
{
    String label = ( (CommonDriver)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_CommonDriver_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_CommonDriver_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:CommonDriverItemProvider.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 = ( (ItemReferenceOutputDefinition)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_ItemReferenceOutputDefinition_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_ItemReferenceOutputDefinition_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:ItemReferenceOutputDefinitionItemProvider.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 = ( (Blockings)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_Blockings_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_Blockings_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:BlockingsItemProvider.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 = ( (FormulaItemInbound)object ).getInputFormula ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_FormulaItemInbound_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_FormulaItemInbound_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:FormulaItemInboundItemProvider.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 = ( (ExternalDriverPlaceholder)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_ExternalDriverPlaceholder_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_ExternalDriverPlaceholder_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:ExternalDriverPlaceholderItemProvider.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 = ( (EventInjectorJdbc)object ).getInstanceName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_EventInjectorJdbc_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_EventInjectorJdbc_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:EventInjectorJdbcItemProvider.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 = ( (MasterImportConnectionAnalyzer)object ).getShortDescription ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_MasterImportConnectionAnalyzer_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_MasterImportConnectionAnalyzer_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:MasterImportConnectionAnalyzerItemProvider.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
 */
@Override
public Object getStyledText ( Object object )
{
    String label = ( (BufferedValue)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_BufferedValue_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_BufferedValue_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:BufferedValueItemProvider.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 = ( (CustomMasterServer)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_CustomMasterServer_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_CustomMasterServer_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:CustomMasterServerItemProvider.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 = ( (InputDefinition)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_InputDefinition_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_InputDefinition_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:InputDefinitionItemProvider.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 )
{
    Variant labelValue = ( (ListMonitorEntry)object ).getValue ();
    String label = labelValue == null ? null : labelValue.toString ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_ListMonitorEntry_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_ListMonitorEntry_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:23,代码来源:ListMonitorEntryItemProvider.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 = ( (TimerAction)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_TimerAction_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_TimerAction_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:TimerActionItemProvider.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 NOT
 */
@Override
public Object getStyledText ( final Object object )
{
    final DateFormat label = ( (CurrentTimeComponent)object ).getDateFormat ();
    final StyledString styledLabel = new StyledString ();
    if ( label == null )
    {
        styledLabel.append ( getString ( "_UI_CurrentTimeComponent_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_CurrentTimeComponent_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }

    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:24,代码来源:CurrentTimeComponentItemProvider.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 = ( (MarkerEntry)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_MarkerEntry_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_MarkerEntry_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:MarkerEntryItemProvider.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 = ( (FormulaItem)object ).getName ();
    StyledString styledLabel = new StyledString ();
    if ( label == null || label.length () == 0 )
    {
        styledLabel.append ( getString ( "_UI_FormulaItem_type" ), StyledString.Style.QUALIFIER_STYLER ); //$NON-NLS-1$
    }
    else
    {
        styledLabel.append ( getString ( "_UI_FormulaItem_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); //$NON-NLS-1$ //$NON-NLS-2$
    }
    return styledLabel;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:22,代码来源:FormulaItemItemProvider.java


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