当前位置: 首页>>代码示例>>Java>>正文


Java JavaElementLabelProvider.SHOW_SMALL_ICONS属性代码示例

本文整理汇总了Java中org.eclipse.jdt.ui.JavaElementLabelProvider.SHOW_SMALL_ICONS属性的典型用法代码示例。如果您正苦于以下问题:Java JavaElementLabelProvider.SHOW_SMALL_ICONS属性的具体用法?Java JavaElementLabelProvider.SHOW_SMALL_ICONS怎么用?Java JavaElementLabelProvider.SHOW_SMALL_ICONS使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.jdt.ui.JavaElementLabelProvider的用法示例。


在下文中一共展示了JavaElementLabelProvider.SHOW_SMALL_ICONS属性的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getPostQualifiedLabelProvider

public static IBaseLabelProvider getPostQualifiedLabelProvider() {
	return new DelegatingStyledCellLabelProvider(new JavaElementLabelProvider(
			JavaElementLabelProvider.SHOW_POST_QUALIFIED | JavaElementLabelProvider.SHOW_SMALL_ICONS)) {
		@Override
		protected StyledString getStyledText(Object element) {
			String nameWithQualifier = getStyledStringProvider().getStyledText(element).getString() + " ";
			int separatorIndex = nameWithQualifier.indexOf('-');

			if (separatorIndex == -1)
				return new StyledString(nameWithQualifier);

			StyledString name = new StyledString(nameWithQualifier.substring(0, separatorIndex));
			String qualifier = nameWithQualifier.substring(separatorIndex);
			return name.append(new StyledString(qualifier, StyledString.QUALIFIER_STYLER));
		};
	};
}
 
开发者ID:ELTE-Soft,项目名称:txtUML,代码行数:17,代码来源:WizardUtils.java

示例2: JavaSourcePackageFragmentRootCompletionProcessor

public JavaSourcePackageFragmentRootCompletionProcessor() {
	fRoot= JavaCore.create(ResourcesPlugin.getWorkspace().getRoot());
	IPreferenceStore preferenceStore= JavaPlugin.getDefault().getPreferenceStore();
	String triggers= preferenceStore.getString(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA);
	fProposalAutoActivationSet= triggers.toCharArray();
	fComparator= new CompletionProposalComparator();
	fLabelProvider= new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_SMALL_ICONS);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:8,代码来源:JavaSourcePackageFragmentRootCompletionProcessor.java

示例3: createWorkspaceFileSelectionDialog

/**
 * Creates and returns a dialog to choose an existing workspace file.
 * @param title the title
 * @param message the dialog message
 * @return the dialog
 */
protected ElementTreeSelectionDialog createWorkspaceFileSelectionDialog(String title, String message) {
	int labelFlags= JavaElementLabelProvider.SHOW_BASICS
					| JavaElementLabelProvider.SHOW_OVERLAY_ICONS
					| JavaElementLabelProvider.SHOW_SMALL_ICONS;
	final DecoratingLabelProvider provider= new DecoratingLabelProvider(new JavaElementLabelProvider(labelFlags), new ProblemsLabelDecorator(null));
	ElementTreeSelectionDialog dialog= new ElementTreeSelectionDialog(getShell(), provider, new StandardJavaElementContentProvider());
	dialog.setComparator(new JavaElementComparator());
	dialog.setAllowMultiple(false);
	dialog.setValidator(new ISelectionStatusValidator() {
		public IStatus validate(Object[] selection) {
			StatusInfo res= new StatusInfo();
			// only single selection
			if (selection.length == 1 && (selection[0] instanceof IFile))
				res.setOK();
			else
				res.setError(""); //$NON-NLS-1$
			return res;
		}
	});
	dialog.addFilter(new EmptyInnerPackageFilter());
	dialog.addFilter(new LibraryFilter());
	dialog.setTitle(title);
	dialog.setMessage(message);
	dialog.setStatusLineAboveButtons(true);
	dialog.setInput(JavaCore.create(JavaPlugin.getWorkspace().getRoot()));
	return dialog;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:33,代码来源:JarManifestWizardPage.java

示例4: ModuleCompletionProcessor

public ModuleCompletionProcessor() {
  javaLabelProvider = new JavaElementLabelProvider(
      JavaElementLabelProvider.SHOW_SMALL_ICONS);
  allProposals = new ArrayList<ModuleCompletionProposal>();
}
 
开发者ID:gwt-plugins,项目名称:gwt-eclipse-plugin,代码行数:5,代码来源:ModuleCompletionProcessor.java

示例5: SimilarLabelProvider

public SimilarLabelProvider() {
	super(JavaElementLabelProvider.SHOW_DEFAULT | JavaElementLabelProvider.SHOW_SMALL_ICONS);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:3,代码来源:RenameTypeWizardSimilarElementsPage.java

示例6: createTitleProvider

protected ILabelProvider createTitleProvider() {
	return new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_BASICS | JavaElementLabelProvider.SHOW_SMALL_ICONS);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:3,代码来源:JavaBrowsingPart.java

示例7: getLabelProviderFlags

protected int getLabelProviderFlags() {
	return JavaElementLabelProvider.SHOW_BASICS | JavaElementLabelProvider.SHOW_OVERLAY_ICONS |
			JavaElementLabelProvider.SHOW_SMALL_ICONS | JavaElementLabelProvider.SHOW_VARIABLE | JavaElementLabelProvider.SHOW_PARAMETERS;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:JavaBrowsingPart.java

示例8: ListLabelProvider

public ListLabelProvider()
{
	super(JavaElementLabelProvider.SHOW_OVERLAY_ICONS
			| JavaElementLabelProvider.SHOW_SMALL_ICONS);
}
 
开发者ID:JanKoehnlein,项目名称:XRobot,代码行数:5,代码来源:MainTypeSelectDialog.java

示例9: DetailsLabelProvider

public DetailsLabelProvider()
{
	super(JavaElementLabelProvider.SHOW_OVERLAY_ICONS
			| JavaElementLabelProvider.SHOW_SMALL_ICONS
			| JavaElementLabelProvider.SHOW_QUALIFIED);
}
 
开发者ID:JanKoehnlein,项目名称:XRobot,代码行数:6,代码来源:MainTypeSelectDialog.java

示例10: JavaPackageCompletionProcessor

/**
 * Creates a <code>JavaPackageCompletionProcessor</code>.
 * The completion context must be set via {@link #setPackageFragmentRoot(IPackageFragmentRoot)}.
 */
public JavaPackageCompletionProcessor() {
    this(new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_SMALL_ICONS));
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:7,代码来源:JavaPackageCompletionProcessor.java


注:本文中的org.eclipse.jdt.ui.JavaElementLabelProvider.SHOW_SMALL_ICONS属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。