158
|
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 dwtx.jface.contentassist.ISubjectControlContextInformationValidator;
|
|
14
|
|
15 import dwt.dwthelper.utils;
|
|
16
|
|
17 import dwtx.jface.text.contentassist.IContextInformation;
|
|
18 import dwtx.jface.text.contentassist.IContextInformationValidator;
|
|
19 import dwtx.jface.contentassist.IContentAssistSubjectControl;
|
|
20
|
|
21
|
|
22 /**
|
|
23 * Extends {@link dwtx.jface.text.contentassist.IContextInformationValidator} to
|
|
24 * allow to install a content assistant on the given
|
|
25 * {@linkplain dwtx.jface.contentassist.IContentAssistSubjectControl content assist subject control}.
|
|
26 *
|
|
27 * @since 3.0
|
|
28 * @deprecated As of 3.2, replaced by Platform UI's field assist support
|
|
29 */
|
|
30 public interface ISubjectControlContextInformationValidator : IContextInformationValidator {
|
|
31
|
|
32 /**
|
|
33 * Installs this validator for the given context information.
|
|
34 *
|
|
35 * @param info the context information which this validator should check
|
|
36 * @param contentAssistSubjectControl the content assist subject control
|
|
37 * @param offset the document offset for which the information
|
|
38 * has been computed
|
|
39 */
|
|
40 void install(IContextInformation info, IContentAssistSubjectControl contentAssistSubjectControl, int offset);
|
|
41 }
|