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

Source Code of org.springframework.ide.eclipse.batch.ui.editor.hyperlink.batch.BatchHyperlinkDetector

/*******************************************************************************
* Copyright (c) 2009 Spring IDE Developers
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*     Spring IDE Developers - initial API and implementation
*******************************************************************************/
package org.springframework.ide.eclipse.batch.ui.editor.hyperlink.batch;

import org.eclipse.jface.text.hyperlink.IHyperlinkDetector;
import org.springframework.ide.eclipse.beans.ui.editor.hyperlink.BeanHyperlinkCalculator;
import org.springframework.ide.eclipse.beans.ui.editor.hyperlink.ClassHyperlinkCalculator;
import org.springframework.ide.eclipse.beans.ui.editor.hyperlink.IHyperlinkCalculator;
import org.springframework.ide.eclipse.beans.ui.editor.hyperlink.NamespaceHyperlinkDetectorSupport;
import org.springframework.ide.eclipse.beans.ui.editor.namespaces.INamespaceHyperlinkDetector;

/**
* {@link INamespaceHyperlinkDetector} implementation responsible for the <code>batch:*</code>
* namespace.
* @author Christian Dupuis
* @author Leo Dos Santos
* @since 2.2.2
*/
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);
  }
 
}
TOP

Related Classes of org.springframework.ide.eclipse.batch.ui.editor.hyperlink.batch.BatchHyperlinkDetector

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.