Examples of eAdapters()


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

    public void decorate( Object element, IDecoration decoration ) {
        Layer layer = (Layer) element; // should be safe, extention point does the instanceof
                                            // check
        decoration.addOverlay(ProjectUIPlugin.getDefault().getImageDescriptor(ISharedImages.WRITE_OVR));

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

    /**
 
View Full Code Here

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

        Layer layer = (Layer) element; // should be safe, extention point does the instanceof
                                            // check
        decoration.addOverlay(ProjectUIPlugin.getDefault().getImageDescriptor(ISharedImages.WRITE_OVR));

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

    /**
     * @see org.eclipse.jface.viewers.IBaseLabelProvider#addListener(org.eclipse.jface.viewers.ILabelProviderListener)
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

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

    @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

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

    @SuppressWarnings("unchecked")
    void setActiveTool( MapPart editor ) {
        // ensure we are listening to this MapPart's Map
        Map map = editor.getMap();
        Adapter listener = getCommandListener(editor);
        if (!map.eAdapters().contains(listener)){
            map.eAdapters().add(listener);
        }
       
        // Define the tool context allowing tools to interact with this map
        ToolContext tools = new ToolContextImpl();
View Full Code Here

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

    void setActiveTool( MapPart editor ) {
        // ensure we are listening to this MapPart's Map
        Map map = editor.getMap();
        Adapter listener = getCommandListener(editor);
        if (!map.eAdapters().contains(listener)){
            map.eAdapters().add(listener);
        }
       
        // Define the tool context allowing tools to interact with this map
        ToolContext tools = new ToolContextImpl();
        tools.setMapInternal(map);
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.