Examples of addEntry()


Examples of flex2.compiler.mxml.rep.Array.addEntry()

        argNames.setParentIndex(ARGUMENT_NAMES);

        for (Iterator propNames = arguments.getProperties().keySet().iterator(); propNames.hasNext();)
        {
            String s = (String)propNames.next();
            argNames.addEntry(s, op.getXmlLineNumber());
        }
    }
}
View Full Code Here

Examples of fr.neatmonster.nocheatplus.checks.moving.LocationTrace.addEntry()

    double mergeDist = 0.5;
    LocationTrace trace = new LocationTrace(size, mergeDist);
    double x = 0;
    double y = 0;
    double z = 0;
    trace.addEntry(0 , x, y, z);
    for (int i = 0; i < size * 2; i ++) {
      x += 0.5;
      trace.addEntry(i + 1, x, y, z);
      if (Math.abs(trace.size() - (1 + i / 2)) > 1 ) {
        fail("Wrong size, expect roughly half of " + (i + 1) + ", got instead: " + trace.size());
View Full Code Here

Examples of gabriel.acl.Acl.addEntry()

        }
        if (negative) {
          entry.setNegativePermissions();
          negative = false;
        }
        acl.addEntry(owner, entry);
        permissions = new ArrayList();
        principal = null;
      } else if (state == PRINCIPAL) {
        if (t.startsWith("-")) {
          negative = true;
View Full Code Here

Examples of gov.nasa.arc.mct.services.config.impl.properties.ArrayProperty.addEntry()

  }
 
  @Test
  public void testArrayMarshalling() throws JAXBException {
    ArrayProperty array = new ArrayProperty("people");
    array.addEntry("john");
    array.addEntry("martha");
   
    String s = marshalObject(array);
    assertTrue(s.contains("<array name=\"people\""));
    assertTrue(s.contains("<entry value=\"john\""));
View Full Code Here

Examples of javassist.bytecode.LocalVariableAttribute.addEntry()

/*  555 */       ca.getAttributes().add(va);
/*      */     }
/*      */
/*  558 */     int maxLocals = ca.getMaxLocals();
/*  559 */     String desc = Descriptor.of(type);
/*  560 */     va.addEntry(0, ca.getCodeLength(), cp.addUtf8Info(name), cp.addUtf8Info(desc), maxLocals);
/*      */
/*  562 */     ca.setMaxLocals(maxLocals + Descriptor.dataSize(desc));
/*      */   }
/*      */
/*      */   public void insertParameter(CtClass type)
View Full Code Here

Examples of lineage2.gameserver.data.xml.holder.MultiSellHolder.MultiSellListContainer.addEntry()

      {
        final ItemTemplate crystal = ItemHolder.getInstance().getTemplate(itm.getTemplate().getCrystalType().cry);
        MultiSellEntry possibleEntry = new MultiSellEntry(++entry, crystal.getItemId(), itm.getTemplate().getCrystalCount(), 0);
        possibleEntry.addIngredient(new MultiSellIngredient(itm.getItemId(), 1, itm.getEnchantLevel()));
        possibleEntry.addIngredient(new MultiSellIngredient(ItemTemplate.ITEM_ID_ADENA, Math.round(itm.getTemplate().getCrystalCount() * crystal.getReferencePrice() * 0.05), 0));
        list.addEntry(possibleEntry);
      }
    }
    MultiSellHolder.getInstance().SeparateAndSend(list, player, castle == null ? 0. : castle.getTaxRate());
  }
}
View Full Code Here

Examples of net.datacrow.core.data.DataFilter.addEntry()

                    references.add(DataManager.getItem(field.getReferenceIdx(), s,
                            new int[] {DcObject._ID, DcModules.getReferencedModule(field).getSystemDisplayFieldIdx()}));
                    dfe.setValue(references);
                }
               
                df.addEntry(dfe);
            }
        }
        return df;
    }
   
View Full Code Here

Examples of net.datacrow.util.zip.ZipFile.addEntry()

          // adds the module jar file to the distribution
          if (module.isCustomModule() && module.getXmlModule() != null) {
              XmlModule xmlModule = module.getXmlModule();
            String jarName = xmlModule.getJarFilename();
            byte[] content = Utilities.readFile(new File(DataCrow.moduleDir, jarName));
            zf.addEntry(jarName, content);
          }

          // settings export
          File file = module.getSettings().getSettings().getSettingsFile();
          module.getSettings().save();
View Full Code Here

Examples of net.sf.jabref.groups.ExplicitGroup.addEntry()

                      // create a dummy group
                      ExplicitGroup group = new ExplicitGroup("Imported",
                              AbstractGroup.INDEPENDENT); // JZTODO lyrics
                      newGroups.setGroup(group);
                      for (int i = 0; i < appendedEntries.size(); ++i)
                          group.addEntry(appendedEntries.get(i));
                  }

                  // groupsSelector is always created, even when no groups
                  // have been defined. therefore, no check for null is
                  // required here
View Full Code Here

Examples of net.sf.jabref.gui.FileListTableModel.addEntry()

                    public void downloadComplete(FileListEntry file) {
                        System.out.println("finished");
                        FileListTableModel tm = new FileListTableModel();
                        String oldValue = entry.getField(GUIGlobals.FILE_FIELD);
                        tm.setContent(oldValue);
                        tm.addEntry(tm.getRowCount(), file);
                        String newValue = tm.getStringRepresentation();
                        UndoableFieldChange edit = new UndoableFieldChange(entry,
                                GUIGlobals.FILE_FIELD, oldValue, newValue);
                        entry.setField(GUIGlobals.FILE_FIELD, newValue);
                        basePanel.undoManager.addEdit(edit);
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.