Examples of eAdapters()


Examples of org.locationtech.udig.printing.model.Box.eAdapters()

        if (!isActive()) {
            return;
        }
        super.deactivate();
        Box box = ((Box) getModel());
        box.eAdapters().remove(this.listener);
        box.removePropertyChangeListener(listener);
    }
   
    @Override
  public Object getAdapter(Class key) {
View Full Code Here

Examples of org.locationtech.udig.project.internal.Folder.eAdapters()

         * @param msg
         */
        private void addListeners(Notification msg) {
            if (msg.getNewValue() instanceof Folder) {
                final Folder folder = (Folder) msg.getNewValue();
                folder.eAdapters().add(mapDeepListener);
            }
        }

        /**
         * Removes needed listeners to the event object.
View Full Code Here

Examples of org.locationtech.udig.project.internal.Folder.eAdapters()

         * @param msg
         */
        private void removeListeners(Notification msg) {
            if (msg.getOldValue() instanceof Folder) {
                final Folder folder = (Folder) msg.getOldValue();
                folder.eAdapters().remove(mapDeepListener);
            }
        }
       
        /**
         * Refresh the handlers and ui elements when a legend item is added/removed.
View Full Code Here

Examples of org.locationtech.udig.project.internal.Layer.eAdapters()

            decoration.addOverlay(ovr, IDecoration.BOTTOM_LEFT);

        // decoration.addOverlay( ProjectUIPlugin.getDefault().getImageDescriptor( ISharedImages.SELECT_UDR ),
        // IDecoration.UNDERLAY );

        if (!layer.eAdapters().contains(adapterImpl))
            layer.eAdapters().add(adapterImpl);
    }

    private ImageDescriptor statusIcon( Layer layer ) {
        currentlyDisplayedStatus.put(layer, layer.getStatus());
View Full Code Here

Examples of org.locationtech.udig.project.internal.Layer.eAdapters()

        // decoration.addOverlay( ProjectUIPlugin.getDefault().getImageDescriptor( ISharedImages.SELECT_UDR ),
        // IDecoration.UNDERLAY );

        if (!layer.eAdapters().contains(adapterImpl))
            layer.eAdapters().add(adapterImpl);
    }

    private ImageDescriptor statusIcon( Layer layer ) {
        currentlyDisplayedStatus.put(layer, layer.getStatus());
        switch( layer.getStatus() ) {
View Full Code Here

Examples of org.locationtech.udig.project.internal.Layer.eAdapters()

        deepAdapters.add(adapter);
        if (!owner.eAdapters().contains(adapter))
            owner.eAdapters().add(adapter);
        for( Object object : this ) {
            Layer layer = (Layer) object;
            if (!layer.eAdapters().contains(adapter))
                layer.eAdapters().add(adapter);
        }
    }

    /**
 
View Full Code Here

Examples of org.locationtech.udig.project.internal.Layer.eAdapters()

        if (!owner.eAdapters().contains(adapter))
            owner.eAdapters().add(adapter);
        for( Object object : this ) {
            Layer layer = (Layer) object;
            if (!layer.eAdapters().contains(adapter))
                layer.eAdapters().add(adapter);
        }
    }

    /**
     * removes the adapter from all layers.
View Full Code Here

Examples of org.locationtech.udig.project.internal.Layer.eAdapters()

    private void removeAllInterceptors( Collection<?> c ) {
        for( Iterator<?> iter = c.iterator(); iter.hasNext(); ) {
            Layer element = (Layer) iter.next();
            runLayerInterceptor(element, "layerRemoved"); //$NON-NLS-1$
            element.eAdapters().removeAll(deepAdapters);
        }
    }

    private void runAddInterceptors( Object element ) {
        Layer layer = (Layer) element;
View Full Code Here

Examples of org.locationtech.udig.project.internal.Layer.eAdapters()

    }

    private void runAddInterceptors( Object element ) {
        Layer layer = (Layer) element;
        for( Adapter deepAdapter : deepAdapters ) {
            if (!layer.eAdapters().contains(deepAdapter))
                layer.eAdapters().add(deepAdapter);
        }
        runLayerInterceptor(layer, LayerInterceptor.ADDED_ID);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.Layer.eAdapters()

    private void runAddInterceptors( Object element ) {
        Layer layer = (Layer) element;
        for( Adapter deepAdapter : deepAdapters ) {
            if (!layer.eAdapters().contains(deepAdapter))
                layer.eAdapters().add(deepAdapter);
        }
        runLayerInterceptor(layer, LayerInterceptor.ADDED_ID);
    }

    private void runRemoveInterceptor( Object remove ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.