/** * This creates an adapter for a {@link org.eclipse.scada.configuration.memory.BitType}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createBitTypeAdapter () { if ( bitTypeItemProvider == null ) { bitTypeItemProvider = new BitTypeItemProvider ( this ); } return bitTypeItemProvider; }
/** * This adds a property descriptor for the Sub Index feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ protected void addSubIndexPropertyDescriptor ( final Object object ) { this.itemPropertyDescriptors.add ( createItemPropertyDescriptor ( ( (ComposeableAdapterFactory)this.adapterFactory ).getRootAdapterFactory (), getResourceLocator (), getString ( "_UI_BitType_subIndex_feature" ), getString ( "_UI_PropertyDescriptor_description", "_UI_BitType_subIndex_feature", "_UI_BitType_type" ), MemoryPackage.Literals.BIT_TYPE__SUB_INDEX, true, false, false, ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null ) ); }
/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public Object getStyledText ( final Object object ) { return new StyledString ( getText ( object ) ); }
/** * This returns BitType.gif. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public Object getImage ( final Object object ) { return overlayImage ( object, getResourceLocator ().getImage ( "full/obj16/BitType" ) ); }
/** * This handles model notifications by calling {@link #updateChildren} to * update any cached * children and by creating a viewer notification, which it passes to * {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public void notifyChanged ( final Notification notification ) { updateChildren ( notification ); switch ( notification.getFeatureID ( BitType.class ) ) { case MemoryPackage.BIT_TYPE__SUB_INDEX: fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) ); return; } super.notifyChanged ( notification ); }
/** * This returns the label text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public String getText ( final Object object ) { final BitType bitType = (BitType)object; return getString ( "_UI_BitType_type" ) + " " + bitType.getIndex () + "." + bitType.getSubIndex (); //$NON-NLS-1$ //$NON-NLS-2$ }
/** * This returns the property descriptors for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors ( final Object object ) { if ( this.itemPropertyDescriptors == null ) { super.getPropertyDescriptors ( object ); addSubIndexPropertyDescriptor ( object ); } return this.itemPropertyDescriptors; }
typeDefinitionItemProvider.dispose (); if ( bitTypeItemProvider != null ) bitTypeItemProvider.dispose (); if ( variableItemProvider != null ) variableItemProvider.dispose ();
/** * This returns BitType.gif. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public Object getImage ( final Object object ) { return overlayImage ( object, getResourceLocator ().getImage ( "full/obj16/BitType" ) ); }
/** * This handles model notifications by calling {@link #updateChildren} to * update any cached * children and by creating a viewer notification, which it passes to * {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public void notifyChanged ( final Notification notification ) { updateChildren ( notification ); switch ( notification.getFeatureID ( BitType.class ) ) { case MemoryPackage.BIT_TYPE__SUB_INDEX: fireNotifyChanged ( new ViewerNotification ( notification, notification.getNotifier (), false, true ) ); return; } super.notifyChanged ( notification ); }
/** * This returns the label text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public String getText ( final Object object ) { final BitType bitType = (BitType)object; return getString ( "_UI_BitType_type" ) + " " + bitType.getIndex () + "." + bitType.getSubIndex (); //$NON-NLS-1$ //$NON-NLS-2$ }
/** * This returns the property descriptors for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors ( final Object object ) { if ( this.itemPropertyDescriptors == null ) { super.getPropertyDescriptors ( object ); addSubIndexPropertyDescriptor ( object ); } return this.itemPropertyDescriptors; }
typeDefinitionItemProvider.dispose (); if ( bitTypeItemProvider != null ) bitTypeItemProvider.dispose (); if ( variableItemProvider != null ) variableItemProvider.dispose ();
/** * This adds a property descriptor for the Sub Index feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ protected void addSubIndexPropertyDescriptor ( final Object object ) { this.itemPropertyDescriptors.add ( createItemPropertyDescriptor ( ( (ComposeableAdapterFactory)this.adapterFactory ).getRootAdapterFactory (), getResourceLocator (), getString ( "_UI_BitType_subIndex_feature" ), getString ( "_UI_PropertyDescriptor_description", "_UI_BitType_subIndex_feature", "_UI_BitType_type" ), MemoryPackage.Literals.BIT_TYPE__SUB_INDEX, true, false, false, ItemPropertyDescriptor.INTEGRAL_VALUE_IMAGE, null, null ) ); }
/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated NOT */ @Override public Object getStyledText ( final Object object ) { return new StyledString ( getText ( object ) ); }
/** * This creates an adapter for a {@link org.eclipse.scada.configuration.memory.BitType}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Adapter createBitTypeAdapter () { if ( bitTypeItemProvider == null ) { bitTypeItemProvider = new BitTypeItemProvider ( this ); } return bitTypeItemProvider; }