comparison org.eclipse.jface.text/src/org/eclipse/jface/contentassist/ISubjectControlContentAssistProcessor.d @ 12:bc29606a740c

Added dwt-addons in original directory structure of eclipse.org
author Frank Benoit <benoit@tionex.de>
date Sat, 14 Mar 2009 18:23:29 +0100
parents
children
comparison
equal deleted inserted replaced
11:43904fec5dca 12:bc29606a740c
1 /*******************************************************************************
2 * Copyright (c) 2000, 2006 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module org.eclipse.jface.contentassist.ISubjectControlContentAssistProcessor;
14
15 import java.lang.all;
16 import java.util.Set;
17
18 import org.eclipse.jface.text.contentassist.ICompletionProposal;
19 import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
20 import org.eclipse.jface.text.contentassist.IContextInformation;
21 import org.eclipse.jface.contentassist.IContentAssistSubjectControl;
22
23
24 /**
25 * Extension interface for {@link org.eclipse.jface.text.contentassist.IContentAssistProcessor}
26 * which provides the context for the
27 * {@linkplain org.eclipse.jface.contentassist.ISubjectControlContentAssistant subject control content assistant}.
28 *
29 * @since 3.0
30 * @deprecated As of 3.2, replaced by Platform UI's field assist support
31 */
32 public interface ISubjectControlContentAssistProcessor : IContentAssistProcessor {
33
34 /**
35 * Returns a list of completion proposals based on the specified location
36 * within the document that corresponds to the current cursor position
37 * within the text viewer.
38 *
39 * @param contentAssistSubjectControl the content assist subject control whose
40 * document is used to compute the proposals
41 * @param documentOffset an offset within the document for which
42 * completions should be computed
43 * @return an array of completion proposals or <code>null</code> if no
44 * proposals are possible
45 */
46 ICompletionProposal[] computeCompletionProposals(IContentAssistSubjectControl contentAssistSubjectControl, int documentOffset);
47
48 /**
49 * Returns information about possible contexts based on the specified
50 * location within the document that corresponds to the current cursor
51 * position within the content assist subject control.
52 *
53 * @param contentAssistSubjectControl the content assist subject control whose
54 * document is used to compute the possible contexts
55 * @param documentOffset an offset within the document for which context
56 * information should be computed
57 * @return an array of context information objects or <code>null</code>
58 * if no context could be found
59 */
60 IContextInformation[] computeContextInformation(IContentAssistSubjectControl contentAssistSubjectControl, int documentOffset);
61 }