/*******************************************************************************
* Copyright (c) 2012 - 2013 GoPivotal, 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:
* GoPivotal, Inc. - initial API and implementation
*******************************************************************************/
package org.springframework.ide.eclipse.webflow.ui.editor.contentassist.webflow;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement;
import org.springframework.ide.eclipse.beans.ui.editor.contentassist.IContentAssistCalculator;
import org.springframework.ide.eclipse.config.core.contentassist.XmlBackedContentProposalProvider;
/**
* An {@link XmlBackedContentProposalProvider} that uses
* {@link StateReferenceContentAssistCalculator} as its content assist
* calculator.
* @author Leo Dos Santos
* @since 2.3.4
*/
@SuppressWarnings("restriction")
public class StateReferenceContentProposalProvider extends XmlBackedContentProposalProvider {
/**
* Constructs a content proposal provider for an XML attribute.
*
* @param input the XML element to serve as the model for this proposal
* provider
* @param attrName the name of the attribute to compute proposals for
*/
public StateReferenceContentProposalProvider(IDOMElement input, String attrName) {
super(input, attrName);
}
@Override
protected IContentAssistCalculator createContentAssistCalculator() {
return new StateReferenceContentAssistCalculator();
}
}