• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java PDEPluginImages类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.eclipse.pde.internal.ui.PDEPluginImages的典型用法代码示例。如果您正苦于以下问题:Java PDEPluginImages类的具体用法?Java PDEPluginImages怎么用?Java PDEPluginImages使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



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

示例1: AbstractNewProjectTemplateWizard

import org.eclipse.pde.internal.ui.PDEPluginImages; //导入依赖的package包/类
/**
 * Creates a new template wizard.
 */
public AbstractNewProjectTemplateWizard() {
	super();
	setDialogSettings(PDEPlugin.getDefault().getDialogSettings());
	setDefaultPageImageDescriptor(PDEPluginImages.DESC_NEWEXPRJ_WIZ);
	setNeedsProgressMonitor(true);
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:10,代码来源:AbstractNewProjectTemplateWizard.java


示例2: fillContextMenu

import org.eclipse.pde.internal.ui.PDEPluginImages; //导入依赖的package包/类
private void fillContextMenu(IMenuManager manager) {
	manager.add(openAction);

	IPluginModelBase selectedPluginModel = getSelectedPluginModel();
	if (selectedPluginModel != null) {
		Action dependenciesAction = new OpenPluginDependenciesAction(selectedPluginModel);
		manager.add(dependenciesAction);
		dependenciesAction.setText(PDEUIMessages.PluginsView_openDependencies);
		dependenciesAction.setImageDescriptor(PDEPluginImages.DESC_CALLEES);
	}

	manager.add(new Separator());
	manager.add(copyAction);
	manager.add(pasteAction);

	manager.add(new Separator());
	manager.add(renameAction);

	Collection<?> selection = getViewerSelection();
	deleteAction.setText("Delete...");
	if (selection.size() > 1) {
		deleteAction.setText("Delete / Remove Inclusions");
	} else if (selection.size() == 1 && !canDelete(selection.iterator().next())) {
		deleteAction.setText("Delete (Remove Inclusion)");
	}

	manager.add(deleteAction);

	Collection<IProductModel> productModels = getSelectedProductModels();
	if (!productModels.isEmpty() && productModels.size() == selection.size()) {
		manager.add(new Separator());
		manager.add(new ProductNatureAddAction(viewer.getSelection()));
	}
}
 
开发者ID:secondfiddle,项目名称:pep-tools,代码行数:35,代码来源:FeatureExplorerView.java


示例3: ShowProductsAction

import org.eclipse.pde.internal.ui.PDEPluginImages; //导入依赖的package包/类
public ShowProductsAction(ConfigurableViewer configurableViewer) {
	super("", AS_CHECK_BOX);
	this.configurableViewer = configurableViewer;

	setToolTipText("Show Feature Products");
	setImageDescriptor(PDEPluginImages.DESC_PRODUCT_DEFINITION);
}
 
开发者ID:secondfiddle,项目名称:pep-tools,代码行数:8,代码来源:ShowProductsAction.java


示例4: ShowCallersContentProviderAction

import org.eclipse.pde.internal.ui.PDEPluginImages; //导入依赖的package包/类
public ShowCallersContentProviderAction(ConfigurableViewer configurableViewer,
		FeatureModelManager featureModelManager, ProductModelManager productModelManager, FeatureIndex featureIndex) {
	super(configurableViewer, featureModelManager, productModelManager);
	this.featureIndex = featureIndex;

	setToolTipText("Show Features Including Each Feature");
	setImageDescriptor(PDEPluginImages.DESC_CALLERS);
}
 
开发者ID:secondfiddle,项目名称:pep-tools,代码行数:9,代码来源:ShowCallersContentProviderAction.java


示例5: ReportAdvancedLauncherTab

import org.eclipse.pde.internal.ui.PDEPluginImages; //导入依赖的package包/类
/**
 * @param showFeatures
 */
public ReportAdvancedLauncherTab( boolean showFeatures )
{
	fNumExternalChecked = 0;
	fNumWorkspaceChecked = 0;
	fShowFeatures = showFeatures;
	PDEPlugin.getDefault( ).getLabelProvider( ).connect( this );
	fImage = PDEPluginImages.DESC_REQ_PLUGINS_OBJ.createImage( );
	fWorkspaceBIRTModels = getInterestProject( REPORTPROJECTKID );
	fWorkspaceJavaModels = getInterestProject( JavaCore.NATURE_ID );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:14,代码来源:ReportAdvancedLauncherTab.java


示例6: getImage

import org.eclipse.pde.internal.ui.PDEPluginImages; //导入依赖的package包/类
private Image getImage(Object definition) {
	if (definition instanceof IApiBaseline) {
		return apiToolsProvider.getImage(definition);
	}
	
	if (definition instanceof ITargetDefinition) {
		int flag = 0;
		if (fRunningHost != null && fRunningHost.isContentEquivalent((ITargetDefinition) definition)) {
			return PDEPlugin.getDefault().getLabelProvider().get(PDEPluginImages.DESC_PRODUCT_BRANDING, flag);
		}
		return PDEPlugin.getDefault().getLabelProvider().get(PDEPluginImages.DESC_TARGET_DEFINITION, flag);
	}
	
	return null;
}
 
开发者ID:jd-carroll,项目名称:target-baselines,代码行数:16,代码来源:TargetBaselinePreferencePage.java


示例7: scheduleExportJob

import org.eclipse.pde.internal.ui.PDEPluginImages; //导入依赖的package包/类
protected void scheduleExportJob() throws IOException {
	
	Path folder = Files.createTempDirectory("eclipse-export", new FileAttribute<?>[0]);
	final FeatureExportInfo info = new FeatureExportInfo();
	info.toDirectory = false; // in order to install from the repository
	info.useJarFormat = true;
	info.exportSource = false;
	info.exportSourceBundle = false;
	info.allowBinaryCycles = true;
	info.useWorkspaceCompiledClasses = false;
	info.destinationDirectory = folder.toString();
	info.zipFileName = "p2-repo.zip";
	info.items = getFeatures();
	info.signingInfo = null; //
	info.exportMetadata = true;
	info.qualifier = QualifierReplacer.getDateQualifier();

	final FeatureExportOperation job = new FeatureExportOperation(info, PDEUIMessages.FeatureExportJob_name);
	job.setUser(true);
	job.setRule(ResourcesPlugin.getWorkspace().getRoot());
	job.setProperty(IProgressConstants.ICON_PROPERTY, PDEPluginImages.DESC_PLUGIN_OBJ);
	
	// listen to job changes, we'll upload stuff when the building has been done 
	job.addJobChangeListener(new JobChangeAdapter() {
		public void done(IJobChangeEvent event) {
			if (job.hasAntErrors()) {
				// if there were errors when running the ant scripts, inform
				// the user where the logs can be found.
				final File logLocation = new File(info.destinationDirectory, "logs.zip"); //$NON-NLS-1$
				if (logLocation.exists()) {
					PlatformUI.getWorkbench().getDisplay().syncExec(new Runnable() {
						public void run() {
							AntErrorDialog dialog = new AntErrorDialog(logLocation);
							dialog.open();
						}
					});
				}
			} else if (event.getResult().isOK()) {
				// can publish
				try (CloseableHttpClient client = HttpClientBuilder.create().build()) {
					// sign in and upload items
					if (signIn(client)) {
						uploadForm(client);							
						// upload the images
						if (solution.getScreenshot() != null) {
							uploadFile(client, Paths.get(solution.getScreenshot()), "upload-screenshot");
						}
						if (solution.getImage() != null) {
							uploadFile(client, Paths.get(solution.getImage()), "upload-image");
						}
						// upload the repository
						uploadFile(client, folder.resolve("p2-repo.zip"),"upload-p2repo");
					}
				} catch (Exception e) {
					e.printStackTrace();
					addMessage(IMessage.ERROR, e.getMessage());
				}

			}
		}

	});
	job.schedule();
}
 
开发者ID:Itema-as,项目名称:dawn-marketplace-server,代码行数:65,代码来源:OverviewPage.java


示例8: getObjectImage

import org.eclipse.pde.internal.ui.PDEPluginImages; //导入依赖的package包/类
private Image getObjectImage(IProductModel productModel) {
	return get(PDEPluginImages.DESC_PRODUCT_DEFINITION);
}
 
开发者ID:secondfiddle,项目名称:pep-tools,代码行数:4,代码来源:FeatureTreeLabelProvider.java


示例9: CollapseAllAction

import org.eclipse.pde.internal.ui.PDEPluginImages; //导入依赖的package包/类
public CollapseAllAction(TreeViewer viewer) {
	this.viewer = viewer;

	setToolTipText("Collapse All");
	setImageDescriptor(PDEPluginImages.DESC_COLLAPSE_ALL);
}
 
开发者ID:secondfiddle,项目名称:pep-tools,代码行数:7,代码来源:CollapseAllAction.java


示例10: ShowCalleesContentProviderAction

import org.eclipse.pde.internal.ui.PDEPluginImages; //导入依赖的package包/类
public ShowCalleesContentProviderAction(ConfigurableViewer configurableViewer,
		FeatureModelManager featureModelManager, ProductModelManager productModelManager) {
	super(configurableViewer, featureModelManager, productModelManager);
	setToolTipText("Show Features Included by Each Feature");
	setImageDescriptor(PDEPluginImages.DESC_CALLEES);
}
 
开发者ID:secondfiddle,项目名称:pep-tools,代码行数:7,代码来源:ShowCalleesContentProviderAction.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java FeaturePropertyBase类代码示例发布时间:2022-05-22
下一篇:
Java CommandBuilder类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap