/** * This creates an adapter for a {@link org.eclipse.emf.mapping.TypeConverter}. */ @Override public Adapter createTypeConverterAdapter() { // if (typeConverterItemProvider == null) { typeConverterItemProvider = new TypeConverterItemProvider(this); } return typeConverterItemProvider; }
/** * This handles notification by delegating to {@link #fireNotifyChanged fireNotifyChanged}. */ @Override public void notifyChanged(Notification msg) { //MappingPackage ePackage = ((FunctionPair)msg.getNotifier()).ePackageMapping(); MappingPackage ePackage = MappingPackage.eINSTANCE; if (msg.getFeature() == ePackage.getFunctionPair_In2out() || msg.getFeature() == ePackage.getFunctionPair_Out2in()) { fireNotifyChanged(msg); //HGD::fireNotifyChanged(msg.getNotifier(), msg.getEventType(), msg.getStructuralFeature(), msg.getOldValue(), msg.getNewValue(), msg.getPosition()); return; } super.notifyChanged(msg); }
/** * This returns the property descriptors for the adapted class. */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); //MappingPackage ePackage = ((FunctionNamePair)object).ePackageMapping(); MappingPackage ePackage = MappingPackage.eINSTANCE; // This is for the in2out feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_In2out_property_label"), MappingPlugin.getPlugin().getString("_UI_In2out_property_description"), ePackage.getFunctionNamePair_In2out())); // This is for the out2in feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"), MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"), ePackage.getFunctionNamePair_Out2in())); } return itemPropertyDescriptors; }
/** * This handles notification by delegating to {@link #fireNotifyChanged fireNotifyChanged}. */ @Override public void notifyChanged(Notification msg) { MappingPackage ePackage = MappingPackage.eINSTANCE; //MappingPackage ePackage = ((ComplexTypeConverter)msg.getNotifier()).ePackageMapping(); if (msg.getFeature() == ePackage.getComplexTypeConverter_In2out() || msg.getFeature() == ePackage.getComplexTypeConverter_Out2in()) { this.fireNotifyChanged(msg); // HGD::fireNotifyChanged(msg.getNotifier(), msg.getEventType(), msg.getFeature(), msg.getOldValue(), msg.getNewValue(), msg.getPosition()); return; } super.notifyChanged(msg); }
/** * This returns the property descriptors for the adapted class. */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); //MappingPackage ePackage = ((FunctionNamePair)object).ePackageMapping(); MappingPackage ePackage = MappingPackage.eINSTANCE; // This is for the in2out feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_In2out_property_label"), MappingPlugin.getPlugin().getString("_UI_In2out_property_description"), ePackage.getFunctionNamePair_In2out())); // This is for the out2in feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"), MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"), ePackage.getFunctionNamePair_Out2in())); } return itemPropertyDescriptors; }
/** * This handles notification by delegating to {@link #fireNotifyChanged fireNotifyChanged}. */ @Override public void notifyChanged(Notification msg) { MappingPackage ePackage = MappingPackage.eINSTANCE; //MappingPackage ePackage = ((ComplexTypeConverter)msg.getNotifier()).ePackageMapping(); if (msg.getFeature() == ePackage.getComplexTypeConverter_In2out() || msg.getFeature() == ePackage.getComplexTypeConverter_Out2in()) { this.fireNotifyChanged(msg); // HGD::fireNotifyChanged(msg.getNotifier(), msg.getEventType(), msg.getFeature(), msg.getOldValue(), msg.getNewValue(), msg.getPosition()); return; } super.notifyChanged(msg); }
/** * This returns the property descriptors for the adapted class. */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); //MappingPackage ePackage = ((ComplexTypeConverter)object).ePackageMapping(); MappingPackage ePackage = MappingPackage.eINSTANCE; // This is for the in2out feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_In2out_property_label"), MappingPlugin.getPlugin().getString("_UI_In2out_property_description"), ePackage.getComplexTypeConverter_In2out())); // This is for the out2in feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"), MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"), ePackage.getComplexTypeConverter_Out2in())); } return itemPropertyDescriptors; }
/** * This creates an adapter for a {@link org.eclipse.emf.mapping.TypeConverter}. */ @Override public Adapter createTypeConverterAdapter() { // if (typeConverterItemProvider == null) { typeConverterItemProvider = new TypeConverterItemProvider(this); } return typeConverterItemProvider; }
/** * This handles notification by delegating to {@link #fireNotifyChanged fireNotifyChanged}. */ @Override public void notifyChanged(Notification msg) { //MappingPackage ePackage = ((FunctionNamePair)msg.getNotifier()).ePackageMapping(); MappingPackage ePackage = MappingPackage.eINSTANCE; if (msg.getFeature() == ePackage.getFunctionNamePair_In2out() || msg.getFeature() == ePackage.getFunctionNamePair_Out2in()) { fireNotifyChanged(msg); // HGD::fireNotifyChanged(msg.getNotifier(), msg.getEventType(), msg.getStructuralFeature(), msg.getOldValue(), msg.getNewValue(), msg.getPosition()); return; } super.notifyChanged(msg); }
/** * This returns the property descriptors for the adapted class. */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); //MappingPackage ePackage = ((FunctionPair)object).ePackageMapping(); MappingPackage ePackage = MappingPackage.eINSTANCE; // This is for the in2out feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_In2out_property_label"), MappingPlugin.getPlugin().getString("_UI_In2out_property_description"), ePackage.getFunctionPair_In2out())); // This is for the out2in feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"), MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"), ePackage.getFunctionPair_Out2in())); } return itemPropertyDescriptors; }
/** * This handles notification by delegating to {@link #fireNotifyChanged fireNotifyChanged}. */ @Override public void notifyChanged(Notification msg) { //MappingPackage ePackage = ((FunctionNamePair)msg.getNotifier()).ePackageMapping(); MappingPackage ePackage = MappingPackage.eINSTANCE; if (msg.getFeature() == ePackage.getFunctionNamePair_In2out() || msg.getFeature() == ePackage.getFunctionNamePair_Out2in()) { fireNotifyChanged(msg); // HGD::fireNotifyChanged(msg.getNotifier(), msg.getEventType(), msg.getStructuralFeature(), msg.getOldValue(), msg.getNewValue(), msg.getPosition()); return; } super.notifyChanged(msg); }
/** * This returns the property descriptors for the adapted class. */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); //MappingPackage ePackage = ((ComplexTypeConverter)object).ePackageMapping(); MappingPackage ePackage = MappingPackage.eINSTANCE; // This is for the in2out feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_In2out_property_label"), MappingPlugin.getPlugin().getString("_UI_In2out_property_description"), ePackage.getComplexTypeConverter_In2out())); // This is for the out2in feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"), MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"), ePackage.getComplexTypeConverter_Out2in())); } return itemPropertyDescriptors; }
/** * This handles notification by delegating to {@link #fireNotifyChanged fireNotifyChanged}. */ @Override public void notifyChanged(Notification msg) { //MappingPackage ePackage = ((FunctionPair)msg.getNotifier()).ePackageMapping(); MappingPackage ePackage = MappingPackage.eINSTANCE; if (msg.getFeature() == ePackage.getFunctionPair_In2out() || msg.getFeature() == ePackage.getFunctionPair_Out2in()) { fireNotifyChanged(msg); //HGD::fireNotifyChanged(msg.getNotifier(), msg.getEventType(), msg.getStructuralFeature(), msg.getOldValue(), msg.getNewValue(), msg.getPosition()); return; } super.notifyChanged(msg); }
/** * This returns the property descriptors for the adapted class. */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); //MappingPackage ePackage = ((FunctionPair)object).ePackageMapping(); MappingPackage ePackage = MappingPackage.eINSTANCE; // This is for the in2out feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_In2out_property_label"), MappingPlugin.getPlugin().getString("_UI_In2out_property_description"), ePackage.getFunctionPair_In2out())); // This is for the out2in feature. // itemPropertyDescriptors.add (new ItemPropertyDescriptor (adapterFactory, MappingPlugin.getPlugin().getString("_UI_Out2in_property_label"), MappingPlugin.getPlugin().getString("_UI_Out2in_property_description"), ePackage.getFunctionPair_Out2in())); } return itemPropertyDescriptors; }