Package org.springframework.ide.eclipse.config.ui.hyperlinks

Source Code of org.springframework.ide.eclipse.config.ui.hyperlinks.InitDestroyMethodHyperlinkProvider

/*******************************************************************************
*  Copyright (c) 2012 VMware, Inc.
*  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:
*      VMware, Inc. - initial API and implementation
*******************************************************************************/
package org.springframework.ide.eclipse.config.ui.hyperlinks;

import org.eclipse.jface.text.ITextViewer;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement;
import org.springframework.ide.eclipse.beans.ui.editor.hyperlink.IHyperlinkCalculator;
import org.springframework.ide.eclipse.beans.ui.editor.hyperlink.bean.InitDestroyMethodHyperlinkCalculator;

/**
* An {@link XmlBackedHyperlinkProvider} that uses
* {@link InitDestroyMethodHyperlinkCalculator} as its hyperlink calculator.
* @author Leo Dos Santos
* @author Christian Dupuis
* @since 2.0.0
*/
@SuppressWarnings("restriction")
public class InitDestroyMethodHyperlinkProvider extends XmlBackedHyperlinkProvider {

  /**
   * Constructs a hyperlink provider for an XML attribute.
   *
   * @param textViewer the text viewer containing the XML source
   * @param input the XML element to serve as the model for this hyperlink
   * provider
   * @param attrName the name of the attribute to compute a hyperlink action
   * for
   */
  public InitDestroyMethodHyperlinkProvider(ITextViewer textViewer, IDOMElement input, String attrName) {
    super(textViewer, input, attrName);
  }

  @Override
  protected IHyperlinkCalculator createHyperlinkCalculator() {
    return new InitDestroyMethodHyperlinkCalculator();
  }

}
TOP

Related Classes of org.springframework.ide.eclipse.config.ui.hyperlinks.InitDestroyMethodHyperlinkProvider

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.