Examples of Location


Examples of gnu.classpath.jdwp.util.Location

    os.writeInt(frames.size());
    for (int i = 0; i < frames.size(); i++)
      {
        VMFrame frame = (VMFrame) frames.get(i);
        os.writeLong(frame.getId());
        Location loc = frame.getLocation();
        loc.write(os);
      }
  }
View Full Code Here

Examples of info.bliki.wiki.client.util.Location

      target.setServiceEntryPoint("/wiki");
    }
  }

  public void onModuleLoad() {
    Location loc = WindowUtils.getLocation();
    String title = loc.getParameter("title");
    if (title == null || title.length() == 0) {
      title = getMainArticle();
    }
    // setup wiki engine for preview:
    fWikiFilter = new WikipediaFilter();
View Full Code Here

Examples of jade.core.Location

    }
   
    private void handleRequestMove(VerticalCommand cmd) throws IMTPException, NotFoundException {
      Object[] params = cmd.getParams();
      AID agentID = (AID)params[0];
      Location where = (Location)params[1];
     
      moveAgent(agentID, where);
    }
View Full Code Here

Examples of javax.faces.view.Location

            return new TagAttributesImpl(ta);
        }

        protected Location createLocation()
        {
            return new Location(this.alias, this.locator.getLineNumber(), this.locator.getColumnNumber());
        }
View Full Code Here

Examples of javax.microedition.location.Location

            _locationInfo.setText("Searching for location...");
            final BlackBerryLocationProvider bbProvider =
                    (BlackBerryLocationProvider) LocationProvider
                            .getInstance(criteria);

            final Location loc = bbProvider.getLocation(-1);

            synchronized (_app.getAppEventLock()) {
                _locationInfo.setText("Location has been found");
            }

            if (loc.isValid()) {
                final QualifiedCoordinates coordinates =
                        loc.getQualifiedCoordinates();
                final float altitude = coordinates.getAltitude();
                final double latitude = coordinates.getLatitude();
                final double longitude = coordinates.getLongitude();

                // Set the text for the location information fields
View Full Code Here

Examples of javax.tools.JavaFileManager.Location

        boolean hasFiles = false;
        docenv.notice("main.Loading_source_files_for_package", name);

        if (files == null) {
            Location location = docenv.fileManager.hasLocation(StandardLocation.SOURCE_PATH)
                    ? StandardLocation.SOURCE_PATH : StandardLocation.CLASS_PATH;
            ListBuffer<JavaFileObject> lb = new ListBuffer<JavaFileObject>();
            for (JavaFileObject fo: docenv.fileManager.list(
                    location, name, EnumSet.of(JavaFileObject.Kind.SOURCE), false)) {
                String binaryName = docenv.fileManager.inferBinaryName(location, fo);
View Full Code Here

Examples of javax.xml.stream.Location

     * Build current parse input position description.
     *
     * @return text description of current parse position
     */
    public String buildPositionString() {
        Location location = m_parser.getLocation();
        String base = "(line " + location.getLineNumber() + ", col " +
            location.getColumnNumber();
        if (m_docName != null) {
            base += ", in " + m_docName;
        }
        return base + ')';
    }
View Full Code Here

Examples of jodd.json.mock.Location

public class AnnotationTest {

  @Test
  public void testAnnName() {
    Location location = new Location();

    location.setLatitude(65);
    location.setLongitude(12);

    String json = new JsonSerializer().serialize(location);

    assertEquals("{\"lat\":65,\"lng\":12}", json);

    Location jsonLocation = new JsonParser().parse(json, Location.class);

    assertEquals(location.getLatitude(), jsonLocation.getLatitude());
    assertEquals(location.getLongitude(), jsonLocation.getLongitude());
  }
View Full Code Here

Examples of journal.io.api.Location

    @BenchmarkOptions(benchmarkRounds = 3, warmupRounds = 1)
    public void testRandomRead() throws Exception {
        Random generator = new Random();
        for (int i = 0; i < 1000; i++) {
            int n = generator.nextInt(inserts);
            Location read = locations.get(n);
            String expected = "" + n;
            assertEquals(expected, new String(journal.read(read, Journal.ReadType.ASYNC), "UTF-8").substring(0, expected.length()));
        }
    }
View Full Code Here

Examples of juzu.impl.common.Location

        while (true) {
          int to = text.indexOf('\n', from);
          if (to != -1) {
            String chunk = text.substring(from, to);
            ctx.appendText(chunk);
            ctx.appendLineBreak(new Location(colNumber + (to - from), lineNumber));
            from = to + 1;
            lineNumber++;
            colNumber = 1;
          }
          else {
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.