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


Java AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS属性代码示例

本文整理汇总了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);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:8,代码来源:ExtractInterfaceWizard.java

示例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());
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:14,代码来源:JavaWorkingSetPage.java

示例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);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:11,代码来源:JavaEditorBreadcrumb.java

示例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));
  }
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:15,代码来源:DialogPackageExplorer.java

示例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
					);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:13,代码来源:MembersView.java

示例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);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:12,代码来源:TypesView.java

示例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);
		}
	}
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:36,代码来源:JavaWorkingSetPage.java

示例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);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:6,代码来源:JavaEditorBreadcrumb.java

示例9: OutlineLabelProvider

private OutlineLabelProvider() {
	super(AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS |  JavaElementLabels.F_APP_TYPE_SIGNATURE | JavaElementLabels.ALL_CATEGORY | JavaElementLabels.P_COMPRESSED, AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:3,代码来源:JavaOutlineInformationControl.java

示例10: createLabelProvider

protected JavaUILabelProvider createLabelProvider() {
	return new AppearanceAwareLabelProvider(
					AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS,
					AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS | JavaElementImageProvider.SMALL_ICONS
					);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:6,代码来源:JavaBrowsingPart.java

示例11: PackagesViewLabelProvider

PackagesViewLabelProvider(int state) {
	this(state, AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS | JavaElementLabels.P_COMPRESSED, AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS | JavaElementImageProvider.SMALL_ICONS);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:3,代码来源:PackagesViewLabelProvider.java

示例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


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