Eclipse plugin to create debug configurations [duplicate] - eclipse

This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
Eclipse: How can I execute a launch configuration programmatically?
I want to write an Eclipse Plugin that can programmatically create Debug Launch configurations for 'Remote Java Application' and also Launch the configuration programmatically.
Is this possible? Can someone give me pointers to get me started?
I don't have a great deal of experience authoring Eclipse plugins but I am quite experienced using it for my daily dev work.
I am keen on writing this plugin to simply my debugging process which currently involves manually launching a debug configuration for every JVM (at least 3) that I want to debug, which slows me down tremendously.

To create the actual plugin, there are several example ones available in Eclipse if you have the Eclipse PDE installation. Look at this tutorial for help to get started.
That guide will get you a sample application with a toolbar button and a meny alternative. Alter the code to make it look like you want, then use the help from the other comments to launch the programs.

Related

How to enable perspective bar in eclipse RCP application

I created eclipse 4 application project (RCP) with some sample content.
How to add perspective bar functionality to this application (exactly the same as in eclipse 4)?
Another question is -> how to add functionality which provides installation of plugins?
I spent too much time on looking for solution (of course I try to find some on vogela site etc.). It would be really nice if someone helped.

Create plug-in that creates a snapshot of the source code currently opened on editor - Eclipse CDT

I need to create a plug-in for Eclipse CDT that sends a "snapshot" of the source code of the currently opened editor each time the code is "built".
I am already capable of doing it each time the user presses a custom button created by me, but it would be great if it could be done when the "standard" "build" action is performed.
Do i need no create a plug-in of the type "builder"?
I am using Eclipse 4.4.0...
Can someone help me?! (Sorry for some english mistakes... :( )
One solution would be to create your own custom "Builder". Instead of actually building the code, it would invoke the functionality you already have.
For information on how to use the eclipse build system, please have a look here: https://wiki.eclipse.org/Eclipse/FAQ/How_do_I_implement_an_Eclipse_builder%3F.
Also, this website goes into more details about building in eclipse: https://www.eclipse.org/articles/Article-Builders/builders.htm. However, I think that the first one should do.
As a side note, this works with any kind of eclipse project (JDT and CDT). The build described there is common to all flavours.
Hope it helps,
-Caius

How to debug a plugin in Eclipse - i.e. a Java project without a Main method

I am currently trying to modify the behavior of an existing open-source plug-in for Eclipse.
I'm trying to understand how the plugin works. To do so, I opened it in "Debug" mode as an Eclipse application and I am testing it out after having inserted many breakpoints.
However, sine Eclipse plugins do not have a Main method, it's still really difficult for me to keep track of everything that is going on. The calls seem to jump arbitrarily (which I quickly realized was happening through all the interfaces and superclasses the plugin is inheriting) and I can't see exactly what's doing what.
What is the proper (read: BEST) way to debug a program with no Main method? How can I test, tweak, and explore and program - in this case a plugin - whose modus operandi I'm uncertain of?
You need to run your plugin in a runtime workbench. This (simplistically) starts a new instance of Eclipse with all existing plugins installed, plus the plugin you want to debug. Make sure that you have the PDE tools installed in your Eclipse instance and then in the debug configurations area, double-click on Eclipse Application to generate a default runtime workbench launch config.
I'd also recommend that you read up on PDE (plugin development environment), and you can get an overview here: http://wiki.eclipse.org/PDE/FAQ. And you can read up on plugins in general here: http://eclipsepluginsite.com/. There are many tutorials and lots of information all over the web. So, google is your friend.
Along with using breakpoints in Debug method you can even try printing stack trace using Thread.currentThread().getStackTrace() method to know the starting point of a Thread.

Flash Builder plugin

I know that this is not a programming related question but what is the name of plugin in this video: http://johnlindquist.com/2010/01/21/as3-signals-tutorial/.
Here is screenshot I've took: http://i.stack.imgur.com/tBIJm.png
It is used to auto complete code generation as is is shown in movie (for example to create local variable after clicking key combination ad the end of line).
It would make my life easier :)
I'm currently using flash builder 4.6 on windows 7 x64. Plugins that I have installed are: SourceMate and CodeFormatter
Maybe this isn't a plugin after all, maybe I must install eclipse and flash builder as a plugin. Help me with this one please.
As I mention in comment to my question I found out that application that was used in this video is FDT5. I hope that someday these features will be build into Flash Builder.

How to launch minimal eclipse?

This my seem a little odd but I want to start eclipse (v3.5) in the most minimal version possible. Pherhaps just the core and the ui component without anything else. I'm new to eclipse Plugin Development so I don't really know if this is possible at all?
I googled this topic but there seems to be no useful info out there. Perhaps someone can help me...
Thanks
I found the solution. On this webpage in Section 3 "Create your first RCP application". There a minimal application based on the Extensions
org.eclipse.core.runtime.apllications
org.eclipse.ui.perspectives
is created.