Mercurial > projects > dwt-addons
view dwtx/jface/text/information/IInformationProviderExtension.d @ 133:7d818bd32d63
Fix ctors to this with gvim regexp
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:29:22 +0200 |
parents | c4fb132a086c |
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); }