當前位置: 首頁>>代碼示例>>Java>>正文


Java IStructuredItemContentProvider類代碼示例

本文整理匯總了Java中org.eclipse.emf.edit.provider.IStructuredItemContentProvider的典型用法代碼示例。如果您正苦於以下問題:Java IStructuredItemContentProvider類的具體用法?Java IStructuredItemContentProvider怎麽用?Java IStructuredItemContentProvider使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


IStructuredItemContentProvider類屬於org.eclipse.emf.edit.provider包,在下文中一共展示了IStructuredItemContentProvider類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getChildren

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的package包/類
@Override
public Collection<?> getChildren(Object object)
{
	if (object != null && object instanceof TreeNodeWrapper)
	{
		TreeNodeWrapper treeNodeWrapper = (TreeNodeWrapper) object;
		if (treeNodeWrapper.getObject() != null && treeNodeWrapper.getObject() instanceof BTSConfig)
		{
			Object realItem = ((TreeNodeWrapper) object).getObject();
			IItemLabelProvider realItemItemprovider = getRealItemItemProvider(treeNodeWrapper, realItem);
			return ((IStructuredItemContentProvider) realItemItemprovider).getElements(realItem);
		}

	}
	return super.getChildren(object);
}
 
開發者ID:cplutte,項目名稱:bts,代碼行數:17,代碼來源:TreeNodeWrapperItemProvider.java

示例2: inputChanged

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的package包/類
@Override
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
	if (domain != null) {
		domain.removeResourceSetListener(listener);
	}
	super.inputChanged(viewer, oldInput, newInput);
	//
	// We want to 'activate' the content providers and listeners
	adapterFactory.adapt(newInput, IStructuredItemContentProvider.class);
	//
	if (newInput instanceof EObject) {
		domain = gov.nasa.ensemble.emf.transaction.TransactionUtils.getDomain(newInput);
		if (domain != null) {
			domain.addResourceSetListener(listener);
		}
		input = (EObject) newInput;
	} else {
		input = null;
		domain = null;
	}
}
 
開發者ID:nasa,項目名稱:OpenSPIFe,代碼行數:22,代碼來源:EMFTreeTableContentProvider.java

示例3: SmarthomeItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的package包/類
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
 * @generated
 */
   public SmarthomeItemProviderAdapterFactory() {
	supportedTypes.add(IEditingDomainItemProvider.class);
	supportedTypes.add(IStructuredItemContentProvider.class);
	supportedTypes.add(ITreeItemContentProvider.class);
	supportedTypes.add(IItemLabelProvider.class);
	supportedTypes.add(IItemPropertySource.class);
}
 
開發者ID:IncQueryLabs,項目名稱:smarthome-cep-demonstrator,代碼行數:14,代碼來源:SmarthomeItemProviderAdapterFactory.java

示例4: MetamodelItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的package包/類
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public MetamodelItemProviderAdapterFactory() {
	supportedTypes.add(IEditingDomainItemProvider.class);
	supportedTypes.add(IStructuredItemContentProvider.class);
	supportedTypes.add(ITreeItemContentProvider.class);
	supportedTypes.add(IItemLabelProvider.class);
	supportedTypes.add(IItemPropertySource.class);
}
 
開發者ID:cetic,項目名稱:SimQRI,代碼行數:14,代碼來源:MetamodelItemProviderAdapterFactory.java

示例5: DebugItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的package包/類
/**
 * This constructs an instance.
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public DebugItemProviderAdapterFactory() {
	supportedTypes.add(IEditingDomainItemProvider.class);
	supportedTypes.add(IStructuredItemContentProvider.class);
	supportedTypes.add(ITreeItemContentProvider.class);
	supportedTypes.add(IItemLabelProvider.class);
	supportedTypes.add(IItemPropertySource.class);
}
 
開發者ID:eclipse,項目名稱:gemoc-studio-modeldebugging,代碼行數:13,代碼來源:DebugItemProviderAdapterFactory.java

示例6: TracingannotationsItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的package包/類
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public TracingannotationsItemProviderAdapterFactory() {
	supportedTypes.add(IEditingDomainItemProvider.class);
	supportedTypes.add(IStructuredItemContentProvider.class);
	supportedTypes.add(ITreeItemContentProvider.class);
	supportedTypes.add(IItemLabelProvider.class);
	supportedTypes.add(IItemPropertySource.class);
}
 
開發者ID:eclipse,項目名稱:gemoc-studio-modeldebugging,代碼行數:14,代碼來源:TracingannotationsItemProviderAdapterFactory.java

示例7: EventItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的package包/類
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EventItemProviderAdapterFactory() {
	supportedTypes.add(IEditingDomainItemProvider.class);
	supportedTypes.add(IStructuredItemContentProvider.class);
	supportedTypes.add(ITreeItemContentProvider.class);
	supportedTypes.add(IItemLabelProvider.class);
	supportedTypes.add(IItemPropertySource.class);
}
 
開發者ID:eclipse,項目名稱:gemoc-studio-modeldebugging,代碼行數:14,代碼來源:EventItemProviderAdapterFactory.java

示例8: ProtocolItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的package包/類
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ProtocolItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:15,代碼來源:ProtocolItemProviderAdapterFactory.java

示例9: ChartItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的package包/類
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ChartItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:15,代碼來源:ChartItemProviderAdapterFactory.java

示例10: VisualInterfaceItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的package包/類
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public VisualInterfaceItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:15,代碼來源:VisualInterfaceItemProviderAdapterFactory.java

示例11: DetailViewItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的package包/類
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public DetailViewItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:15,代碼來源:DetailViewItemProviderAdapterFactory.java

示例12: IEC60870ItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的package包/類
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated NOT
 */
public IEC60870ItemProviderAdapterFactory ()
{
    this.supportedTypes.add ( IEditingDomainItemProvider.class );
    this.supportedTypes.add ( IStructuredItemContentProvider.class );
    this.supportedTypes.add ( ITreeItemContentProvider.class );
    this.supportedTypes.add ( IItemLabelProvider.class );
    this.supportedTypes.add ( IItemPropertySource.class );
    this.supportedTypes.add ( IPropertySource.class );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:17,代碼來源:IEC60870ItemProviderAdapterFactory.java

示例13: GlobalizeItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的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

示例14: ExecComponentsItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的package包/類
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public ExecComponentsItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:15,代碼來源:ExecComponentsItemProviderAdapterFactory.java

示例15: SecurityItemProviderAdapterFactory

import org.eclipse.emf.edit.provider.IStructuredItemContentProvider; //導入依賴的package包/類
/**
 * This constructs an instance.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public SecurityItemProviderAdapterFactory ()
{
    supportedTypes.add ( IEditingDomainItemProvider.class );
    supportedTypes.add ( IStructuredItemContentProvider.class );
    supportedTypes.add ( ITreeItemContentProvider.class );
    supportedTypes.add ( IItemLabelProvider.class );
    supportedTypes.add ( IItemPropertySource.class );
    supportedTypes.add ( ITableItemLabelProvider.class );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:16,代碼來源:SecurityItemProviderAdapterFactory.java


注:本文中的org.eclipse.emf.edit.provider.IStructuredItemContentProvider類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。