private static boolean hasType ( final Set<TypeSystem> ctx, final TypeSystem typeSystem, final TypeDefinition type ) { if ( ctx.contains ( typeSystem ) ) { return false; } ctx.add ( typeSystem ); if ( typeSystem.getTypes ().contains ( type ) ) { return true; } for ( final TypeSystem include : typeSystem.getIncludes () ) { if ( hasType ( ctx, include, type ) ) { return true; } } return false; } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TypeSystem getTypeSystem () { if ( typeSystem != null && typeSystem.eIsProxy () ) { InternalEObject oldTypeSystem = (InternalEObject)typeSystem; typeSystem = (TypeSystem)eResolveProxy ( oldTypeSystem ); if ( typeSystem != oldTypeSystem ) { if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ModbusPackage.MODBUS_DEVICE__TYPE_SYSTEM, oldTypeSystem, typeSystem ) ); } } return typeSystem; }
/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object getStyledText ( Object object ) { String label = ( (TypeSystem)object ).getName (); StyledString styledLabel = new StyledString (); if ( label == null || label.length () == 0 ) { styledLabel.append ( getString ( "_UI_TypeSystem_type" ), StyledString.Style.QUALIFIER_STYLER ); } else { styledLabel.append ( getString ( "_UI_TypeSystem_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); } return styledLabel; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TypeSystem getTypeSystem () { if ( typeSystem != null && typeSystem.eIsProxy () ) { InternalEObject oldTypeSystem = (InternalEObject)typeSystem; typeSystem = (TypeSystem)eResolveProxy ( oldTypeSystem ); if ( typeSystem != oldTypeSystem ) { if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, ModbusPackage.MODBUS_DEVICE__TYPE_SYSTEM, oldTypeSystem, typeSystem ) ); } } return typeSystem; }
/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Object getStyledText ( Object object ) { String label = ( (TypeSystem)object ).getName (); StyledString styledLabel = new StyledString (); if ( label == null || label.length () == 0 ) { styledLabel.append ( getString ( "_UI_TypeSystem_type" ), StyledString.Style.QUALIFIER_STYLER ); } else { styledLabel.append ( getString ( "_UI_TypeSystem_type" ), StyledString.Style.QUALIFIER_STYLER ).append ( " " + label ); } return styledLabel; }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TypeSystem getTypeSystem () { if ( typeSystem != null && typeSystem.eIsProxy () ) { InternalEObject oldTypeSystem = (InternalEObject)typeSystem; typeSystem = (TypeSystem)eResolveProxy ( oldTypeSystem ); if ( typeSystem != oldTypeSystem ) { if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, MemoryManagerPackage.MEMORY_MANAGER_MODULE__TYPE_SYSTEM, oldTypeSystem, typeSystem ) ); } } return typeSystem; }
private static boolean hasType ( final Set<TypeSystem> ctx, final TypeSystem typeSystem, final TypeDefinition type ) { if ( ctx.contains ( typeSystem ) ) { return false; } ctx.add ( typeSystem ); if ( typeSystem.getTypes ().contains ( type ) ) { return true; } for ( final TypeSystem include : typeSystem.getIncludes () ) { if ( hasType ( ctx, include, type ) ) { return true; } } return false; } }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TypeSystem getTypeSystem () { if ( typeSystem != null && typeSystem.eIsProxy () ) { InternalEObject oldTypeSystem = (InternalEObject)typeSystem; typeSystem = (TypeSystem)eResolveProxy ( oldTypeSystem ); if ( typeSystem != oldTypeSystem ) { if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, DavePackage.DAVE_DEVICE__TYPE_SYSTEM, oldTypeSystem, typeSystem ) ); } } return typeSystem; }