blob: 77826f3a56e709066380a3984a3242d45828ecd4 [file] [log] [blame]
/*******************************************************************************
*Copyright (c) 2008, 2009 Standards for Technology in Automotive Retail and others.
*All rights reserved. This program and the accompanying materials
*are made available under the terms of the Eclipse Public License 2.0
*which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
*
*SPDX-License-Identifier: EPL-2.0
*
*Contributors:
* David Carver - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.xsl.ui.provisional.contentassist;
import java.util.ArrayList;
import org.eclipse.jface.text.ITextViewer;
import org.eclipse.jface.text.contentassist.ICompletionProposal;
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion;
import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion;
import org.w3c.dom.Node;
/**
* An empty content assist request.
* @author dcarver
* @since 1.1
*
*/
public class NullContentAssistRequest extends AbstractXSLContentAssistRequest {
private ArrayList<ICompletionProposal> emptyProposals = new ArrayList<ICompletionProposal>();
/**
* A NULL ContentAssistRequest has no proposals.
* @param node
* @param documentRegion
* @param completionRegion
* @param begin
* @param length
* @param filter
* @param textViewer
*/
public NullContentAssistRequest(Node node,
IStructuredDocumentRegion documentRegion,
ITextRegion completionRegion, int begin, int length, String filter,
ITextViewer textViewer) {
super(node, documentRegion, completionRegion, begin, length,
filter, textViewer);
// TODO Auto-generated constructor stub
}
@Override
public ArrayList<ICompletionProposal> getCompletionProposals() {
return emptyProposals;
}
}