Examples of Coordinate


Examples of org.jboss.forge.addon.dependencies.Coordinate

   }

   @Override
   public Result execute(UIExecutionContext context)
   {
      Coordinate coordinate = project.getFacet(MetadataFacet.class).getOutputDependency().getCoordinate();
      try
      {
         // TODO Project builder should support clean and install in the native API.
         project.getFacet(PackagingFacet.class).createBuilder().addArguments("clean", "install").build();
      }
      catch (BuildException e)
      {
         return Results.fail("Unable to execute project build", e);
      }

      try
      {
         AddonId id = AddonId.from(coordinate.getGroupId() + ":" + coordinate.getArtifactId(), coordinate.getVersion());
         RemoveRequest removeRequest = addonManager.remove(id);
         removeRequest.perform();
         Addons.waitUntilStopped(registry.getAddon(id));
         InstallRequest installRequest = addonManager.install(id);
         installRequest.perform();
         return Results.success("Addon " + coordinate.toString() + " was installed succesfully.");
      }
      catch (Throwable t)
      {
         return Results.fail("Addon " + coordinate.toString() + " could not be installed.", t);
      }
   }
View Full Code Here

Examples of org.jboss.forge.dependencies.Coordinate

         List<Coordinate> versions = resolver.resolveVersions(DependencyQueryBuilder.create(coordinate));
         if (versions.isEmpty())
         {
            throw new IllegalArgumentException("No Artifact version found for " + coordinate);
         }
         Coordinate vCoord = versions.get(versions.size() - 1);
         addon = AddonId.from(vCoord.getGroupId() + ":" + vCoord.getArtifactId(), vCoord.getVersion());
      }
      return addon;
   }
View Full Code Here

Examples of org.jongo.model.Coordinate

    }

    @Test
    public void canInsertAnObjectWithoutId() throws Exception {

        Coordinate noId = new Coordinate(123, 1);

        collection.insert(noId);

        Coordinate result = collection.findOne().as(Coordinate.class);
        assertThat(result).isNotNull();
        assertThat(result.lat).isEqualTo(123);
    }
View Full Code Here

Examples of org.kie.workbench.common.widgets.decoratedgrid.client.widget.data.Coordinate

    public void onSelectedCellChange( SelectedCellChangeEvent event ) {
        if ( event.getCellSelectionDetail() == null ) {
            setEnableOtherwiseButton( false );
        } else {
            Coordinate c = event.getCellSelectionDetail().getCoordinate();
            BaseColumn column = model.getExpandedColumns().get( c.getCol() );
            setEnableOtherwiseButton( canAcceptOtherwiseValues( column ) && !this.isReadOnly );
        }
    }
View Full Code Here

Examples of org.milyn.smooks.camel.Coordinate

        });
        context.start();
        sendBody(fromEndpoint, new StringSource("<coords><coord x='1' y='2' /><coord x='3' y='4' /></coords>"));

        final List<Coordinate> bodies = getBodies(getMockEndpoint(toEndpoint).getExchanges());
        assertThat(bodies, hasItems(new Coordinate(1, 2), new Coordinate(3, 4)));
    }
View Full Code Here

Examples of org.openstreetmap.gui.jmapviewer.Coordinate

            } else if (inCoverage && "EastLongitude".equals(tagName)) {
                eastLon = Double.parseDouble(string);
            } else if (inCoverage && "WestLongitude".equals(tagName)) {
                westLon = Double.parseDouble(string);
            } else if ("BoundingBox".equals(tagName)) {
                curr.min = new Coordinate(southLat, westLon);
                curr.max = new Coordinate(northLat, eastLon);
            } else if ("CoverageArea".equals(tagName)) {
                inCoverage = false;
            }
            string = "";
        }
View Full Code Here

Examples of org.rascalmpl.library.vis.util.vector.Coordinate

    SWTGraphicsContext swtGC = new SWTGraphicsContext();
    swtGC.setGC(gc);
   
    gc.setBackground(getDisplay().getSystemColor(SWT.COLOR_WHITE));

    figure.draw(new Coordinate(1.0, 1.0), swtGC, new Rectangle(0, 0, figureWidth, figureHeight), new SWTElementsVisibilityManager().getVisibleSWTElementsVector());
 
    ImageLoader il = new ImageLoader();
    il.data = new ImageData[] {image.getImageData()};
    il.save(to, SWT.IMAGE_PNG);
  }
View Full Code Here

Examples of org.scotlandyard.engine.boardmap.Coordinate

    return players;
  }

  @Override
  public Set<Coordinate> getPosssibleMoves(final Player player) {
    final Coordinate coordinate = getPlayerPosition(player);
    final Set<Link> links = boardMap.getLinks(coordinate);
    final Set<Coordinate> positions = new HashSet<Coordinate>();
    for (final Link link : links) {
      positions.add(link.getOtherEnd(coordinate));
    }
View Full Code Here

Examples of org.timerescue.element.Coordinate

    //states holders
    target_state_holder = target.getState_holder();
    attacker_state_holder = attacker.getState_holder();
    //Range
    range = getRange();
    Coordinate target_position = target.getCoordinate(),
        attacker_position = attacker.getCoordinate();
    //Properties
    target_property_holder = target.getProperty_holder();
    attacker_property_holder = attacker.getProperty_holder();
    //TODO Is the target visible?
    int visibility = attacker.getVisibility();
    if(target_position.isClose(attacker_position, visibility)){
      //If the target is close enough for a close range attack
      if (target_position.isClose(attacker_position, range)){
        //Attack the target properties!     
        target_life = target.getLife();     
        if(target_life > 0) {//is it alive?         
          //TODO define a method to obtain the properties casted
          //TODO Define a practical formulas, this is just for testing
View Full Code Here

Examples of org.wicketstuff.openlayers3.api.coordinate.Coordinate

                                                // options for the layer
                                                ImmutableMap.of("LAYERS", "bluemarble", "VERSION", "1.1.1")))),

                        // view for this map
                        new View(new Coordinate(0, 0), 2)))));
    }
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.