Examples of execute()


Examples of org.fusesource.hawtdispatch.DispatchQueue.execute()

                final DispatchQueue current = Dispatch.getCurrentQueue();
                uow.on_complete(Scala2Java.toScala(new UnitFn0() {
                    @Override
                    public void call() {
                        current.execute(new Task() {
                            @Override
                            public void run() {
                                cb.run();
                            }
                        });
View Full Code Here

Examples of org.fusesource.ide.camel.editor.features.create.CreateFlowFeature.execute()

        Anchor destAnchor = DiagramUtils.getAnchor(destState);
        if (srcAnchor != null && destAnchor != null) {
          connectContext.setSourceAnchor(srcAnchor);
          connectContext.setTargetAnchor(destAnchor);
          if (createFeature.canCreate(connectContext)) {
            createFeature.execute(connectContext);
          }
        }
      }

      List<AbstractNode> children = node.getOutputs();
View Full Code Here

Examples of org.fusesource.ide.camel.editor.features.custom.CreateNodeConnectionFeature.execute()

    } else {
      Activator.getLogger().debug("==== TODO - could not find PictogramElement for node " + selectedNode + " probably its that the RiderOutlinePage is out of sync with the Diagram model!");
      selectedElements = editor.getSelectedPictogramElements();
    }
    CustomContext context = new CustomContext(selectedElements);
    feature.execute(context);
  }


}
View Full Code Here

Examples of org.fusesource.ide.commons.camel.tools.ArchetypeHelper.execute()

    }
    Activator.getLogger().debug(
        "Creating archetype for outputDir: " + outputDir);

    try {
      helper.execute();
    } catch (IOException ex) {
      Activator.getLogger().error(ex);
    }

    Activator.getLogger().debug("Done!");
View Full Code Here

Examples of org.gatein.management.api.controller.ManagementController.execute()

        ManagementController controller = (ManagementController) PortalContainer.getComponent(ManagementController.class);
        PathAddress address = PathAddress.pathAddress("mop", type + "sites", name);

        ManagedRequest request = ManagedRequest.Factory.create(OperationNames.EXPORT_RESOURCE, address, ContentType.ZIP);
        ManagedResponse expResponse = controller.execute(request);
        if (expResponse.getOutcome().isSuccess()) {
            expResponse.writeResult(out, true);
        } else {
            throw new Exception(expResponse.getOutcome().getFailureDescription());
        }
View Full Code Here

Examples of org.gatein.management.api.operation.OperationHandler.execute()

    private void executeHandlers(ManagedResource resource, final OperationContext operationContext, PathAddress address,
            String operationName, StepResultHandler<PageNavigation> stepResultHandler, PathTemplateFilter filter, boolean root) {
        OperationHandler handler = resource.getOperationHandler(address, operationName);
        if (handler != null && !root && address.accepts(filter)) {
            handler.execute(operationContext, stepResultHandler);
        } else {
            OperationHandler readResource = resource.getOperationHandler(address, OperationNames.READ_RESOURCE);
            BasicResultHandler readResourceResult = new BasicResultHandler();
            readResource.execute(new OperationContextDelegate(operationContext) {
                @Override
View Full Code Here

Examples of org.geomajas.command.Command.execute()

        }
        if (null != command) {
          response = command.getEmptyCommandResponse();
          response.setId(id);
          try {
            command.execute(request, response);
          } catch (Throwable throwable) { //NOPMD
            log.error("Error executing command", throwable);
            response.getErrors().add(throwable);
          }
        } else {
View Full Code Here

Examples of org.geomajas.gwt.client.map.feature.FeatureTransaction.execute()

    if (event.getNativeButton() != Event.BUTTON_RIGHT) {
      FeatureTransaction featureTransaction = getFeatureTransaction();
      if (featureTransaction != null && parent.getEditMode() == EditMode.INSERT_MODE) {
        // The creation of a new point:
        FeatureOperation op = new AddCoordinateOp(getGeometryIndex(), getWorldPosition(event));
        featureTransaction.execute(op);
        mapWidget.render(featureTransaction, RenderGroup.VECTOR, RenderStatus.DELETE);
        mapWidget.render(featureTransaction, RenderGroup.VECTOR, RenderStatus.ALL);
        updateGeometricInfo();
      } else if (featureTransaction != null && parent.getEditMode() == EditMode.DRAG_MODE &&
          dragTargetId != null) {
View Full Code Here

Examples of org.geomajas.gwt.client.map.feature.operation.FeatureOperation.execute()

    if (featureTransaction != null && parent.getEditMode() == EditMode.DRAG_MODE && dragTargetId != null) {
      TransactionGeomIndex index = TransactionGeomIndexUtil.getIndex(dragTargetId);

      Feature feature = dragTransaction.getNewFeatures()[index.getFeatureIndex()];
      FeatureOperation op = new SetCoordinateOp(index, getWorldPosition(event));
      op.execute(feature);

      mapWidget.render(dragTransaction, RenderGroup.VECTOR, RenderStatus.DELETE);
      mapWidget.render(dragTransaction, RenderGroup.VECTOR, RenderStatus.ALL);
    } else if (featureTransaction != null && parent.getEditMode() == EditMode.INSERT_MODE) {
      updateTempLine(featureTransaction, event);
View Full Code Here

Examples of org.geomajas.gwt.client.map.feature.operation.SetCoordinateOp.execute()

    if (featureTransaction != null && parent.getEditMode() == EditMode.DRAG_MODE && dragTargetId != null) {
      TransactionGeomIndex index = TransactionGeomIndexUtil.getIndex(dragTargetId);

      Feature feature = dragTransaction.getNewFeatures()[index.getFeatureIndex()];
      FeatureOperation op = new SetCoordinateOp(index, getWorldPosition(event));
      op.execute(feature);

      mapWidget.render(dragTransaction, RenderGroup.VECTOR, RenderStatus.DELETE);
      mapWidget.render(dragTransaction, RenderGroup.VECTOR, RenderStatus.ALL);
    } else if (featureTransaction != null && parent.getEditMode() == EditMode.INSERT_MODE) {
      updateTempLine(featureTransaction, event);
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.