eclipse-pde

Extending a 3rd party Eclipse plugin to fire procedure on NewWizard finish

我只是一个虾纸丫 提交于 2019-12-25 02:28:24
问题 We are looking to create a new Eclipse plugin to perform certain tasks when another commercial 3rd party plugin creates new classes in Eclipse. The other plugin is ABAP Development Tools by SAP, which unfortunately doesn't provide source code for easy extension (as far as I can see). I'm not too familiar with Eclipse plugin development nor Java, coming from a JS, Delphi, C# background, but I have a main idea that I was hoping to work with. I've not been able to find any documentation for it

Override marker click action

泪湿孤枕 提交于 2019-12-24 01:01:41
问题 I want to add a custom action when the user clicks on a marker from the left vertical ruler of the editor I managed to run a custom action by adding in the plugin.xml the following code: <extension point="org.eclipse.ui.editorActions"> <editorContribution targetID="org.eclipse.cdt.ui.editor.CEditor" id="org.eclipse.cdt.debug.ui.CEditor.MyRulerActions"> <action label="%Dummy.label" class="com.example.MarkerClickAction" actionID="RulerClick" id="com.example.MarkerClickAction"> </action> <

How can I obtain the version number of a custom Eclipse feature at runtime?

醉酒当歌 提交于 2019-12-23 20:05:45
问题 I would like to display the version number of a custom Eclipse feature I am developing in the title bar of its perspective. Is there a way to obtain the version number from the runtime plugin and/or workbench? 回答1: Something like: Platform.getBundle("my.feature.id").getHeaders().get("Bundle-Version"); should do the trick. Note (from this thread) that it can not be used anywhere within the plugin itself: this.getBundle() is not valid until AFTER super.start(BundleContext) has been called on

How to implement Quick Fix / Quick Assist for custom eclipse editor?

情到浓时终转凉″ 提交于 2019-12-23 17:23:40
问题 I have extended org.eclipse.ui.editors.text.TextEditor to implement a custom editor. For this editor, I have defined a marker type ( org.eclipse.core.resources.markers extension point) and an annotation type ( org.eclipse.ui.editors.annotationTypes extension point) to mark specific parts of code in my editor. I use a reconciler to update my annotation model. Now I want to add a quick fix / quick assist feature. I simply want eclipse, to show a box with proposals, when I hover over an

Eclipse PDE: Custom QuickFix only available in Problems View?

风格不统一 提交于 2019-12-22 09:47:58
问题 i am having trouble with custom quick-fixes, which i want to provide in my Eclipse plug-in, and i'm hoping for someone more experienced than me in Eclipse PDE to have some hints for me on this issue. As i have understood, i can provide custom so-called "quick fixes" (or "resolutions", in Eclipse inside terminology), by extending the extension point org.eclipse.ui.ide.markerResolution for a specific marker id, such as for example some default Eclipse marker, org.eclipse.core.resources

Prevent caching of Eclipse target definition

試著忘記壹切 提交于 2019-12-22 08:47:13
问题 I'm using a target definition that references a P2 update site. Update site was updated recently with a plugin that has same version and qualifier as previous version, but different content. I've deleted .metadata/.plugins/org.eclipse.pde.core and tried resolving and applying target definition again. Strangely, target definition recreates previous version of plugin in .metadata.plugins\org.eclipse.pde.core.bundle_pool (I'm checking its content and behaviour) Where could the content be cached

How do I use “org.eclipse.debug.ui.launchShortcuts”?

流过昼夜 提交于 2019-12-21 17:41:19
问题 I have written a custom launcher in Eclipse which I can access via the "Run As" and "Debug As" menu options on the toolbar. I also want to be able to launch via the package explorer and via right clicking on the editor of a file to be launched. I followed the tutorial here to add the shortcut but nothing happens, it does not enter my handling code, nor does it complain regarding the configuration of the extension point. Here is a snippet from my plugin.xml <extension point="org.eclipse.debug

What's 'API Baseline' in Eclipse PDT

﹥>﹥吖頭↗ 提交于 2019-12-21 07:07:43
问题 Since upgrading to Eclipse 3.7, the Eclipse PDE plugin wants me to specify an 'API Baseline' for all my Eclipse Plugin projects. However there seems to be no documentation which actually explains what 'API Baseline' stands for here, and what is it used for. Could somebody please explain? 回答1: From the PDE API Tools User Guide: An API baseline defines the state you want to compare your development workspace bundles against for the purposes of binary compatibility, bundle version numbers, and

How to implement content assist's documentation popup in Eclipse RCP

一曲冷凌霜 提交于 2019-12-21 05:38:14
问题 I have implemented my own editor and added a code completion functionality to it. My content assistant is registered in source viewer configuration like this: public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) { if (assistant == null) { assistant = new ContentAssistant(); assistant.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer)); assistant.setContentAssistProcessor(getMyAssistProcessor(), MyPartitionScanner.DESIRED_PARTITION_FOR_MY_ASSISTANCE);

Override the dependencies added during running a project as an Eclipse Application

可紊 提交于 2019-12-20 05:53:26
问题 I am trying to write a custom launch configuration while running a plugin project as an eclipse application. I have to run the plugin with limited dependencies. Is it possible to override methods in org.eclipse.pde.launching.EclipseApplicationLaunchConfiguration ? If yes then how do I do it ? 回答1: You can't easily override the methods in EclipseApplicationLaunchConfiguration . That would require writing a new launch configuration - probably by using the org.eclipse.debug.core