當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。