Package org.eclipse.emf.common.notify.impl

Examples of org.eclipse.emf.common.notify.impl.AdapterImpl


    if (eDataGraphExternalizable == null)
    {
      eDataGraphExternalizable = createEDataGraphExternalizable();
      getRootResource().setTrackingModification(true);
      modificationTracker =
        new AdapterImpl()
        {
          public void notifyChanged(Notification notification)
          {
            if (notification.getFeatureID(Resource.class) == Resource.RESOURCE__IS_MODIFIED && notification.getNewBooleanValue())
            {
View Full Code Here


        }
        if (projectRegistry == null)
            ProjectPlugin.log("Error getting project from resource"); //$NON-NLS-1$
        else {
            final ProjectRegistry registry = projectRegistry;
            projectRegistry.eAdapters().add(new AdapterImpl() {
                /**
                 * @see org.eclipse.emf.common.notify.impl.AdapterImpl#notifyChanged(org.eclipse.emf.common.notify.Notification)
                 */
                public void notifyChanged(Notification msg) {
                    if (msg.getFeatureID(ProjectRegistry.class) == ProjectPackage.PROJECT_REGISTRY__PROJECTS) {
View Full Code Here

  @Override
  public void run(Layer layer) {
   
    if (layer.hasResource(MapGraphic.class)){
      AdapterImpl x = (AdapterImpl) layer.getBlackboard().get(AddMapgraphicLayerInterceptor.MAPGRAPHIC_ADAPTER_KEY);
      if (x != null){
        ((MapImpl)layer.getMap()).removeDeepAdapter(x);
      }
    }
  }
View Full Code Here

        return;
      }
     
      final Layer thislayer = layer;
     
      AdapterImpl thisAdapter = new AdapterImpl() {
        public void notifyChanged(Notification event) {
          if (event.getNotifier() instanceof Layer) {
            int eventid = event.getFeatureID(Layer.class);
            if (eventid == ProjectPackage.LAYER__STYLE_BLACKBOARD ||
                eventid == ProjectPackage.LAYER__NAME ||
View Full Code Here

            }
        };
        mainmap.getContextModel().eAdapters().add(contextListener);
       
        //add a deep listener to listen to layer hide/show events
        Adapter layerVisibilityAdapter = new AdapterImpl(){
            @SuppressWarnings("unchecked")
            public void notifyChanged( final Notification msg ) {
                if (msg.getNotifier() instanceof Layer && msg.getFeatureID(Layer.class) == ProjectPackage.LAYER__VISIBLE) {
                    if (msg.getNewBooleanValue() != msg.getOldBooleanValue()){
                        // mapviewer needs refreshing
View Full Code Here

     * This method adds a listener to the layer list that synchronizes the contents of the context
     * model's layers list and the map's legend item's list.
     */
    private void setLegendItemSynchronizer() {

        layers.addDeepAdapter(new AdapterImpl() {
            @Override
            public void notifyChanged(Notification msg) {
                super.notifyChanged(msg);
                if (ProjectPackage.CONTEXT_MODEL__LAYERS == msg.getFeatureID(ContextModel.class)) {
                    switch (msg.getEventType()) {
View Full Code Here

    this.env = env;
    this.renderExecutorComp = rec;
    this.tileSize = tileSize;
   
   
    rec.eAdapters().add(new AdapterImpl(){
       
        /**
         * Does nothing; clients may override so that it does something.
         */
        @Override
View Full Code Here

                    }
                }
            }
           
        };
        AdapterImpl adapterImpl = new AdapterImpl(){
                   @Override
                public void notifyChanged( final Notification msg ) {
                   
                    if( msg.getNotifier() instanceof RenderManager &&
                            msg.getFeatureID(RenderManager.class)==RenderPackage.RENDER_MANAGER__RENDER_EXECUTOR ){
View Full Code Here

* Provides factory methods for various Listeners used by RenderManagerDynamic.
*/
public class RenderManagerAdapters {

    static Adapter createViewportListener( final RenderManagerImpl manager ) {
        return new AdapterImpl(){
            /**
             * @see org.eclipse.emf.common.notify.impl.AdapterImpl#notifyChanged(org.eclipse.emf.common.notify.Notification)
             */
          public void notifyChanged( Notification msg ) {
                manager.checkState();
View Full Code Here

     *   <li>RenderPackage.VIEWPORT_MODEL__BOUNDS
     *   <li>RenderPackage.VIEWPORT_MODEL__CRS
     * </ul>
     */
    static Adapter createViewportListener( final TiledRenderManagerDynamic manager ) {
        return new AdapterImpl(){
            /**
             * @see org.eclipse.emf.common.notify.impl.AdapterImpl#notifyChanged(org.eclipse.emf.common.notify.Notification)
             */
            public void notifyChanged( Notification msg ) {
                manager.checkState();
View Full Code Here

TOP

Related Classes of org.eclipse.emf.common.notify.impl.AdapterImpl

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.