Package org.eclipse.emf.edit.provider

Examples of org.eclipse.emf.edit.provider.ViewerNotification


  public void notifyChanged(Notification notification) {
    updateChildren(notification);

    switch (notification.getFeatureID(Forward.class)) {
      case TurtlePackage.FORWARD__LENGTH:
        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
        return;
    }
    super.notifyChanged(notification);
  }
View Full Code Here


    switch (notification.getFeatureID(Color.class)) {
      case TurtlePackage.COLOR__RED:
      case TurtlePackage.COLOR__GREEN:
      case TurtlePackage.COLOR__BLUE:
        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
        return;
    }
    super.notifyChanged(notification);
  }
View Full Code Here

    updateChildren(notification);

    switch (notification.getFeatureID(Turtle.class)) {
      case TurtlePackage.TURTLE__NAME:
      case TurtlePackage.TURTLE__PEN_STATE:
        fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
        return;
    }
    super.notifyChanged(notification);
  }
View Full Code Here

            case PomPackage.BUILD__OUTPUT_DIRECTORY:
            case PomPackage.BUILD__TEST_OUTPUT_DIRECTORY:
            case PomPackage.BUILD__DEFAULT_GOAL:
            case PomPackage.BUILD__DIRECTORY:
            case PomPackage.BUILD__FINAL_NAME:
                fireNotifyChanged( new ViewerNotification( notification, notification.getNotifier(), false, true ) );
                return;
            case PomPackage.BUILD__EXTENSIONS:
            case PomPackage.BUILD__RESOURCES:
            case PomPackage.BUILD__TEST_RESOURCES:
            case PomPackage.BUILD__PLUGIN_MANAGEMENT:
            case PomPackage.BUILD__PLUGINS:
            case PomPackage.BUILD__FILTERS:
                fireNotifyChanged( new ViewerNotification( notification, notification.getNotifier(), true, false ) );
                return;
        }
        super.notifyChanged( notification );
    }
View Full Code Here

            case PomPackage.DEVELOPER__EMAIL:
            case PomPackage.DEVELOPER__URL:
            case PomPackage.DEVELOPER__ORGANIZATION:
            case PomPackage.DEVELOPER__ORGANIZATION_URL:
            case PomPackage.DEVELOPER__TIMEZONE:
                fireNotifyChanged( new ViewerNotification( notification, notification.getNotifier(), false, true ) );
                return;
            case PomPackage.DEVELOPER__PROPERTIES:
            case PomPackage.DEVELOPER__ROLES:
                fireNotifyChanged( new ViewerNotification( notification, notification.getNotifier(), true, false ) );
                return;
        }
        super.notifyChanged( notification );
    }
View Full Code Here

        switch ( notification.getFeatureID( IssueManagement.class ) )
        {
            case PomPackage.ISSUE_MANAGEMENT__SYSTEM:
            case PomPackage.ISSUE_MANAGEMENT__URL:
                fireNotifyChanged( new ViewerNotification( notification, notification.getNotifier(), false, true ) );
                return;
        }
        super.notifyChanged( notification );
    }
View Full Code Here

        switch ( notification.getFeatureID( CiManagement.class ) )
        {
            case PomPackage.CI_MANAGEMENT__SYSTEM:
            case PomPackage.CI_MANAGEMENT__URL:
                fireNotifyChanged( new ViewerNotification( notification, notification.getNotifier(), false, true ) );
                return;
            case PomPackage.CI_MANAGEMENT__NOTIFIERS:
                fireNotifyChanged( new ViewerNotification( notification, notification.getNotifier(), true, false ) );
                return;
        }
        super.notifyChanged( notification );
    }
View Full Code Here

        switch ( notification.getFeatureID( Activation.class ) )
        {
            case PomPackage.ACTIVATION__ACTIVE_BY_DEFAULT:
            case PomPackage.ACTIVATION__JDK:
                fireNotifyChanged( new ViewerNotification( notification, notification.getNotifier(), false, true ) );
                return;
            case PomPackage.ACTIVATION__OS:
            case PomPackage.ACTIVATION__PROPERTY:
            case PomPackage.ACTIVATION__FILE:
                fireNotifyChanged( new ViewerNotification( notification, notification.getNotifier(), true, false ) );
                return;
        }
        super.notifyChanged( notification );
    }
View Full Code Here

        switch ( notification.getFeatureID( DistributionManagement.class ) )
        {
            case PomPackage.DISTRIBUTION_MANAGEMENT__DOWNLOAD_URL:
            case PomPackage.DISTRIBUTION_MANAGEMENT__STATUS:
                fireNotifyChanged( new ViewerNotification( notification, notification.getNotifier(), false, true ) );
                return;
            case PomPackage.DISTRIBUTION_MANAGEMENT__REPOSITORY:
            case PomPackage.DISTRIBUTION_MANAGEMENT__SNAPSHOT_REPOSITORY:
            case PomPackage.DISTRIBUTION_MANAGEMENT__SITE:
            case PomPackage.DISTRIBUTION_MANAGEMENT__RELOCATION:
                fireNotifyChanged( new ViewerNotification( notification, notification.getNotifier(), true, false ) );
                return;
        }
        super.notifyChanged( notification );
    }
View Full Code Here

        updateChildren( notification );

        switch ( notification.getFeatureID( DocumentRoot.class ) )
        {
            case PomPackage.DOCUMENT_ROOT__PROJECT:
                fireNotifyChanged( new ViewerNotification( notification, notification.getNotifier(), true, false ) );
                return;
        }
        super.notifyChanged( notification );
    }
View Full Code Here

TOP

Related Classes of org.eclipse.emf.edit.provider.ViewerNotification

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.