org.eclipse.jface.text.ITextHoverExtension Java Examples

The following examples show how to use org.eclipse.jface.text.ITextHoverExtension. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConfigurableCompletionProposal.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public IInformationControlCreator getInformationControlCreator() {
	if (hover!=null && hover instanceof ITextHoverExtension) {
		return ((ITextHoverExtension) hover).getHoverControlCreator();
	}
	return null;
}
 
Example #2
Source File: ModulaEditorTextHover.java    From xds-ide with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public IInformationControlCreator getHoverControlCreator() {
	if (lastReturnedHover instanceof ITextHoverExtension) {
		return ((ITextHoverExtension) lastReturnedHover).getHoverControlCreator();
	} else {
		return new IInformationControlCreator() {
			public IInformationControl createInformationControl(Shell parent) {
				return new HoverInformationControl(parent, EditorsUI.getTooltipAffordanceString());
			}
		};
	}
}
 
Example #3
Source File: CommonSourceViewerConfiguration.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
public IInformationControlCreator getHoverControlCreator()
{
	if (activeTextHover instanceof ITextHoverExtension)
	{
		return ((ITextHoverExtension) activeTextHover).getHoverControlCreator();
	}
	return new IInformationControlCreator()
	{
		public IInformationControl createInformationControl(Shell parent)
		{
			return createTextHoverInformationControl(parent, EditorsUI.getTooltipAffordanceString());
		}
	};
}
 
Example #4
Source File: BestMatchHover.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public IInformationControlCreator getHoverControlCreator() {
	if (fBestHover instanceof ITextHoverExtension)
		return ((ITextHoverExtension)fBestHover).getHoverControlCreator();

	return null;
}
 
Example #5
Source File: JavaEditorTextHoverProxy.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public IInformationControlCreator getHoverControlCreator() {
	if (ensureHoverCreated() && (fHover instanceof ITextHoverExtension))
		return ((ITextHoverExtension)fHover).getHoverControlCreator();

	return null;
}
 
Example #6
Source File: PyEditorTextHoverProxy.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public IInformationControlCreator getHoverControlCreator() {
    if (ensureHoverCreated() && (fHover instanceof ITextHoverExtension)) {
        return ((ITextHoverExtension) fHover).getHoverControlCreator();
    }

    return null;
}
 
Example #7
Source File: DelegatingDebugTextHover.java    From goclipse with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public IInformationControlCreator getHoverControlCreator() {
       if (fDelegate instanceof ITextHoverExtension) {
           return ((ITextHoverExtension) fDelegate).getHoverControlCreator();
       }
       return null;
   }
 
Example #8
Source File: AbstractCompositeHover.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public IInformationControlCreator getHoverControlCreator() {
	if (currentHover instanceof ITextHoverExtension)
		return ((ITextHoverExtension) currentHover).getHoverControlCreator();
	return null;
}