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

Examples of org.springframework.ide.eclipse.beans.ui.editor.hyperlink.IHyperlinkCalculator


    this.input = input;
    this.name = attrName;
  }

  protected IHyperlink createHyperlink(String value, IRegion region) {
    IHyperlinkCalculator calc = createHyperlinkCalculator();
    IHyperlink hyperlink = calc.createHyperlink(name, value, input, input.getParentNode(), input
        .getStructuredDocument(), textViewer, region, region);

    IFile file = BeansEditorUtils.getFile(input.getStructuredDocument());
    if (hyperlink instanceof NodeElementHyperlink) {
      Node bean = BeansEditorUtils.getFirstReferenceableNodeById(input.getOwnerDocument(), value, file);
View Full Code Here


*/
public class BatchHyperlinkDetector extends NamespaceHyperlinkDetectorSupport implements
    IHyperlinkDetector {
 
  public void init() {
    IHyperlinkCalculator stepLink = new StepReferenceHyperlinkCalculator();
    registerHyperlinkCalculator("next", "to", stepLink);
    registerHyperlinkCalculator("stop", "restart", stepLink);
    registerHyperlinkCalculator("split", "next", stepLink);
    registerHyperlinkCalculator("step", "next", stepLink);
   
    IHyperlinkCalculator beanLink = new BeanHyperlinkCalculator();
    registerHyperlinkCalculator("job", "parent", beanLink);
    registerHyperlinkCalculator("step", "parent", beanLink);
    registerHyperlinkCalculator("chunk", "processor", beanLink);
    registerHyperlinkCalculator("chunk", "reader", beanLink);
    registerHyperlinkCalculator("chunk", "writer", beanLink);
   
    IHyperlinkCalculator classLink = new ClassHyperlinkCalculator();
    registerHyperlinkCalculator("listener", "class", classLink);
    registerHyperlinkCalculator("job-listener", "class", classLink);
    registerHyperlinkCalculator("step-listener", "class", classLink);
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.beans.ui.editor.hyperlink.IHyperlinkCalculator

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.