Commit 93120db3 authored by Dominique Marcadet's avatar Dominique Marcadet

apply formatter after code generation

parent 9160ef2c
Pipeline #1575 passed with stages
in 34 seconds
......@@ -20,7 +20,6 @@
*/
package fr.centralesupelec.edf.riseclipse.iec61850.scl.provider;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
......@@ -46,8 +45,8 @@ public class AbstractConductingEquipmentItemProvider extends EquipmentItemProvid
* <!-- end-user-doc -->
* @generated
*/
public AbstractConductingEquipmentItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
public AbstractConductingEquipmentItemProvider( AdapterFactory adapterFactory ) {
super( adapterFactory );
}
/**
......@@ -57,9 +56,9 @@ public class AbstractConductingEquipmentItemProvider extends EquipmentItemProvid
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
public List< IItemPropertyDescriptor > getPropertyDescriptors( Object object ) {
if( itemPropertyDescriptors == null ) {
super.getPropertyDescriptors( object );
}
return itemPropertyDescriptors;
......@@ -74,11 +73,11 @@ public class AbstractConductingEquipmentItemProvider extends EquipmentItemProvid
* @generated
*/
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(SclPackage.eINSTANCE.getAbstractConductingEquipment_SubEquipment());
childrenFeatures.add(SclPackage.eINSTANCE.getAbstractConductingEquipment_Terminal());
public Collection< ? extends EStructuralFeature > getChildrenFeatures( Object object ) {
if( childrenFeatures == null ) {
super.getChildrenFeatures( object );
childrenFeatures.add( SclPackage.eINSTANCE.getAbstractConductingEquipment_SubEquipment() );
childrenFeatures.add( SclPackage.eINSTANCE.getAbstractConductingEquipment_Terminal() );
}
return childrenFeatures;
}
......@@ -89,11 +88,11 @@ public class AbstractConductingEquipmentItemProvider extends EquipmentItemProvid
* @generated
*/
@Override
protected EStructuralFeature getChildFeature(Object object, Object child) {
protected EStructuralFeature getChildFeature( Object object, Object child ) {
// Check the type of the specified child object and return the proper feature to use for
// adding (see {@link AddCommand}) it as a child.
return super.getChildFeature(object, child);
return super.getChildFeature( object, child );
}
/**
......@@ -103,8 +102,8 @@ public class AbstractConductingEquipmentItemProvider extends EquipmentItemProvid
* @generated
*/
@Override
public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/AbstractConductingEquipment"));
public Object getImage( Object object ) {
return overlayImage( object, getResourceLocator().getImage( "full/obj16/AbstractConductingEquipment" ) );
}
/**
......@@ -114,13 +113,11 @@ public class AbstractConductingEquipmentItemProvider extends EquipmentItemProvid
* @generated
*/
@Override
public String getText(Object object) {
String label = ((AbstractConductingEquipment)object).getName();
return label == null || label.length() == 0 ?
getString("_UI_AbstractConductingEquipment_type") :
getString("_UI_AbstractConductingEquipment_type") + " " + label;
public String getText( Object object ) {
String label = ( ( AbstractConductingEquipment ) object ).getName();
return label == null || label.length() == 0 ? getString( "_UI_AbstractConductingEquipment_type" )
: getString( "_UI_AbstractConductingEquipment_type" ) + " " + label;
}
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
......@@ -130,16 +127,16 @@ public class AbstractConductingEquipmentItemProvider extends EquipmentItemProvid
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(AbstractConductingEquipment.class)) {
case SclPackage.ABSTRACT_CONDUCTING_EQUIPMENT__SUB_EQUIPMENT:
case SclPackage.ABSTRACT_CONDUCTING_EQUIPMENT__TERMINAL:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
return;
public void notifyChanged( Notification notification ) {
updateChildren( notification );
switch( notification.getFeatureID( AbstractConductingEquipment.class ) ) {
case SclPackage.ABSTRACT_CONDUCTING_EQUIPMENT__SUB_EQUIPMENT:
case SclPackage.ABSTRACT_CONDUCTING_EQUIPMENT__TERMINAL:
fireNotifyChanged( new ViewerNotification( notification, notification.getNotifier(), true, false ) );
return;
}
super.notifyChanged(notification);
super.notifyChanged( notification );
}
/**
......@@ -150,23 +147,18 @@ public class AbstractConductingEquipmentItemProvider extends EquipmentItemProvid
* @generated
*/
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(SclPackage.eINSTANCE.getAbstractConductingEquipment_SubEquipment(),
SclFactory.eINSTANCE.createSubEquipment()));
newChildDescriptors.add
(createChildParameter
(SclPackage.eINSTANCE.getAbstractConductingEquipment_Terminal(),
SclFactory.eINSTANCE.createTerminal()));
newChildDescriptors.add
(createChildParameter
(SclPackage.eINSTANCE.getAbstractConductingEquipment_Terminal(),
SclFactory.eINSTANCE.createNeutralPoint()));
protected void collectNewChildDescriptors( Collection< Object > newChildDescriptors, Object object ) {
super.collectNewChildDescriptors( newChildDescriptors, object );
newChildDescriptors
.add( createChildParameter( SclPackage.eINSTANCE.getAbstractConductingEquipment_SubEquipment(),
SclFactory.eINSTANCE.createSubEquipment() ) );
newChildDescriptors.add( createChildParameter( SclPackage.eINSTANCE.getAbstractConductingEquipment_Terminal(),
SclFactory.eINSTANCE.createTerminal() ) );
newChildDescriptors.add( createChildParameter( SclPackage.eINSTANCE.getAbstractConductingEquipment_Terminal(),
SclFactory.eINSTANCE.createNeutralPoint() ) );
}
}
......@@ -20,7 +20,6 @@
*/
package fr.centralesupelec.edf.riseclipse.iec61850.scl.provider;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
......@@ -48,8 +47,8 @@ public class AbstractEqFuncSubFuncItemProvider extends PowerSystemResourceItemPr
* <!-- end-user-doc -->
* @generated
*/
public AbstractEqFuncSubFuncItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
public AbstractEqFuncSubFuncItemProvider( AdapterFactory adapterFactory ) {
super( adapterFactory );
}
/**
......@@ -59,11 +58,11 @@ public class AbstractEqFuncSubFuncItemProvider extends PowerSystemResourceItemPr
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
public List< IItemPropertyDescriptor > getPropertyDescriptors( Object object ) {
if( itemPropertyDescriptors == null ) {
super.getPropertyDescriptors( object );
addTypePropertyDescriptor(object);
addTypePropertyDescriptor( object );
}
return itemPropertyDescriptors;
}
......@@ -74,20 +73,20 @@ public class AbstractEqFuncSubFuncItemProvider extends PowerSystemResourceItemPr
* <!-- end-user-doc -->
* @generated
*/
protected void addTypePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_AbstractEqFuncSubFunc_type_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AbstractEqFuncSubFunc_type_feature", "_UI_AbstractEqFuncSubFunc_type"),
SclPackage.eINSTANCE.getAbstractEqFuncSubFunc_Type(),
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
protected void addTypePropertyDescriptor( Object object ) {
itemPropertyDescriptors.add(
createItemPropertyDescriptor( ( ( ComposeableAdapterFactory ) adapterFactory ).getRootAdapterFactory(),
getResourceLocator(),
getString( "_UI_AbstractEqFuncSubFunc_type_feature" ),
getString( "_UI_PropertyDescriptor_description", "_UI_AbstractEqFuncSubFunc_type_feature",
"_UI_AbstractEqFuncSubFunc_type" ),
SclPackage.eINSTANCE.getAbstractEqFuncSubFunc_Type(),
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null ) );
}
/**
......@@ -99,11 +98,11 @@ public class AbstractEqFuncSubFuncItemProvider extends PowerSystemResourceItemPr
* @generated
*/
@Override
public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
if (childrenFeatures == null) {
super.getChildrenFeatures(object);
childrenFeatures.add(SclPackage.eINSTANCE.getAbstractEqFuncSubFunc_EqSubFunction());
childrenFeatures.add(SclPackage.eINSTANCE.getAbstractEqFuncSubFunc_SubGeneralEquipment());
public Collection< ? extends EStructuralFeature > getChildrenFeatures( Object object ) {
if( childrenFeatures == null ) {
super.getChildrenFeatures( object );
childrenFeatures.add( SclPackage.eINSTANCE.getAbstractEqFuncSubFunc_EqSubFunction() );
childrenFeatures.add( SclPackage.eINSTANCE.getAbstractEqFuncSubFunc_SubGeneralEquipment() );
}
return childrenFeatures;
}
......@@ -114,11 +113,11 @@ public class AbstractEqFuncSubFuncItemProvider extends PowerSystemResourceItemPr
* @generated
*/
@Override
protected EStructuralFeature getChildFeature(Object object, Object child) {
protected EStructuralFeature getChildFeature( Object object, Object child ) {
// Check the type of the specified child object and return the proper feature to use for
// adding (see {@link AddCommand}) it as a child.
return super.getChildFeature(object, child);
return super.getChildFeature( object, child );
}
/**
......@@ -128,8 +127,8 @@ public class AbstractEqFuncSubFuncItemProvider extends PowerSystemResourceItemPr
* @generated
*/
@Override
public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/AbstractEqFuncSubFunc"));
public Object getImage( Object object ) {
return overlayImage( object, getResourceLocator().getImage( "full/obj16/AbstractEqFuncSubFunc" ) );
}
/**
......@@ -139,13 +138,11 @@ public class AbstractEqFuncSubFuncItemProvider extends PowerSystemResourceItemPr
* @generated
*/
@Override
public String getText(Object object) {
String label = ((AbstractEqFuncSubFunc)object).getName();
return label == null || label.length() == 0 ?
getString("_UI_AbstractEqFuncSubFunc_type") :
getString("_UI_AbstractEqFuncSubFunc_type") + " " + label;
public String getText( Object object ) {
String label = ( ( AbstractEqFuncSubFunc ) object ).getName();
return label == null || label.length() == 0 ? getString( "_UI_AbstractEqFuncSubFunc_type" )
: getString( "_UI_AbstractEqFuncSubFunc_type" ) + " " + label;
}
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
......@@ -155,19 +152,19 @@ public class AbstractEqFuncSubFuncItemProvider extends PowerSystemResourceItemPr
* @generated
*/
@Override
public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(AbstractEqFuncSubFunc.class)) {
case SclPackage.ABSTRACT_EQ_FUNC_SUB_FUNC__TYPE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case SclPackage.ABSTRACT_EQ_FUNC_SUB_FUNC__EQ_SUB_FUNCTION:
case SclPackage.ABSTRACT_EQ_FUNC_SUB_FUNC__SUB_GENERAL_EQUIPMENT:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));