Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

...
 
Commits (128)
......@@ -7,9 +7,15 @@ stages:
build:
stage: build
script:
- "pushd .."
- "if [ -d RiseClipseDeveloper ]; then cd RiseClipseDeveloper ; git pull ; else git clone https://gitlab.centralesupelec.fr/RiseClipseGroup/RiseClipseDeveloper.git ; fi"
- "popd"
- "mvn clean install"
- "mvn clean package"
tags:
- riseclipse
# deploy is not restricted to master because of dependencies beween plug-ins
deploy:
stage: deploy
script:
- "mvn deploy"
tags:
- riseclipse
This repository is now read-only because it has been moved to https://gitlab-research.centralesupelec.fr/RiseClipseGroup/riseclipse-metamodel-scl2003
\ No newline at end of file
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: RiseClipse IEC 61850 SCL Edit Support
Bundle-Vendor: CentraleSupélec & EDF
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-SymbolicName: fr.centralesupelec.edf.riseclipse.iec61850.scl.edit;singleton:=true
Bundle-Version: 1.0.0.qualifier
Automatic-Module-Name: fr.centralesupelec.edf.riseclipse.iec61850.scl.edit
Bundle-Version: 1.0.2.qualifier
Bundle-ClassPath: .
Bundle-Activator: fr.centralesupelec.edf.riseclipse.iec61850.scl.provider.SCLEditPlugin$Implementation
Bundle-Localization: plugin
......
# /**
# * Copyright (c) 2017 CentraleSupélec & EDF.
# * All rights reserved. This program and the accompanying materials
# * are made available under the terms of the Eclipse Public License v1.0
# * which accompanies this distribution, and is available at
# * http://www.eclipse.org/legal/epl-v10.html
# *
# * This file is part of the RiseClipse tool
# *
# * Contributors:
# * Computer Science Department, CentraleSupélec : initial implementation
# * Contacts:
# * Dominique.Marcadet@centralesupelec.fr
# *
# */
# Copyright (c) 2018 CentraleSuplec & EDF.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# This file is part of the RiseClipse tool
#
# Contributors:
# Computer Science Department, CentraleSuplec
# EDF R&D
# Contacts:
# dominique.marcadet@centralesupelec.fr
# aurelie.dehouck-neveu@edf.fr
# Web site:
# http://wdi.supelec.fr/software/RiseClipse/
bin.includes = .,\
icons/,\
......
......@@ -2,22 +2,22 @@
<?eclipse version="3.0"?>
<!--
/**
* Copyright (c) 2017 CentraleSupélec & EDF.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* This file is part of the RiseClipse tool
*
* Contributors:
* Computer Science Department, CentraleSupélec : initial implementation
* Contacts:
* Dominique.Marcadet@centralesupelec.fr
*
*/
Copyright (c) 2018 CentraleSupélec & EDF.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
This file is part of the RiseClipse tool
Contributors:
Computer Science Department, CentraleSupélec
EDF R&D
Contacts:
dominique.marcadet@centralesupelec.fr
aurelie.dehouck-neveu@edf.fr
Web site:
http://wdi.supelec.fr/software/RiseClipse/
-->
<plugin>
......
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<?xml version="1.0" encoding="UTF-8" standalone="no"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fr.centralesupelec.edf.riseclipse</groupId>
<artifactId>fr.centralesupelec.edf.riseclipse.iec61850.scl.edit</artifactId>
<version>1.0.0-SNAPSHOT</version>
<version>1.0.2-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
<parent>
<groupId>fr.centralesupelec.edf.riseclipse</groupId>
<artifactId>RiseClipseMetamodel_SCL2003</artifactId>
<version>1.0</version>
<version>1.0.2-SNAPSHOT</version>
</parent>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<!-- This needed parameter seems to be ignored if put in the pom root file -->
<pomDependencies>consider</pomDependencies>
</configuration>
</plugin>
</plugins>
</build>
<!-- RiseClipse plugins needed -->
<dependencies>
<dependency>
<groupId>fr.centralesupelec.edf.riseclipse</groupId>
<artifactId>fr.centralesupelec.edf.riseclipse.iec61850.scl</artifactId>
<version>1.0.2-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
/**
* Copyright (c) 2017 CentraleSupélec & EDF.
* Copyright (c) 2018 CentraleSupélec & EDF.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
......@@ -8,10 +8,13 @@
* This file is part of the RiseClipse tool
*
* Contributors:
* Computer Science Department, CentraleSupélec : initial implementation
* Computer Science Department, CentraleSupélec
* EDF R&D
* Contacts:
* Dominique.Marcadet@centralesupelec.fr
*
* dominique.marcadet@centralesupelec.fr
* aurelie.dehouck-neveu@edf.fr
* Web site:
* http://wdi.supelec.fr/software/RiseClipse/
*/
package fr.centralesupelec.edf.riseclipse.iec61850.scl.provider;
......
/**
* Copyright (c) 2017 CentraleSupélec & EDF.
* Copyright (c) 2018 CentraleSupélec & EDF.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
......@@ -8,10 +8,13 @@
* This file is part of the RiseClipse tool
*
* Contributors:
* Computer Science Department, CentraleSupélec : initial implementation
* Computer Science Department, CentraleSupélec
* EDF R&D
* Contacts:
* Dominique.Marcadet@centralesupelec.fr
*
* dominique.marcadet@centralesupelec.fr
* aurelie.dehouck-neveu@edf.fr
* Web site:
* http://wdi.supelec.fr/software/RiseClipse/
*/
package fr.centralesupelec.edf.riseclipse.iec61850.scl.provider;
......@@ -36,7 +39,7 @@ import fr.centralesupelec.edf.riseclipse.iec61850.scl.SclPackage;
* <!-- end-user-doc -->
* @generated
*/
public class AbstractDataAttributeItemProvider extends DataAttributeItemProvider {
public class AbstractDataAttributeItemProvider extends UnNamingItemProvider {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
......@@ -65,6 +68,12 @@ public class AbstractDataAttributeItemProvider extends DataAttributeItemProvider
addValImportPropertyDescriptor(object);
addValKindPropertyDescriptor(object);
addRefersToEnumTypePropertyDescriptor(object);
addRefersToDATypePropertyDescriptor(object);
addReferredByFCDAPropertyDescriptor(object);
addReferredByExtRefPropertyDescriptor(object);
addNamePropertyDescriptor(object);
addReferredByDAIPropertyDescriptor(object);
addReferredBySDIPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
......@@ -223,6 +232,138 @@ public class AbstractDataAttributeItemProvider extends DataAttributeItemProvider
null));
}
/**
* This adds a property descriptor for the Refers To DA Type feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addRefersToDATypePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_AbstractDataAttribute_RefersToDAType_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AbstractDataAttribute_RefersToDAType_feature", "_UI_AbstractDataAttribute_type"),
SclPackage.eINSTANCE.getAbstractDataAttribute_RefersToDAType(),
true,
false,
true,
null,
null,
null));
}
/**
* This adds a property descriptor for the Referred By FCDA feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addReferredByFCDAPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_AbstractDataAttribute_ReferredByFCDA_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AbstractDataAttribute_ReferredByFCDA_feature", "_UI_AbstractDataAttribute_type"),
SclPackage.eINSTANCE.getAbstractDataAttribute_ReferredByFCDA(),
true,
false,
true,
null,
null,
null));
}
/**
* This adds a property descriptor for the Referred By Ext Ref feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addReferredByExtRefPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_AbstractDataAttribute_ReferredByExtRef_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AbstractDataAttribute_ReferredByExtRef_feature", "_UI_AbstractDataAttribute_type"),
SclPackage.eINSTANCE.getAbstractDataAttribute_ReferredByExtRef(),
true,
false,
true,
null,
null,
null));
}
/**
* This adds a property descriptor for the Name feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addNamePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_AbstractDataAttribute_name_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AbstractDataAttribute_name_feature", "_UI_AbstractDataAttribute_type"),
SclPackage.eINSTANCE.getAbstractDataAttribute_Name(),
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
/**
* This adds a property descriptor for the Referred By DAI feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addReferredByDAIPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_AbstractDataAttribute_ReferredByDAI_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AbstractDataAttribute_ReferredByDAI_feature", "_UI_AbstractDataAttribute_type"),
SclPackage.eINSTANCE.getAbstractDataAttribute_ReferredByDAI(),
true,
false,
true,
null,
null,
null));
}
/**
* This adds a property descriptor for the Referred By SDI feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addReferredBySDIPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_AbstractDataAttribute_ReferredBySDI_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AbstractDataAttribute_ReferredBySDI_feature", "_UI_AbstractDataAttribute_type"),
SclPackage.eINSTANCE.getAbstractDataAttribute_ReferredBySDI(),
true,
false,
true,
null,
null,
null));
}
/**
* This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
* {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
......@@ -297,6 +438,7 @@ public class AbstractDataAttributeItemProvider extends DataAttributeItemProvider
case SclPackage.ABSTRACT_DATA_ATTRIBUTE__TYPE:
case SclPackage.ABSTRACT_DATA_ATTRIBUTE__VAL_IMPORT:
case SclPackage.ABSTRACT_DATA_ATTRIBUTE__VAL_KIND:
case SclPackage.ABSTRACT_DATA_ATTRIBUTE__NAME:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
case SclPackage.ABSTRACT_DATA_ATTRIBUTE__VAL:
......
/**
* Copyright (c) 2017 CentraleSupélec & EDF.
* Copyright (c) 2018 CentraleSupélec & EDF.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
......@@ -8,14 +8,21 @@
* This file is part of the RiseClipse tool
*
* Contributors:
* Computer Science Department, CentraleSupélec : initial implementation
* Computer Science Department, CentraleSupélec
* EDF R&D
* Contacts:
* Dominique.Marcadet@centralesupelec.fr
* dominique.marcadet@centralesupelec.fr
* aurelie.dehouck-neveu@edf.fr
* Web site:
* http://wdi.supelec.fr/software/RiseClipse/
*
*/
package fr.centralesupelec.edf.riseclipse.iec61850.scl.provider;
import fr.centralesupelec.edf.riseclipse.iec61850.scl.AbstractDataObject;
import fr.centralesupelec.edf.riseclipse.iec61850.scl.SclPackage;
import java.util.Collection;
import java.util.List;
......@@ -27,23 +34,20 @@ import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ViewerNotification;
import fr.centralesupelec.edf.riseclipse.iec61850.scl.DataObject;
import fr.centralesupelec.edf.riseclipse.iec61850.scl.SclPackage;
/**
* This is the item provider adapter for a {@link fr.centralesupelec.edf.riseclipse.iec61850.scl.DataObject} object.
* This is the item provider adapter for a {@link fr.centralesupelec.edf.riseclipse.iec61850.scl.AbstractDataObject} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class DataObjectItemProvider extends UnNamingItemProvider {
public class AbstractDataObjectItemProvider extends UnNamingItemProvider {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public DataObjectItemProvider(AdapterFactory adapterFactory) {
public AbstractDataObjectItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
......@@ -58,28 +62,28 @@ public class DataObjectItemProvider extends UnNamingItemProvider {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
addAccessControlPropertyDescriptor(object);
addReferredByFCDAPropertyDescriptor(object);
addNamePropertyDescriptor(object);
addTypePropertyDescriptor(object);
addRefersToDOTypePropertyDescriptor(object);
addReferredByExtRefPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
* This adds a property descriptor for the Access Control feature.
* This adds a property descriptor for the Name feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addAccessControlPropertyDescriptor(Object object) {
protected void addNamePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_DataObject_accessControl_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_DataObject_accessControl_feature", "_UI_DataObject_type"),
SclPackage.eINSTANCE.getDataObject_AccessControl(),
getString("_UI_AbstractDataObject_name_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AbstractDataObject_name_feature", "_UI_AbstractDataObject_type"),
SclPackage.eINSTANCE.getAbstractDataObject_Name(),
true,
false,
false,
......@@ -89,45 +93,45 @@ public class DataObjectItemProvider extends UnNamingItemProvider {
}
/**
* This adds a property descriptor for the Referred By FCDA feature.
* This adds a property descriptor for the Type feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addReferredByFCDAPropertyDescriptor(Object object) {
protected void addTypePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_DataObject_ReferredByFCDA_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_DataObject_ReferredByFCDA_feature", "_UI_DataObject_type"),
SclPackage.eINSTANCE.getDataObject_ReferredByFCDA(),
getString("_UI_AbstractDataObject_type_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AbstractDataObject_type_feature", "_UI_AbstractDataObject_type"),
SclPackage.eINSTANCE.getAbstractDataObject_Type(),
true,
false,
true,
null,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
/**
* This adds a property descriptor for the Name feature.
* This adds a property descriptor for the Refers To DO Type feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addNamePropertyDescriptor(Object object) {
protected void addRefersToDOTypePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_DataObject_name_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_DataObject_name_feature", "_UI_DataObject_type"),
SclPackage.eINSTANCE.getDataObject_Name(),
getString("_UI_AbstractDataObject_RefersToDOType_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AbstractDataObject_RefersToDOType_feature", "_UI_AbstractDataObject_type"),
SclPackage.eINSTANCE.getAbstractDataObject_RefersToDOType(),
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
true,
null,
null,
null));
}
......@@ -143,9 +147,9 @@ public class DataObjectItemProvider extends UnNamingItemProvider {
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_DataObject_ReferredByExtRef_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_DataObject_ReferredByExtRef_feature", "_UI_DataObject_type"),
SclPackage.eINSTANCE.getDataObject_ReferredByExtRef(),
getString("_UI_AbstractDataObject_ReferredByExtRef_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AbstractDataObject_ReferredByExtRef_feature", "_UI_AbstractDataObject_type"),
SclPackage.eINSTANCE.getAbstractDataObject_ReferredByExtRef(),
true,
false,
true,
......@@ -162,12 +166,12 @@ public class DataObjectItemProvider extends UnNamingItemProvider {
*/
@Override
public String getText(Object object) {
String label = ((DataObject)object).getName();
String label = ((AbstractDataObject)object).getName();
return label == null || label.length() == 0 ?
getString("_UI_DataObject_type") :
getString("_UI_DataObject_type") + " " + label;
getString("_UI_AbstractDataObject_type") :
getString("_UI_AbstractDataObject_type") + " " + label;
}
/**
* This handles model notifications by calling {@link #updateChildren} to update any cached
......@@ -180,9 +184,9 @@ public class DataObjectItemProvider extends UnNamingItemProvider {
public void notifyChanged(Notification notification) {
updateChildren(notification);
switch (notification.getFeatureID(DataObject.class)) {
case SclPackage.DATA_OBJECT__ACCESS_CONTROL:
case SclPackage.DATA_OBJECT__NAME:
switch (notification.getFeatureID(AbstractDataObject.class)) {
case SclPackage.ABSTRACT_DATA_OBJECT__NAME:
case SclPackage.ABSTRACT_DATA_OBJECT__TYPE:
fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
return;
}
......
/**
* Copyright (c) 2017 CentraleSupélec & EDF.
* Copyright (c) 2018 CentraleSupélec & EDF.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
......@@ -8,10 +8,13 @@
* This file is part of the RiseClipse tool
*
* Contributors:
* Computer Science Department, CentraleSupélec : initial implementation
* Computer Science Department, CentraleSupélec
* EDF R&D
* Contacts:
* Dominique.Marcadet@centralesupelec.fr
*
* dominique.marcadet@centralesupelec.fr
* aurelie.dehouck-neveu@edf.fr
* Web site:
* http://wdi.supelec.fr/software/RiseClipse/
*/
package fr.centralesupelec.edf.riseclipse.iec61850.scl.provider;
......
/**
* Copyright (c) 2017 CentraleSupélec & EDF.
* Copyright (c) 2018 CentraleSupélec & EDF.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
......@@ -8,10 +8,13 @@
* This file is part of the RiseClipse tool
*
* Contributors:
* Computer Science Department, CentraleSupélec : initial implementation
* Computer Science Department, CentraleSupélec
* EDF R&D
* Contacts:
* Dominique.Marcadet@centralesupelec.fr
*
* dominique.marcadet@centralesupelec.fr
* aurelie.dehouck-neveu@edf.fr
* Web site:
* http://wdi.supelec.fr/software/RiseClipse/
*/
package fr.centralesupelec.edf.riseclipse.iec61850.scl.provider;
......
/**
* Copyright (c) 2017 CentraleSupélec & EDF.
* Copyright (c) 2018 CentraleSupélec & EDF.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
......@@ -8,10 +8,13 @@
* This file is part of the RiseClipse tool
*
* Contributors:
* Computer Science Department, CentraleSupélec : initial implementation
* Computer Science Department, CentraleSupélec
* EDF R&D
* Contacts:
* Dominique.Marcadet@centralesupelec.fr
*
* dominique.marcadet@centralesupelec.fr
* aurelie.dehouck-neveu@edf.fr
* Web site:
* http://wdi.supelec.fr/software/RiseClipse/
*/
package fr.centralesupelec.edf.riseclipse.iec61850.scl.provider;
......
/**
* Copyright (c) 2017 CentraleSupélec & EDF.
* Copyright (c) 2018 CentraleSupélec & EDF.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
......@@ -8,10 +8,13 @@
* This file is part of the RiseClipse tool
*
* Contributors:
* Computer Science Department, CentraleSupélec : initial implementation
* Computer Science Department, CentraleSupélec
* EDF R&D
* Contacts:
* Dominique.Marcadet@centralesupelec.fr
*
* dominique.marcadet@centralesupelec.fr
* aurelie.dehouck-neveu@edf.fr
* Web site:
* http://wdi.supelec.fr/software/RiseClipse/
*/
package fr.centralesupelec.edf.riseclipse.iec61850.scl.provider;
......
/**
* Copyright (c) 2018 CentraleSupélec & EDF.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* This file is part of the RiseClipse tool
*
* Contributors:
* Computer Science Department, CentraleSupélec
* EDF R&D
* Contacts:
* dominique.marcadet@centralesupelec.fr
* aurelie.dehouck-neveu@edf.fr
* Web site:
* http://wdi.supelec.fr/software/RiseClipse/
*
*/
package fr.centralesupelec.edf.riseclipse.iec61850.scl.provider;
import fr.centralesupelec.edf.riseclipse.iec61850.scl.AgAuthentication;
import fr.centralesupelec.edf.riseclipse.iec61850.scl.SclPackage;
import java.util.Collection;
import java.util.List;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
/**
* This is the item provider adapter for a {@link fr.centralesupelec.edf.riseclipse.iec61850.scl.AgAuthentication} object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class AgAuthenticationItemProvider
extends ItemProviderAdapter
implements
IEditingDomainItemProvider,
IStructuredItemContentProvider,
ITreeItemContentProvider,
IItemLabelProvider,
IItemPropertySource {
/**
* This constructs an instance from a factory and a notifier.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public AgAuthenticationItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
/**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
addCertificatePropertyDescriptor(object);
addNonePropertyDescriptor(object);
addPasswordPropertyDescriptor(object);
addStrongPropertyDescriptor(object);
addWeakPropertyDescriptor(object);
}
return itemPropertyDescriptors;
}
/**
* This adds a property descriptor for the Certificate feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected void addCertificatePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_AgAuthentication_certificate_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_AgAuthentication_certificate_feature", "_UI_AgAuthentication_type"),
SclPackage.eINSTANCE.getAgAuthentication_Certificate(),
true,
false,
false,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
null,
null));
}
/**
* This adds a property descriptor for the None feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/