Package org.fusesource.ide.camel.model.generated

Examples of org.fusesource.ide.camel.model.generated.Route


    addToImageRegistry(IMG_OUTLINE_TREE, ROOT_FOLDER_FOR_IMG + "tree.gif"); //$NON-NLS-1$

    // let the helper class fill all figure images
    ProviderHelper.addFigureIcons(this);

    addIconsForClass(new Route(), "route16.png", "route.png");

    // lets add some custom images
    addIconCustomImages("endpointDrools.png", "endpointQueue.png", "endpointFile.png", "endpointFolder.png", "endpointTimer.png", "endpointRepository.png");
  }
View Full Code Here


  /**
   * Adds the list of route definitions after loading the routes from a file or runtime
   */
  public void addRoutes(List<RouteDefinition> routes) {
    for (RouteDefinition routeDefinition : routes) {
      RouteSupport route = new Route(routeDefinition, this);
      addChild(route);
    }
  }
View Full Code Here

  }

  protected RouteContainer createDummyModel() {
    RouteContainer c = new RouteContainer();

    RouteSupport route1 = new Route();

    Endpoint ep1 = new Endpoint();
    Bean bean1 = new Bean();
    Bean bean2 = new Bean();

    ep1.setId("fileIn1");
    ep1.setDescription("Polls files from input folder...");
    ep1.setUri("file:///home/lhein/test/input/");
    ep1.setLayout(new Rectangle(10, 10, 100, 40));

    bean1.setId("procBean1");
    bean1.setDescription("Examines the file...");
    bean1.setMethod("examineFile");
    bean1.setRef("proc1");
    bean1.setLayout(new Rectangle(150, 10, 100, 40));

    bean2.setId("procBean2");
    bean2.setDescription("Examines the file...");
    bean2.setMethod("examineFile");
    bean2.setRef("proc2");
    bean2.setLayout(new Rectangle(300, 10, 100, 40));

    ep1.addTargetNode(bean1);
    bean1.addTargetNode(bean2);

    route1.addChild(bean2);
    route1.addChild(ep1);
    route1.addChild(bean1);

    c.addChild(route1);

    Activator.getLogger().debug("Stub marshaller has loaded model: "
        + c.getDebugInfo());
View Full Code Here

TOP

Related Classes of org.fusesource.ide.camel.model.generated.Route

Copyright © 2018 www.massapicom. 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.