Minimal run/debug configurations for eclipse plug-in projects - eclipse

I am working on an eclipse plug-in project. Running/debugging the plug-in project in a standlone Runtime Workbench is a routine work. However, the runtime workbench launches and responds slowly, because my eclipse edition contains too many plug-ins.
Problem: How can I create a minimal run/debug configuration without unnecessary plug-ins?
My trial: The option Run As -> Run Configurations -> Plug-ins -> Launch with plug-ins selected below only lists too many plug-ins to choose from. I am not sure what are required and what are unnecessary.
I try Deselect All -> Add Required Plug-ins, but it causes errors and fails to launch the runtime workbench.
The post: Eclipse minimal configuration for plug-in deployment seems related but it is focused on product deployment and I don't how can it be applied to my situation.
Source: You can find the plug-in project at https://github.com/hengxin/Eclipse-Plugin-Favorite-Demo. It simply contributes a QualityEclipse -> Favorites view.

What if after Deselect All -> Add Required Plug-ins, you check your application plugins and then Add Required Plug-ins ? There might be few plugins to add manually though

Related

Unable to add a Junit file in eclispe

I have an eclipse java project (screen shots attached). I added Junit libraries to my project and when I say New file, I don't see Junit option.
Once Junit libraries are added, eclipse should be able to show the Junit files. Not sure why it wouldn't
You can install it by the following:
Help -> Install New Software
within Eclipse. In the Work with: field, your Eclipse version should have a Site entry in the dropdown, such as:
http://download.eclipse.org/releases/luna/201406250900
Once you choose this, you can then navigate to:
Programming Languages -> Eclipse Java Development Tools
It should then appear afterwards

Launching Eclipse plug in template

I created a Eclipse plug-in project by selecting a plug-in template provides by the eclipse. Then i ran the plug-in it opened another eclipse and the plug-in executed there.Why so? is the plugin taking eclipse's application class to create workbench?
As an elaboration of "If you want to run the plugin in your main workspace you will have to export the plugin and install it in your main Eclipse." that #greg-449 had in his answer. You can do this.
Step 1 - Export your plugin
From the File menu, choose Export... and then choose the Deployable plug-ins and fragments wizard.
Step 2 - Configure your Wizard Options
Select the plug-ins you want to export.
As the destination, choose Install into host
Press Finish
Step 3 - Confirm unsigned content
As you are probably not signing your plug-in, but you do trust it, say Yes to the Warning: you are installing software that contains unsigned content.
Step 4 - Restart Eclipse
Restart Eclipse when prompted to to enable the plug-ins.
Result
You should now see your new plug-ins. To make this example I used the new Plug-in wizard and choose the "Hello, World Command" template. The arrows below point to the contributions in the UI that the plug-in made.
When you run a plugin (Run As > Eclipse Application) Eclipse starts a new instance of Eclipse including your plugin and uses a new workspace. This enables you to test the plugin without damaging your main Eclipse installation and workspace.
If you want to run the plugin in your main workspace you will have to export the plugin and install it in your main Eclipse.
If you want to run your plugin as part of an RCP you can set the application or product launched in the 'Run > Run Configurations...' entry.
For example:
Here I am running a product called 'greg.music.e4.rcp.product'

Eclipse pom.xml content assistant

I'm new to Eclipse. I'm using Eclipse Kepler to create Maven project, everything works fine except when i'm working with pom.xml the content assistant doesn't give me auto complete just like Netbeans does. Below is the screenshot from Netbeans
My question is can Eclipse be like that in term of gives me auto complete on pom.xml?
Do i need plugin for it?
thank you
There are basically 2 ways for doing that:
Refer to the XML's DTD/XSD in its header, so the simple Eclipse XML editor can help you in a minimal way (e.g., check well-formedness, offers Ctrl+Space assist, etc.).
A better option is to install m2e which is the official Eclipse Maven integration plug-in. It should be available through the Install new software... menu item by default, just search for it. It has quite a heavy support for Maven projects (specific editors, repo browsers, it does update the project configuration automatically, helps you select the dependencies, hanldes multi-module projects, makes easier to import Maven-based projects, etc.)
How to Setup Maven AutoComplete:
1) Download and install the maven plugin into Eclipse. I think the link is this http://www.eclipse.org/m2e/
2) In Eclipse, go to Windows tab -> Preferences
3) Got Maven folder from the left-hand menu. Make sure the three boxes I circled are checked. Click Ok
One of the boxes lets you do AutoComplete. I forget which one.
4) Right-click on your project and go to Maven -> Update Project.
5) You're now done! You should be able to do autocomplete by pressing Control+Spacebar:

Eclipse is ignoring workspace plug-ins

Some background: I'm using Eclipse 3.7 (for RCP developers) to work on a few plug-ins that are part of a large (hundreds of plug-ins) RCP application built using Maven with Tycho. I've set up the target platform and the run configuration, and everything builds fine and seems to run fine except...
The changes I make to plug-ins I have in my workspace are not taking effect. In particular, when I debug the application near the changes I've made, the running version of the class is clearly not synchronized with the source code I'm seeing.
I have "Launch with: all workspace and enabled target plug-ins" chosen in the run configuration. If I change it to "plug-ins selected below", the workspace plug-ins are checked in favor of the same plug-ins from the target platform, but my changes are still being ignored at runtime.
Google hasn't been very helpful, and the solutions to similar problems reported by others on SO (e.g. reload the target platform) haven't solved my problem.

OSGi with Eclipse: How to hide eclipse Bundles?

Using Eclipse for OSGi Development is great.
Eclipse comes with cool auto completion features, thats also very helpful in OSGi.
By default Eclipse will suggest Bundles/Packages that are not created by myself but are available in Eclipse.
So my Question is how can i avoid that ? I just want to have my own bundles in these suggestions or auto completions. Is this possible ?
The set of visible bundles is controlled by the "target platform" that you define. By default, it points to self, so you see various bundles present in the Eclipse installation.
See Window -> Preferences -> Plug-in Development -> Target Platform