Package org.springframework.ide.eclipse.beans.ui.editor.contentassist

Examples of org.springframework.ide.eclipse.beans.ui.editor.contentassist.ClassHierachyContentAssistCalculator


    IContentAssistCalculator beanRef = new BeanReferenceContentAssistCalculator(true);
    registerContentAssistCalculator("component-scan", "name-generator",  beanRef);
    registerContentAssistCalculator("component-scan", "scope-resolver", beanRef);

    registerContentAssistCalculator("load-time-weaver", "weaver-class",
        new ClassHierachyContentAssistCalculator("org.springframework.instrument.classloading.LoadTimeWeaver"));

    registerContentAssistCalculator("component-scan", "base-package",
        new PackageContentAssistCalculator());
   
    ClassContentAssistCalculator clazz = new ClassContentAssistCalculator(false);
View Full Code Here


    return new ClassContentAssistCalculator();
  }

  protected IContentAssistCalculator getClassHierachyContentAssistCalculator(ToolAnnotationData annotationData) {
    if ("class-only".equals(annotationData.getAssignableToRestriction())) {
      return new ClassHierachyContentAssistCalculator(annotationData.getAssignableTo(),
          BeansJavaCompletionUtils.FLAG_CLASS);
    }
    else if ("interface-only".equals(annotationData.getAssignableToRestriction())) {
      return new ClassHierachyContentAssistCalculator(annotationData.getAssignableTo(),
          BeansJavaCompletionUtils.FLAG_INTERFACE);
    }
    return new ClassHierachyContentAssistCalculator(annotationData.getAssignableTo());
  }
View Full Code Here

    NamespaceContentAssistProcessorSupport {

  @Override
  public void init() {
    registerContentAssistCalculator("list-class",
        new ClassHierachyContentAssistCalculator(List.class.getName()));
    registerContentAssistCalculator("map-class",
        new ClassHierachyContentAssistCalculator(Map.class.getName()));
    registerContentAssistCalculator("set-class",
        new ClassHierachyContentAssistCalculator(Set.class.getName()));
    ClassContentAssistCalculator calculator = new ClassContentAssistCalculator(false);
    registerContentAssistCalculator("value-type", calculator);
    registerContentAssistCalculator("key-type", calculator);

    registerContentAssistCalculator("constant", "static-field",
View Full Code Here

    this.className = className;
  }

  @Override
  protected IContentAssistCalculator createContentAssistCalculator() {
    return new ClassHierachyContentAssistCalculator(className);
  }
View Full Code Here

  public void computeProposals(IContentAssistContext context,
      IContentAssistProposalRecorder recorder) {
    String implementInterface = BeansEditorUtils.getAttribute(context.getNode(),
        "implement-interface");
    if (StringUtils.hasText(implementInterface)) {
      new ClassHierachyContentAssistCalculator(implementInterface).computeProposals(context,
          recorder);
    }
    else {
      new ClassContentAssistCalculator(false).computeProposals(context, recorder);
    }
View Full Code Here

    registerContentAssistCalculator("start-state", "idref", stateRef);
    registerContentAssistCalculator("if", "then", stateRef);
    registerContentAssistCalculator("if", "else", stateRef);

    registerContentAssistCalculator("transition", "on-exception",
        new ClassHierachyContentAssistCalculator(Throwable.class.getName()));

    registerContentAssistCalculator("subflow-state", "flow",
        new SubflowReferenceContentAssistCalculator());
    registerContentAssistCalculator("flow", "parent",
        new SubflowReferenceContentAssistCalculator());

    registerContentAssistCalculator("action", "method", new BeanMethodContentAssistCalculator());

    registerContentAssistCalculator("bean-action", "method",
        new BeanActionMethodContentAssistCalculator());
   
    // web flow 2.x
    registerContentAssistCalculator("attribute", "type", clazz);
    registerContentAssistCalculator("var", "class", clazz);
    registerContentAssistCalculator("input", "type", clazz);
    registerContentAssistCalculator("output", "type", clazz);
    registerContentAssistCalculator("evaluate", "result-type", clazz);

    registerContentAssistCalculator("exception-handler", "bean", beanRef);
    registerContentAssistCalculator("subflow-state", "subflow-attribute-mapper", beanRef);

    registerContentAssistCalculator("transition", "to", stateRef);
    registerContentAssistCalculator("flow", "start-state", stateRef);
    registerContentAssistCalculator("if", "then", stateRef);
    registerContentAssistCalculator("if", "else", stateRef);
   
    registerContentAssistCalculator("transition", "on-exception",
        new ClassHierachyContentAssistCalculator(Throwable.class.getName()));

    registerContentAssistCalculator("subflow-state", "subflow",
        new SubflowReferenceContentAssistCalculator());
  }
View Full Code Here

    registerContentAssistCalculator("flow-executor", "flow-registry", beanRef);
    registerContentAssistCalculator("listener", "ref", beanRef);
    registerContentAssistCalculator("flow-registry", "parent", beanRef);
    registerContentAssistCalculator("flow-registry", "flow-builder-services", beanRef);
    registerContentAssistCalculator("flow-builder", "class",
        new ClassHierachyContentAssistCalculator("org.springframework.webflow.engine.builder.FlowBuilder"));
    registerContentAssistCalculator("flow-builder-services", "view-factory-creator", beanRef);
    registerContentAssistCalculator("flow-builder-services", "expression-parser", beanRef);
    registerContentAssistCalculator("flow-builder-services", "conversion-service", beanRef);
//    registerContentAssistCalculator("flow-builder", "conversion-service",
//        new ClassHierachyContentAssistCalculator(
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.beans.ui.editor.contentassist.ClassHierachyContentAssistCalculator

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.