本文整理汇总了Java中org.eclipse.jdt.internal.ui.viewsupport.AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS属性的典型用法代码示例。如果您正苦于以下问题:Java AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS属性的具体用法?Java AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS怎么用?Java AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.eclipse.jdt.internal.ui.viewsupport.AppearanceAwareLabelProvider
的用法示例。
在下文中一共展示了AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS属性的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createLabelProvider
private ILabelProvider createLabelProvider(){
AppearanceAwareLabelProvider lprovider= new AppearanceAwareLabelProvider(
AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS | JavaElementLabels.F_APP_TYPE_SIGNATURE,
AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS
);
return new DecoratingJavaLabelProvider(lprovider);
}
示例2: configureTable
/**
* {@inheritDoc}
*/
@Override
protected void configureTable(TableViewer table) {
AppearanceAwareLabelProvider javaElementLabelProvider= new AppearanceAwareLabelProvider(
AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS | JavaElementLabels.P_COMPRESSED
| JavaElementLabels.ROOT_POST_QUALIFIED | JavaElementLabels.P_POST_QUALIFIED,
AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS | JavaElementImageProvider.SMALL_ICONS
);
table.setLabelProvider(new DecoratingJavaLabelProvider(javaElementLabelProvider));
table.setComparator(new JavaElementComparator());
}
示例3: createToolTipLabelProvider
/**
* 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);
}
示例4: setContentProvider
/**
* Set the content and label provider of the
* <code>fPackageViewer</code>
*/
public void setContentProvider() {
if (fContentProvider != null) {
fContentProvider.dispose();
}
fContentProvider= new PackageContentProvider();
fContentProvider.setIsFlatLayout(true);
PackageLabelProvider labelProvider= new PackageLabelProvider(AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS | JavaElementLabels.P_COMPRESSED,
AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS | JavaElementImageProvider.SMALL_ICONS);
fPackageViewer.setContentProvider(fContentProvider);
fPackageViewer.setLabelProvider(new DecoratingJavaLabelProvider(labelProvider, false));
}
示例5: createLabelProvider
/**
* 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
);
}
示例6: createLabelProvider
/**
* 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.T_CATEGORY,
AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS);
}
示例7: configureTree
/**
* {@inheritDoc}
*/
@Override
protected void configureTree(TreeViewer tree) {
tree.setContentProvider(new JavaWorkingSetPageContentProvider());
AppearanceAwareLabelProvider javaElementLabelProvider=
new AppearanceAwareLabelProvider(
AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS | JavaElementLabels.P_COMPRESSED,
AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS | JavaElementImageProvider.SMALL_ICONS
);
tree.setLabelProvider(new DecoratingJavaLabelProvider(javaElementLabelProvider));
tree.setComparator(new JavaElementComparator());
tree.addFilter(new EmptyInnerPackageFilter());
tree.setInput(JavaCore.create(ResourcesPlugin.getWorkspace().getRoot()));
if (getSelection() == null)
return;
Object[] selection= getInitialTreeSelection();
if (selection.length > 0) {
try {
tree.getTree().setRedraw(false);
for (int i= 0; i < selection.length; i++) {
tree.expandToLevel(selection[i], 0);
}
tree.setSelection(new StructuredSelection(selection));
} finally {
tree.getTree().setRedraw(true);
}
}
}
示例8: createDropDownLabelProvider
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);
}
示例9: OutlineLabelProvider
private OutlineLabelProvider() {
super(AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS | JavaElementLabels.F_APP_TYPE_SIGNATURE | JavaElementLabels.ALL_CATEGORY | JavaElementLabels.P_COMPRESSED, AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS);
}
示例10: createLabelProvider
protected JavaUILabelProvider createLabelProvider() {
return new AppearanceAwareLabelProvider(
AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS,
AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS | JavaElementImageProvider.SMALL_ICONS
);
}
示例11: PackagesViewLabelProvider
PackagesViewLabelProvider(int state) {
this(state, AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS | JavaElementLabels.P_COMPRESSED, AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS | JavaElementImageProvider.SMALL_ICONS);
}
示例12: JavaModelLabelProvider
/**
* Creates a new java model label provider.
*
* @param preferences
* the preferences label
* @param refactorings
* the refactorings label
*/
public JavaModelLabelProvider(final String preferences, final String refactorings) {
super(AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS | JavaElementLabels.P_COMPRESSED, AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS | JavaElementImageProvider.SMALL_ICONS);
Assert.isNotNull(preferences);
Assert.isNotNull(refactorings);
fPreferencesLabel= preferences;
fRefactoringsLabel= refactorings;
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:15,代码来源:JavaModelLabelProvider.java