Package org.locationtech.udig.project.internal

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


    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

    }

    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

    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

    @SuppressWarnings("unchecked")
    protected void removeLayerListener(IRenderContext context) {
        if (context.getLayer() != null) {
            Layer layer = ((Layer) context.getLayer());
            List<Adapter> adapters = layer.eAdapters();
            if (adapters instanceof SynchronizedEList) {
                ((SynchronizedEList) adapters).lock();
            }
            try {
                ArrayList<Adapter> toRemove = new ArrayList<Adapter>();
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.