Examples of Library


Examples of com.tulskiy.musique.library.Library

        Playlist libraryPlaylist = new Playlist();
        File file = new File(PLAYLIST_PATH, "library.mus");
        if (file.exists())
            libraryPlaylist.load(file);
        library = new Library(libraryPlaylist);

        for (int i = 0; i < list.size(); i++) {
            Playlist playlist = list.get(i);
            playlist.load(new File(PLAYLIST_PATH, i + ".mus"));
            playlists.add(playlist);
View Full Code Here

Examples of engine.interfaces.Library

    }

    @Override
    protected void onAdd() {
        // Get animations from library
        Library l = getStage().getLibrary();
        for (String direction : DIRECTIONS) {
            for (String type : TYPES) {
                String end = type + direction;
                animations.put(end, l.findImage(prefix + end).getFrames(frameWidth));
            }
        }
        animation.setAnimation(animations.get("-stand-right"), STEPS_PER_FRAME);
    }
View Full Code Here

Examples of flex2.tools.oem.Library

  public static void run(OEMConsole console, String[] args)
        throws ConfigurationException, IOException, URISyntaxException
  {
      ThreadLocalToolkit.setLogger(console);
       
    final Library lib = new Library();
    lib.setLogger(console);
    OEMConfiguration c1 = (OEMConfiguration) lib.getDefaultConfiguration();
    CompcConfiguration c2 = getCompcConfiguration(args);
    OEMConfiguration c3 = new OEMConfiguration(null, c2);
    c1.importDefaults(c3);
    lib.setConfiguration(c1);
 
    // transfer the value of compute-digest from CompcConfiguration to OEMConfiguration.
    c1.enableDigestComputation(c2.getComputeDigest());
   
    for (Iterator i = c2.getClasses().iterator(); i.hasNext(); )
    {
      lib.addComponent((String) i.next());
    }
   
    List fileList = flex2.compiler.CompilerAPI.getVirtualFileList(c2.getIncludeSources(),
                                new HashSet<String>(Arrays.asList(flex2.tools.WebTierAPI.getSourcePathMimeTypes())));

    for (Iterator i = fileList.iterator(); i.hasNext(); )
    {
      lib.addComponent(new File(((VirtualFile) i.next()).getName()));
    }

    Map ss = c2.getStylesheets();
    for (Iterator i = ss.keySet().iterator(); i.hasNext(); )
    {
      String key = (String) i.next();
      lib.addStyleSheet(key, new File(((VirtualFile) ss.get(key)).getName()));
    }

    for (Iterator i = c2.getIncludeResourceBundles().iterator(); i.hasNext(); )
    {
      lib.addResourceBundle((String) i.next());
    }

    for (Iterator i = c2.getNamespaces().iterator(); i.hasNext(); )
    {
      lib.addComponent(new URI((String) i.next()));
    }
   
    Map m = c2.getFiles();
    for (Iterator i = m.keySet().iterator(); i.hasNext(); )
    {
      String key = (String) i.next();
      lib.addArchiveFile(key, new File(((VirtualFile) m.get(key)).getName()));
    }
       
        try
    {
            lib.load(new BufferedInputStream(new FileInputStream(new File(c2.getOutput() + ".incr"))));
            // load() wipes out our ThreadLocal and we lose our logger
            ThreadLocalToolkit.setLogger(console);
    }
    catch (IOException ex)
    {
    }
       
    long size = 0;
    if ((size = lib.build(new BufferedOutputStream(new FileOutputStream(new File(c2.getOutput()))), true)) == 0)
    {
            ThreadLocalToolkit.logError("Build unsuccessful.");
    }
    else
    {
      System.out.println(c2.getOutput() + " (" + size + " bytes)");
        if (c2.generateRBList() && c2.getRBListFileName() != null)
        {
          Report r = lib.getReport();
          String[] rbNames = r.getResourceBundleNames();
          HashSet<String> set = new HashSet<String>();
          for (int i = 0, l = rbNames == null ? 0 : rbNames.length; i < l; i++)
          {
            set.add(rbNames[i]);
          }
          String list = FlexMovie.dumpRBList(set);
          FileUtil.writeFile(c2.getRBListFileName(), list);
        }

    }

    lib.save(new BufferedOutputStream(new FileOutputStream(new File(c2.getOutput() + ".incr"))));   
    lib.clean();
  }
View Full Code Here

Examples of fr.tm.elibel.smartqvt.qvt.qvtoperational.Library

        && pack == null;) {
      Object obj = iter.next();
      if (obj instanceof Package)
        pack = (Package) obj;
    }
    Library lib = null;
    for (Iterator iter = qvtStdLib.getRoots().iterator(); iter.hasNext()
        && lib == null;) {
      Object obj = iter.next();
      if (obj instanceof Library)
        lib = (Library) obj;
    }
    List<Type> types = new ArrayList<Type>();
    types.addAll(pack.getOwnedType());
    types.addAll(lib.getOwnedType());
    return types;
  }
View Full Code Here

Examples of gnu.jel.Library

     *
     * @param exprStr contains the expression string
     */
    public JavaExpr(String exprStr) throws Throwable {
        // The namespace is defined by constructing the library class
        Library lib = new Library(_stLib, _dynLib, null, this, null);

        // setup the global context and data
        _context[0] = this; // this pointer for YYY getXXXProperty() methods

        // compile the expression
View Full Code Here

Examples of library.model.Library

        "mp3", "avi", "mp4", "png", "jpeg");
    filter2 = new FileNameExtensionFilter("Library Files", "ser");
    chooser.addChoosableFileFilter(filter);
    chooser.addChoosableFileFilter(filter2);

    lib = new Library();

    exit = false;

    vimCache = new ArrayList<VIM>();
    vimFile = null;
View Full Code Here

Examples of ma.glasnost.orika.test.common.types.TestCaseClasses.Library

 
  @Test
  @Concurrent(20)
  public void testGenerateMappers() {
    BookImpl book = new BookImpl("The Book Title", new AuthorImpl("The Author Name"));
    Library lib = new LibraryImpl("The Library", Arrays.<Book>asList(book));
   
    LibraryDTO mappedLib = mapper.map(lib, LibraryDTO.class);
   
    // Just to be sure things mapped as expected
    Assert.assertEquals(lib.getTitle(),mappedLib.getTitle());
    Assert.assertEquals(book.getTitle(),mappedLib.getBooks().get(0).getTitle());
    Assert.assertEquals(book.getAuthor().getName(),mappedLib.getBooks().get(0).getAuthor().getName());
 
  }
View Full Code Here

Examples of ma.glasnost.orika.test.unenhance.SuperTypeTestCaseClasses.Library

        factory.build();
        MapperFacade mapper = factory.getMapperFacade();
       
        Book book = createBook(BookParent.class);
        book.setAuthor(createAuthor(AuthorParent.class));
        Library lib = createLibrary(LibraryParent.class);
        lib.getBooks().add(book);
       
        LibraryMyDTO mappedLib = mapper.map(lib, LibraryMyDTO.class);
       
        Assert.assertNotNull(mappedLib);
        Assert.assertTrue(mappedLib.getMyBooks().isEmpty());
View Full Code Here

Examples of mage.players.Library

    @Override
    public boolean apply(Game game, Ability source) {
        Player controller = game.getPlayer(source.getControllerId());
        if (controller != null && controller.getLibrary().size() > 0) {
            Library library = controller.getLibrary();
            Card card = library.removeFromTop(game);
            if (card != null) {
                controller.moveCardToExileWithInfo(card, source.getSourceId(), "Chandra Pyromaster <this card may be played the turn it was exiled>", source.getSourceId(), game, Zone.LIBRARY);
                ContinuousEffect effect = new ChandraPyromasterCastFromExileEffect();
                effect.setTargetPointer(new FixedTarget(card.getId()));
                game.addEffect(effect, source);
View Full Code Here

Examples of model.Library

        playTrack(tracks.getTrackAt(playCursor), core.getVolume(), true);
        isPlaying = true; // liste ist nicht durch, nächstes lied
        hasFinished = false;
      }
    } else if (playMode == Jukebox.SHUFFLE_MODE) {
      Library l = core.getQueueLib();//ist was in der warteschlange?
      if (l.getTrackCount()>0){//wenn ja,
        playTrack(l.pullTrack(r.nextInt(l.getTrackCount()-1)), core.getVolume(), true);//abspielen
        isPlaying=true;
        hasFinished=false;
        core.updateQueue();
        return;
      }//sonst
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.