Examples of dispose()


Examples of com.googlecode.flaxcrawler.concurrent.BerkleyQueue.dispose()

                assertNotNull(obj);
            }

            assertNull(queue.poll());
        } finally {
            queue.dispose();
        }
    }

    @Persistent
    public static class TestTask extends BaseTask {
View Full Code Here

Examples of com.googlecode.flaxcrawler.frontier.DefaultStatisticsService.dispose()

            assertNotNull(statisticsService.getDomainStatistics("google.com"));
            assertTrue(statisticsService.isCrawled("http://google.com/"));
            assertTrue(statisticsService.getDomainStatistics("google.com").getScheduled() > 0);
        } finally {
            if (statisticsService != null) {
                statisticsService.dispose();
            }
        }
    }
}
View Full Code Here

Examples of com.googlecode.javacv.CanvasFrame.dispose()

      }
      grabber.stop();
    } catch (Exception e) {
      e.printStackTrace();
    }
    canvas.dispose();

  }

  /**
   * the web cam takes about 1 second to fully adjust to get a clear image so
View Full Code Here

Examples of com.hexidec.ekit.component.FontSelectorDialog.dispose()

    }
    else
    {
      FontSelectorDialog fsdInput = new FontSelectorDialog(parentEkit.getFrame(), Translatrix.getTranslationString("FontDialogTitle"), true, "face", parentEkit.getTextPane().getSelectedText());
      String newFace = new String(fsdInput.getFontName());
      fsdInput.dispose();
      if(newFace != null)
      {
        ActionEvent ae2 = new ActionEvent(parentEkit.getTextPane(), ae.getID(), newFace, ae.getWhen(), ae.getModifiers());
        StyledEditorKit.FontFamilyAction newFontFamilyAction = new StyledEditorKit.FontFamilyAction("fontFamilyAction", newFace);
        newFontFamilyAction.actionPerformed(ae2);
View Full Code Here

Examples of com.hexidec.ekit.component.UserInputAnchorDialog.dispose()

        {
          if(!htmlAttribs.containsKey("href"))
          {
            UserInputAnchorDialog uidInput = new UserInputAnchorDialog(parentEkit, Translatrix.getTranslationString("AnchorDialogTitle"), true, currentAnchor);
            String newAnchor = uidInput.getInputText();
            uidInput.dispose();
            if(newAnchor != null)
            {
              htmlAttribs2.put("href", newAnchor);
            }
            else
View Full Code Here

Examples of com.intellij.ide.structureView.StructureViewModel.dispose()

    final StructureViewModel structureViewModel = structureView.getTreeModel();

    AbstractTreeStructure jsTreeStructure = new SmartTreeStructure(getProject(), structureViewModel);

    Object[] items = TreeStructureUtil.getChildElementsFromTreeStructure(jsTreeStructure, jsTreeStructure.getRootElement());
    structureViewModel.dispose();
    Disposer.dispose(structureView);
    return items;
  }

  private StructureView createStructureViewModel() {
View Full Code Here

Examples of com.intellij.openapi.Disposable.dispose()

    public void dispose() {
        for (TableCellEditor cellEditor : cache.values()) {
            if (cellEditor instanceof Disposable) {
                Disposable disposable = (Disposable) cellEditor;
                disposable.dispose();
            }
        }
        cache.clear();
    }
}
View Full Code Here

Examples of com.intellij.openapi.editor.RangeMarker.dispose()

      // todo restore original expression if not success
      PsiDocumentManager.getInstance(myProject).commitDocument(document);
      if (exprMarker != null && exprMarker.isValid()) {
        myEditor.getCaretModel().moveToOffset(exprMarker.getStartOffset());
        myEditor.getScrollingModel().scrollToCaret(ScrollType.MAKE_VISIBLE);
        exprMarker.dispose();
      }
    } finally {
      accessToken.finish();
    }
  }
View Full Code Here

Examples of com.intellij.openapi.roots.ModifiableRootModel.dispose()

        try {
            modifiableModel = ModuleRootManager.getInstance(module).getModifiableModel();
            return new IntellijModuleWrapper(modifiableModel);
        } catch (RuntimeException e) {
            if (modifiableModel != null) {
                modifiableModel.dispose();
            }
            throw e;
        }
    }
View Full Code Here

Examples of com.itextpdf.awt.PdfGraphics2D.dispose()

        int w = pg.getWidth();
        int h = pg.getHeight();
        PdfTemplate tp = cb.createTemplate(w, h);
        PdfGraphics2D g2d = new PdfGraphics2D(tp, w, h, null, false, true, quality);
        g2d.drawImage(awtImage, 0, 0, null);
        g2d.dispose();
        return getInstance(tp);
    }
}
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.