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