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


Java IItemStyledLabelProvider类代码示例

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


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

示例1: getStyledText

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This returns the label styled text for the adapted class.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generatedNOT
 */
@Override
public Object getStyledText(Object object) {
	StyledString styledLabel = new StyledString();
	TreeNodeWrapper treeNodeWrapper = (TreeNodeWrapper) object;
	Object realItem = ((TreeNodeWrapper) object).getObject();
	if (realItem == null)
	{
		return treeNodeWrapper.getLabel();
	}

	IItemLabelProvider realItemItemprovider = getRealItemItemProvider(treeNodeWrapper, realItem);
	String suffix = treeNodeWrapper.isChildrenLoaded() ? " (" + getChildren(object).size() + ")" : " (?)";

	if (realItemItemprovider instanceof IItemStyledLabelProvider)
	{
		styledLabel = (StyledString) ((IItemStyledLabelProvider) realItemItemprovider).getStyledText(realItem);
		styledLabel.append(suffix, CHILDREN_NUM_STYLE);
	}
	else
	{
		styledLabel.append(realItemItemprovider.getText(realItem), StyledString.Style.NO_STYLE);
		styledLabel.append(suffix, CHILDREN_NUM_STYLE);
	}
	return styledLabel;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:32,代码来源:TreeNodeWrapperItemProvider.java

示例2: GlobalizeItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public GlobalizeItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
    supportedTypes.add ( IItemStyledLabelProvider.class );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:16,代码来源:GlobalizeItemProviderAdapterFactory.java

示例3: CommonItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public CommonItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
    supportedTypes.add ( IItemStyledLabelProvider.class );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:16,代码来源:CommonItemProviderAdapterFactory.java

示例4: DeploymentItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public DeploymentItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
    supportedTypes.add ( ITableItemLabelProvider.class );
    supportedTypes.add ( IItemStyledLabelProvider.class );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:17,代码来源:DeploymentItemProviderAdapterFactory.java

示例5: SetupItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public SetupItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
    supportedTypes.add ( ITableItemLabelProvider.class );
    supportedTypes.add ( IItemStyledLabelProvider.class );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:17,代码来源:SetupItemProviderAdapterFactory.java

示例6: ProfileItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ProfileItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
    supportedTypes.add ( ITableItemLabelProvider.class );
    supportedTypes.add ( IItemStyledLabelProvider.class );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:17,代码来源:ProfileItemProviderAdapterFactory.java

示例7: OsgiItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public OsgiItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
    supportedTypes.add ( ITableItemLabelProvider.class );
    supportedTypes.add ( IItemStyledLabelProvider.class );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:17,代码来源:OsgiItemProviderAdapterFactory.java

示例8: WorldItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public WorldItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
    supportedTypes.add ( ITableItemLabelProvider.class );
    supportedTypes.add ( IItemStyledLabelProvider.class );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:17,代码来源:WorldItemProviderAdapterFactory.java

示例9: MemoryItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public MemoryItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
    supportedTypes.add ( IItemStyledLabelProvider.class );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:16,代码来源:MemoryItemProviderAdapterFactory.java

示例10: RecipeItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public RecipeItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
    supportedTypes.add ( IItemStyledLabelProvider.class );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:16,代码来源:RecipeItemProviderAdapterFactory.java

示例11: ComponentItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ComponentItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
    supportedTypes.add ( IItemStyledLabelProvider.class );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:16,代码来源:ComponentItemProviderAdapterFactory.java

示例12: InfrastructureItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public InfrastructureItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
    supportedTypes.add ( IItemStyledLabelProvider.class );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:16,代码来源:InfrastructureItemProviderAdapterFactory.java

示例13: BtsviewmodelItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public BtsviewmodelItemProviderAdapterFactory()
{
	supportedTypes.add(IEditingDomainItemProvider.class);
	supportedTypes.add(IStructuredItemContentProvider.class);
	supportedTypes.add(ITreeItemContentProvider.class);
	supportedTypes.add(IItemLabelProvider.class);
	supportedTypes.add(IItemPropertySource.class);
	supportedTypes.add(ITableItemLabelProvider.class);
	supportedTypes.add(ITableItemColorProvider.class);
	supportedTypes.add(ITableItemFontProvider.class);
	supportedTypes.add(IItemColorProvider.class);
	supportedTypes.add(IItemFontProvider.class);
	supportedTypes.add(IItemStyledLabelProvider.class);
}
 
开发者ID:cplutte,项目名称:bts,代码行数:21,代码来源:BtsviewmodelItemProviderAdapterFactory.java

示例14: BtsmodelItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public BtsmodelItemProviderAdapterFactory() {
	supportedTypes.add(IEditingDomainItemProvider.class);
	supportedTypes.add(IStructuredItemContentProvider.class);
	supportedTypes.add(ITreeItemContentProvider.class);
	supportedTypes.add(IItemLabelProvider.class);
	supportedTypes.add(IItemPropertySource.class);
	supportedTypes.add(ITableItemLabelProvider.class);
	supportedTypes.add(ITableItemColorProvider.class);
	supportedTypes.add(ITableItemFontProvider.class);
	supportedTypes.add(IItemColorProvider.class);
	supportedTypes.add(IItemFontProvider.class);
	supportedTypes.add(IItemStyledLabelProvider.class);
}
 
开发者ID:cplutte,项目名称:bts,代码行数:20,代码来源:BtsmodelItemProviderAdapterFactory.java

示例15: BtsCorpusModelItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IItemStyledLabelProvider; //导入依赖的package包/类
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public BtsCorpusModelItemProviderAdapterFactory() {
	supportedTypes.add(IEditingDomainItemProvider.class);
	supportedTypes.add(IStructuredItemContentProvider.class);
	supportedTypes.add(ITreeItemContentProvider.class);
	supportedTypes.add(IItemLabelProvider.class);
	supportedTypes.add(IItemPropertySource.class);
	supportedTypes.add(ITableItemLabelProvider.class);
	supportedTypes.add(ITableItemColorProvider.class);
	supportedTypes.add(ITableItemFontProvider.class);
	supportedTypes.add(IItemColorProvider.class);
	supportedTypes.add(IItemFontProvider.class);
	supportedTypes.add(IItemStyledLabelProvider.class);
}
 
开发者ID:cplutte,项目名称:bts,代码行数:20,代码来源:BtsCorpusModelItemProviderAdapterFactory.java


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