Examples of ClassContentAssistCalculator


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

*/
public class JeeContentAssistProcessor extends NamespaceContentAssistProcessorSupport {

  @Override
  public void init() {
    IContentAssistCalculator calculator = new ClassContentAssistCalculator(true);
    registerContentAssistCalculator("jndi-lookup", "expected-type", calculator);
    registerContentAssistCalculator("jndi-lookup", "proxy-interface", calculator);
    registerContentAssistCalculator("remote-slsb", "home-interface", calculator);
    registerContentAssistCalculator("remote-slsb", "business-interface", calculator);
    registerContentAssistCalculator("local-slsb", "home-interface", calculator);
View Full Code Here

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

        new ClassHierachyContentAssistCalculator("org.springframework.instrument.classloading.LoadTimeWeaver"));

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

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

  abstract protected IContentAssistContext createContext(IDOMNode node, String attributeName, IFile file,
      String prefix);

  public Set<ContentAssistProposalWrapper> getClassAttributeProposals(String toBeMatched, boolean exactMatch) {
    return computeNameMatchedProposals(toBeMatched, exactMatch, toBeMatched, new ClassContentAssistCalculator());
  }
View Full Code Here

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

public class LangContentAssistProcessor extends
    NamespaceContentAssistProcessorSupport {

  @Override
  public void init() {
    IContentAssistCalculator calculator = new ClassContentAssistCalculator(
        true);
    registerContentAssistCalculator("jruby", "script-interfaces",
        calculator);
    registerContentAssistCalculator("bsh", "script-interfaces", calculator);
    registerContentAssistCalculator("groovy", "customizer-ref",
View Full Code Here

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

    }
  }

  protected IContentAssistCalculator getClassContentAssistCalculator(ToolAnnotationData annotationData) {
    if ("class-only".equals(annotationData.getAssignableToRestriction())) {
      return new ClassContentAssistCalculator(false);
    }
    else if ("interface-only".equals(annotationData.getAssignableToRestriction())) {
      return new ClassContentAssistCalculator(true);
    }
    return new ClassContentAssistCalculator();
  }
View Full Code Here

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

    }
  }

  @Override
  public void init() {
    ClassContentAssistCalculator clazzOnly = new ClassContentAssistCalculator(false);
    ClassContentAssistCalculator clazzAndInterface = new ClassContentAssistCalculator();
   
    registerContentAssistCalculator("bean", "class", clazzOnly);
    registerContentAssistCalculator("constructor-arg", "type", clazzAndInterface);
    registerContentAssistCalculator("arg-type", "match", clazzAndInterface);
    registerContentAssistCalculator("value", "type", clazzAndInterface);
View Full Code Here

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

        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",
        new FieldContentAssistCalculator());
View Full Code Here

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

        true);   
    registerContentAssistCalculator("depends-on", beanRef);
    registerContentAssistCalculator("ref", beanRef);
    registerContentAssistCalculator("property-placeholder", "defaults-ref", beanRef);

    ClassContentAssistCalculator classRef = new ClassContentAssistCalculator();
    registerContentAssistCalculator("interface", classRef);

    MethodContentAssistCalculator methodRef = new RegistrationMethodContentAssistCalculator();
    registerContentAssistCalculator("registration-method", methodRef);
    registerContentAssistCalculator("unregistration-method", methodRef);
View Full Code Here

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

    registerContentAssistCalculator("step", "parent", beanRef);
    registerContentAssistCalculator("chunk", "processor", beanRef);
    registerContentAssistCalculator("chunk", "reader", beanRef);
    registerContentAssistCalculator("chunk", "writer", beanRef);
   
    IContentAssistCalculator classRef = new ClassContentAssistCalculator();
    registerContentAssistCalculator("listener", "class", classRef);
    registerContentAssistCalculator("job-listener", "class", classRef);
    registerContentAssistCalculator("step-listener", "class", classRef);
  }
View Full Code Here

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

  }

  @Override
  protected IContentAssistCalculator createContentAssistCalculator() {
    if (useBoth) {
      return new ClassContentAssistCalculator();
    }
    else {
      return new ClassContentAssistCalculator(isIntefaceRequired);
    }
  }
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.