Package eu.admire.visual.pmml.radviz._40.diagram.navigator

Examples of eu.admire.visual.pmml.radviz._40.diagram.navigator.PMMLNavigatorLinkHelper


    org.dmg.pmml._40.DataFieldType lastDataFieldType = null;
    org.dmg.pmml._40.DataFieldType classDataFieldType = null;
       
    org.eclipse.emf.common.command.Command cmd = null;
       
    DataDictionaryTypeEditPart diagram = (DataDictionaryTypeEditPart)getHost();
   
 
    ArrayList<DataFieldType> tRelations  = null;
   
    ArrayList<DataFieldType> cRelations = new ArrayList<DataFieldType>();
   
    for (Object o : result) {     
      if (o instanceof DataFieldType ) {         
        DataFieldType dft = (DataFieldType)o;
   
       
       
        if (!dft.getName().equals("class")) {
   
        cRelations.add(dft);
         
        if (oldDataFieldType != null) {
         
         
          tRelations = new ArrayList<DataFieldType>();
         
          tRelations.add(oldDataFieldType);       
                                     
          cmd = SetCommand.create(diagram.getEditingDomain(), dft,
              (EStructuralFeature) dft.eClass().getEStructuralFeature(
                  "relation"), tRelations);
         
          diagram.getEditingDomain().getCommandStack().execute(cmd);         
         
          oldDataFieldType  = dft;
          lastDataFieldType  = dft;   
         
          tRelations  = null;
         
         
        } else {
         
          firstDataFieldType = dft;        
          oldDataFieldType  = dft;       
        }       
       
       
      } else {
        classDataFieldType = dft;       
      }
     
      }   
    } 


    tRelations = new ArrayList<DataFieldType>(firstDataFieldType.getRelation());
   
    tRelations.add(lastDataFieldType);       
             
    cmd = SetCommand.create(diagram.getEditingDomain(), firstDataFieldType,
        (EStructuralFeature) firstDataFieldType.eClass().getEStructuralFeature(
            "relation"), tRelations);

    diagram.getEditingDomain().getCommandStack().execute(cmd);

   
    cmd = SetCommand.create(diagram.getEditingDomain(), classDataFieldType,
        (EStructuralFeature) classDataFieldType.eClass().getEStructuralFeature(
            "relation"), cRelations);

    diagram.getEditingDomain().getCommandStack().execute(cmd);   
   
    return result;
  }
View Full Code Here


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetArray(ArrayType newArray, NotificationChain msgs) {
    ArrayType oldArray = array;
    array = newArray;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.SET_PREDICATE_TYPE__ARRAY, oldArray, newArray);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetArray(ArrayType newArray, NotificationChain msgs) {
    ArrayType oldArray = array;
    array = newArray;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.MISSING_VALUE_WEIGHTS_TYPE__ARRAY, oldArray, newArray);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetArray(ArrayType newArray, NotificationChain msgs) {
    ArrayType oldArray = array;
    array = newArray;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.CLASS_LABELS_TYPE__ARRAY, oldArray, newArray);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetArray(ArrayType newArray, NotificationChain msgs) {
    ArrayType oldArray = array;
    array = newArray;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.TIME_CYCLE_TYPE__ARRAY, oldArray, newArray);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetBinarySimilarity(BinarySimilarityType newBinarySimilarity, NotificationChain msgs) {
    BinarySimilarityType oldBinarySimilarity = binarySimilarity;
    binarySimilarity = newBinarySimilarity;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.COMPARISON_MEASURE_TYPE__BINARY_SIMILARITY, oldBinarySimilarity, newBinarySimilarity);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetBoundaryValues(BoundaryValuesType newBoundaryValues, NotificationChain msgs) {
    BoundaryValuesType oldBoundaryValues = boundaryValues;
    boundaryValues = newBoundaryValues;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.ROC_GRAPH_TYPE__BOUNDARY_VALUES, oldBoundaryValues, newBoundaryValues);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setCompareFunction(COMPAREFUNCTION newCompareFunction) {
    COMPAREFUNCTION oldCompareFunction = compareFunction;
    compareFunction = newCompareFunction == null ? COMPARE_FUNCTION_EDEFAULT : newCompareFunction;
    boolean oldCompareFunctionESet = compareFunctionESet;
    compareFunctionESet = true;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, _40Package.COMPARISON_MEASURE_TYPE__COMPARE_FUNCTION, oldCompareFunction, compareFunction, !oldCompareFunctionESet));
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void unsetCompareFunction() {
    COMPAREFUNCTION oldCompareFunction = compareFunction;
    boolean oldCompareFunctionESet = compareFunctionESet;
    compareFunction = COMPARE_FUNCTION_EDEFAULT;
    compareFunctionESet = false;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.UNSET, _40Package.COMPARISON_MEASURE_TYPE__COMPARE_FUNCTION, oldCompareFunction, COMPARE_FUNCTION_EDEFAULT, oldCompareFunctionESet));
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setCompareFunction(COMPAREFUNCTION newCompareFunction) {
    COMPAREFUNCTION oldCompareFunction = compareFunction;
    compareFunction = newCompareFunction == null ? COMPARE_FUNCTION_EDEFAULT : newCompareFunction;
    boolean oldCompareFunctionESet = compareFunctionESet;
    compareFunctionESet = true;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, _40Package.CLUSTERING_FIELD_TYPE__COMPARE_FUNCTION, oldCompareFunction, compareFunction, !oldCompareFunctionESet));
View Full Code Here

TOP

Related Classes of eu.admire.visual.pmml.radviz._40.diagram.navigator.PMMLNavigatorLinkHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.