本文整理汇总了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);
}
示例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()));
}
}
示例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);
}
示例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);
}
示例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 );
}
示例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;
}
示例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();
}
示例8: getObjectImage
import org.eclipse.pde.internal.ui.PDEPluginImages; //导入依赖的package包/类
private Image getObjectImage(IProductModel productModel) {
return get(PDEPluginImages.DESC_PRODUCT_DEFINITION);
}
示例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);
}
示例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);
}