本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}