Package org.fusesource.ide.camel.editor.features.custom

Examples of org.fusesource.ide.camel.editor.features.custom.CreateNodeConnectionFeature


      }
      if (processedBeans.contains(name)) continue;
      processedBeans.add(name);
     
      String description = "bean '" + name + "' of type " + aClass;
      addMenuItem(menu, name, description, Bean.class, context, fp, new CreateNodeConnectionFeature(fp, Bean.class) {

        @Override
        protected AbstractNode createNode() throws Exception {
          Bean bean = new Bean();
          bean.setName(name);
View Full Code Here


      if (processedURIs.contains(url)) continue;
      processedURIs.add(url);
      String description = endpoint.getDescription();
      String title = endpoint.getDisplayText();

      addMenuItem(menu, title, description, Endpoint.class, context, fp, new CreateNodeConnectionFeature(fp, Endpoint.class) {

        @Override
        protected AbstractNode createNode() throws Exception {
          return new Endpoint(endpoint);
        }
View Full Code Here

   * @param context    the custom context
   * @param fp      the feature provider
   */
  protected void addMenuItem(ContextMenuEntry parent, String label, String description, Class<? extends AbstractNode> clazz, ICustomContext context, IFeatureProvider fp) {
    // check if we can actually connect to the current selection
    CreateNodeConnectionFeature feature = new CreateNodeConnectionFeature(fp, clazz);
    addMenuItem(parent, label, description, clazz, context, fp, feature);
  }
View Full Code Here

    this.selectedNode = selectedNode;
  }

  @Override
  protected void doExecute() {
    CreateNodeConnectionFeature feature = new CreateNodeConnectionFeature(editor.getFeatureProvider(), aClass);
    PictogramElement selectedElement = editor.getFeatureProvider().getPictogramElementForBusinessObject(selectedNode);
    PictogramElement[] selectedElements;
    if (selectedElement != null) {
      selectedElements = new PictogramElement[] {selectedElement};
    } 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

TOP

Related Classes of org.fusesource.ide.camel.editor.features.custom.CreateNodeConnectionFeature

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.