Java Code Examples for org.eclipse.jdt.ui.JavaElementLabels#F_APP_TYPE_SIGNATURE

The following examples show how to use org.eclipse.jdt.ui.JavaElementLabels#F_APP_TYPE_SIGNATURE . 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: BindingLabelProvider.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 6 votes vote down vote up
private static void getLocalVariableLabel(IVariableBinding binding, long flags, StringBuffer buffer) {
	if (((flags & JavaElementLabels.F_PRE_TYPE_SIGNATURE) != 0)) {
		getTypeLabel(binding.getType(), (flags & JavaElementLabels.T_TYPE_PARAMETERS), buffer);
		buffer.append(' ');
	}
	if (((flags & JavaElementLabels.F_FULLY_QUALIFIED) != 0)) {
		IMethodBinding declaringMethod= binding.getDeclaringMethod();
		if (declaringMethod != null) {
			getMethodLabel(declaringMethod, flags, buffer);
			buffer.append('.');
		}
	}
	buffer.append(binding.getName());
	if (((flags & JavaElementLabels.F_APP_TYPE_SIGNATURE) != 0)) {
		buffer.append(JavaElementLabels.DECL_STRING);
		getTypeLabel(binding.getType(), (flags & JavaElementLabels.T_TYPE_PARAMETERS), buffer);
	}
}
 
Example 2
Source File: ExtractInterfaceWizard.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
private ILabelProvider createLabelProvider(){
	AppearanceAwareLabelProvider lprovider= new AppearanceAwareLabelProvider(
		AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS |  JavaElementLabels.F_APP_TYPE_SIGNATURE,
		AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS
	);

	return new DecoratingJavaLabelProvider(lprovider);
}
 
Example 3
Source File: JavaEditorBreadcrumb.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Returns the label provider to use for the tool tips.
 *
 * @return a label provider for the tool tips
 */
private ILabelProvider createToolTipLabelProvider() {
	final AppearanceAwareLabelProvider result= new AppearanceAwareLabelProvider(AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS | JavaElementLabels.F_APP_TYPE_SIGNATURE
			| JavaElementLabels.ALL_CATEGORY, JavaElementImageProvider.SMALL_ICONS | AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS);

	return new DecoratingJavaLabelProvider(result);
}
 
Example 4
Source File: MembersView.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * Creates and returns the label provider for this part.
 *
 * @return the label provider
 * @see org.eclipse.jface.viewers.ILabelProvider
 */
@Override
protected JavaUILabelProvider createLabelProvider() {
	return new AppearanceAwareLabelProvider(
					AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS | JavaElementLabels.F_APP_TYPE_SIGNATURE | JavaElementLabels.ALL_CATEGORY,
					AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS
					);
}
 
Example 5
Source File: JavaEditorBreadcrumb.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
private ILabelProvider createDropDownLabelProvider() {
	final AppearanceAwareLabelProvider result= new AppearanceAwareLabelProvider(AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS | JavaElementLabels.F_APP_TYPE_SIGNATURE
			| JavaElementLabels.ALL_CATEGORY | JavaElementLabels.P_COMPRESSED, JavaElementImageProvider.SMALL_ICONS | AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS);

	return new DecoratingJavaLabelProvider(result);
}
 
Example 6
Source File: JavaOutlineInformationControl.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 4 votes vote down vote up
private OutlineLabelProvider() {
	super(AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS |  JavaElementLabels.F_APP_TYPE_SIGNATURE | JavaElementLabels.ALL_CATEGORY | JavaElementLabels.P_COMPRESSED, AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS);
}