本文整理汇总了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));
};
};
}
示例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;
}
示例4: ModuleCompletionProcessor
public ModuleCompletionProcessor() {
javaLabelProvider = new JavaElementLabelProvider(
JavaElementLabelProvider.SHOW_SMALL_ICONS);
allProposals = new ArrayList<ModuleCompletionProposal>();
}
示例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);
}
示例7: getLabelProviderFlags
protected int getLabelProviderFlags() {
return JavaElementLabelProvider.SHOW_BASICS | JavaElementLabelProvider.SHOW_OVERLAY_ICONS |
JavaElementLabelProvider.SHOW_SMALL_ICONS | JavaElementLabelProvider.SHOW_VARIABLE | JavaElementLabelProvider.SHOW_PARAMETERS;
}
示例8: ListLabelProvider
public ListLabelProvider()
{
super(JavaElementLabelProvider.SHOW_OVERLAY_ICONS
| JavaElementLabelProvider.SHOW_SMALL_ICONS);
}
示例9: DetailsLabelProvider
public DetailsLabelProvider()
{
super(JavaElementLabelProvider.SHOW_OVERLAY_ICONS
| JavaElementLabelProvider.SHOW_SMALL_ICONS
| JavaElementLabelProvider.SHOW_QUALIFIED);
}
示例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