当前位置: 首页>>代码示例>>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;未经允许,请勿转载。