本文整理匯總了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 );
}