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