view dwtx/jface/text/information/IInformationProviderExtension.d @ 131:c4fb132a086c

Add package imports
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 01:13:23 +0200
parents eb30df5ca28b
children
line wrap: on
line source

/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * 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:
 *     IBM Corporation - initial API and implementation
 * Port to the D programming language:
 *     Frank Benoit <benoit@tionex.de>
 *******************************************************************************/
module dwtx.jface.text.information.IInformationProviderExtension;

import dwtx.jface.text.information.InformationPresenter; // packageimport
import dwtx.jface.text.information.IInformationProvider; // packageimport
import dwtx.jface.text.information.IInformationPresenterExtension; // packageimport
import dwtx.jface.text.information.IInformationProviderExtension2; // packageimport
import dwtx.jface.text.information.IInformationPresenter; // packageimport


import dwt.dwthelper.utils;


import dwtx.jface.text.IRegion;
import dwtx.jface.text.ITextViewer;


/**
 * Extends {@link dwtx.jface.text.information.IInformationProvider} with
 * the ability to provide the element for a given subject.
 *
 * @see dwtx.jface.text.information.IInformationProvider
 * @since 2.1
 */
public interface IInformationProviderExtension {

    /**
     * Returns the element for the given subject or <code>null</code> if
     * no element is available.
     * <p>
     * Implementers should ignore the text returned by {@link IInformationProvider#getInformation(ITextViewer, IRegion)}.
     * </p>
     *
     * @param textViewer the viewer in whose document the subject is contained
     * @param subject the text region constituting the information subject
     * @return the element for the subject
     *
     * @see IInformationProvider#getInformation(ITextViewer, IRegion)
     * @see dwtx.jface.text.ITextViewer
     */
    Object getInformation2(ITextViewer textViewer, IRegion subject);
}