Examples of dispose()


Examples of org.locationtech.udig.catalog.IServiceFactory.dispose()

                    return registered.getIdentifier();
                }
            }
        }
        finally {
            serviceFactory.dispose( candidates, null );
        }
        // It is okay if we don't find anything, the user interface
        // will let the user know - tempting to force a broken WMS
        // handle onto the catalog though
        return url;
View Full Code Here

Examples of org.locationtech.udig.project.internal.render.impl.RendererImpl.dispose()

          if (geoResource.canResolve(RendererImpl.class)) {
              // if the service wants to use its own renderer, let it be
                RendererImpl rendererImpl = geoResource.resolve(RendererImpl.class, monitor);
                rendererImpl.setContext(currentContext);
                rendererImpl.render(graphics, monitor);
                rendererImpl.dispose();
                return;
            }
         
          //check that actually we have something to draw
            currentContext.setStatus(ILayer.WAIT);
View Full Code Here

Examples of org.locationtech.udig.project.render.Tile.dispose()

        for( Iterator<Object> iterator = tileCache.getKeys().iterator(); iterator.hasNext(); ) {
            ReferencedEnvelope key = (ReferencedEnvelope) iterator.next();
            Tile t = (Tile)tileCache.get(key);
            if (t != null){
                removeAdapters(t.getRenderExecutor());
                t.dispose();
            }
        }   
    }
   
    /**
 
View Full Code Here

Examples of org.locationtech.udig.project.ui.IFeaturePanel.dispose()

    private void disposeTabs(Collection tabs) {
        for (Iterator iter = tabs.iterator(); iter.hasNext();) {
            IFeaturePanel tab = (IFeaturePanel) iter.next();
            Composite composite = (Composite) tabToComposite.remove(tab);
            tab.dispose();
            if (composite != null) {
                composite.dispose();
            }
        }
    }
View Full Code Here

Examples of org.locationtech.udig.ui.graphics.SWTGraphics.dispose()

        // draw feature
        SWTGraphics graphics=new SWTGraphics(image, Display.getDefault());
       
        drawing.drawFeature(graphics, feature,
                getMap().getViewportModel().worldToScreenTransform(envelope, new Dimension(width,height)), false, syms, mt);
        graphics.dispose();
    }
   
    /** I haven't been able to get the SWT image buffer going yet
     * So this flag is so I can quickly enable the unstable code for
     * development and disable it for committing my changes.
View Full Code Here

Examples of org.locationtech.udig.ui.graphics.ViewportGraphics.dispose()

     */
    public void drawDirect( Image image, Display display, SimpleFeature feature, Style style ) {

        ViewportGraphics graphics = createSWTGraphics(image, display);
        drawFeature(graphics, feature, style, new AffineTransform());
        graphics.dispose();
    }

    public void drawDirect( Image image, Display display, SimpleFeature feature, Rule rule ) {
        AffineTransform worldToScreenTransform = new AffineTransform();

View Full Code Here

Examples of org.lwjgl.util.WaveData.dispose()

    // copy to buffers
    AL10.alBufferData(buffers[bufferIndex], wavefile.format, wavefile.data, wavefile.samplerate);

    // unload file again
    wavefile.dispose();

    // return index for this sound
    return bufferIndex++;
  }
View Full Code Here

Examples of org.mozilla.javascript.tools.debugger.Main.dispose()

                    }
                    });
                sdb.setExitAction(new Runnable() {
                    public void run() {
                        sdb.clearAllBreakpoints();
                        sdb.dispose();
                        shutdown();
                    }
                });
                Context.addContextListener(sdb);
                sdb.setScopeProvider(new ScopeProvider() {
View Full Code Here

Examples of org.mule.api.MuleContext.dispose()

        int threadsBeforeStart = Thread.activeCount();
        MuleContext ctx = new DefaultMuleContextFactory().createMuleContext();
        ctx.start();
        assertTrue(Thread.activeCount() > threadsBeforeStart);
        ctx.stop();
        ctx.dispose();
        // Check that workManager ("MuleServer") thread no longer exists.
        assertTrue(Thread.activeCount() == threadsBeforeStart);
        assertTrue(ctx.isDisposed());
        assertFalse(ctx.isInitialised());
        assertFalse(ctx.isStarted());
View Full Code Here

Examples of org.mule.api.context.WorkManager.dispose()

        logger.debug("Disposing dispatcher work manager");
        workManager = (WorkManager) dispatcherWorkManager.get();
        if (workManager != null)
        {
            workManager.dispose();
        }
        dispatcherWorkManager.set(null);

        logger.debug("Disposing requester work manager");
        workManager = (WorkManager) requesterWorkManager.get();
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.