org.eclipse.jface.text.IInformationControlExtension4 Java Examples

The following examples show how to use org.eclipse.jface.text.IInformationControlExtension4. 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: AnnotationWithQuickFixesHover.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public boolean canReuse(IInformationControl control) {
	if (!super.canReuse(control))
		return false;

	if (control instanceof IInformationControlExtension4)
		((IInformationControlExtension4) control).setStatusText(EditorsUI.getTooltipAffordanceString());

	return true;
}
 
Example #2
Source File: DefaultEObjectHoverProvider.java    From xtext-eclipse with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public boolean canReuse(IInformationControl control) {
	if (!super.canReuse(control))
		return false;

	if (control instanceof IInformationControlExtension4) {
		String tooltipAffordanceString = EditorsUI.getTooltipAffordanceString();
		((IInformationControlExtension4) control).setStatusText(tooltipAffordanceString);
	}

	return true;
}
 
Example #3
Source File: HoverControlCreator.java    From typescript.java with MIT License 5 votes vote down vote up
@Override
public boolean canReuse(IInformationControl control) {
	if (!super.canReuse(control))
		return false;

	if (control instanceof IInformationControlExtension4) {
		String tooltipAffordanceString = "Press F2 for focus";
		((IInformationControlExtension4) control)
				.setStatusText(tooltipAffordanceString);
	}

	return true;
}
 
Example #4
Source File: AbstractAnnotationHover.java    From typescript.java with MIT License 5 votes vote down vote up
@Override
public boolean canReuse(IInformationControl control) {
	if (!super.canReuse(control))
		return false;

	if (control instanceof IInformationControlExtension4)
		((IInformationControlExtension4) control).setStatusText(EditorsUI.getTooltipAffordanceString());

	return true;
}
 
Example #5
Source File: AbstractDocumentationHover.java    From APICloud-Studio with GNU General Public License v3.0 5 votes vote down vote up
public boolean canReuse(IInformationControl control)
{
	if (!super.canReuse(control))
	{
		return false;
	}

	if (control instanceof IInformationControlExtension4)
	{
		((IInformationControlExtension4) control).setStatusText(EditorsUI.getTooltipAffordanceString());
	}

	return true;
}
 
Example #6
Source File: JavadocHover.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public boolean canReuse(IInformationControl control) {
	if (!super.canReuse(control))
		return false;

	if (control instanceof IInformationControlExtension4) {
		String tooltipAffordanceString= fAdditionalInfoAffordance ? JavaPlugin.getAdditionalInfoAffordanceString() : EditorsUI.getTooltipAffordanceString();
		((IInformationControlExtension4)control).setStatusText(tooltipAffordanceString);
	}

	return true;
}
 
Example #7
Source File: AbstractAnnotationHover.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public boolean canReuse(IInformationControl control) {
	if (!super.canReuse(control))
		return false;

	if (control instanceof IInformationControlExtension4)
		((IInformationControlExtension4) control).setStatusText(EditorsUI.getTooltipAffordanceString());

	return true;
}
 
Example #8
Source File: AbstractAnnotationHover.java    From goclipse with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public boolean canReuse(IInformationControl control) {
	if (!super.canReuse(control))
		return false;

	if (control instanceof IInformationControlExtension4)
		((IInformationControlExtension4) control).setStatusText(EditorsUI.getTooltipAffordanceString());

	return true;
}
 
Example #9
Source File: BrowserControlCreator.java    From goclipse with Eclipse Public License 1.0 5 votes vote down vote up
@Override
public boolean canReuse(IInformationControl control) {
	if(!super.canReuse(control))
		return false;
	
	if(control instanceof IInformationControlExtension4) {
		((IInformationControlExtension4) control).setStatusText(statusFieldText);
	}
	
	return true;
}