how to make a new eclipse project (as a plugin) - java

Is there, somewhere a tutorial on how to make an eclipse plugin.
need it to integrate as a NEW PROJECT into eclipse.
I've seen others, but not for making a NEW PROJECT plugin.
or is there an existing open source plugin i could check for tips and tricks... could not find it, eclipse list of plugins is crazy to search through.

This as well as this tutorial look rather promising for beginning plugin development. Also have a look at https://stackoverflow.com/questions/592391/eclipse-plugin-development-resources. For wizards, check this tutorial.

Eclipse.org officially suggests THIS BLOG to start developing the eclipse plugins.
This will give you an understanding on where to start, how to write and how to generate it as a plugin and deploy it.
Posts given by #Dirk also will be very helpful.

There are a lot of tutorials on Eclipse RCP on the Internet, on the following link from the chapter Tutorials Writing an Eclipse Plug-in (Part 1) to Writing an Eclipse Plug-in (Part 6) will be helpful:
http://lubospeclipse.wordpress.com/eclipse-plugin-and-rcp-development-notes-2-2/
Also, if you want to check an existing Open Source Eclipse plugin which does the same thing, the best way do is to find plugins made for new languages of technologies. Basically, every new language or technology first implements plugins for new project and for custom file type.

Related

How to identify a project (eclipse) type (RCP or other) to look at the code?

Please bear with me, if my question sounds bad.
I am working with a project (java eclipse), I had the code base in my office laptop, it works fine, now I need to get inside the code/project so that I can modify when needed.
I can code in java (intermediate level), but I am a beginner at eclipse stuff, specially eclipse application/plugins.
I am spending lots of time reading/watching different tutorials on eclipse (like vogella, o7planning, help.eclipse, etc.) but got confused on all these different stuff, RCP, SWT/jFace, Java GUI, windowbuilder, etc.
I need to know How "this" (my project that I'm working) got started? Is it a eclipse RCP? seems like a RCP, but there is no OSGi,
Here is a list of what it has (other than .java, JRE library, Plug-in dependencies),
META-INF, build.properties, a product file, a launch, h2 connectivity, a plugin.xml
From user point of view, this program has several menus, views,
I was able to open some views in windowbuilder editor (not all views/menus)
some java classes named as handler (part of name).
Any suggestions (reading materials) how to start with this project to understand it completely will be really helpful.
Is there any way to reproduce the whole project (using all the codes/java files that I already have)?
One way to do reverse engineering is by going through plugin.xml.
vogella is a good tutorial you will find all major eclipse rcp related tutorials.
You mentioned menu go through your plugin.xml you will find org.eclipse.ui.menus extension and associated handlers.
https://www.vogella.com/tutorials/EclipseCommands/article.html
Do your plugin project contains.xtend files go through https://www.eclipse.org/xtend/documentation/101_gettingstarted.html
Do your plugin project contains xtext files go through DSL
https://www.eclipse.org/Xtext/documentation/102_domainmodelwalkthrough.html

How to add ImageJ plugin in eclipse?

Please explain how to add ImageJ plugin in eclipse ?
I download the ij150-linux64-java8.zip.
I have linux on my PC and I don't know hot to configure eclipse to support ImageJ plugin.
And if you have a simply code example please share it with me :D
Is necessary to install another library or another plugins?
Please share with me link for download correct version for ImageJ and another plugin if is necessary;
All ImageJ components are Maven projects. You can simply import them using File > Import..., then Maven > Existing Maven Projects.
Also, if you only want to develop (or contribute to) a plugin, it is not necessary to import the ImageJ source code, as Maven will take care of managing your dependencies. See the example-imagej-command and example-legacy-plugin projects on github for starting points to develop a new plugin.
For detailed documentation, please refer to the ImageJ wiki page on Eclipse.
If you have more ImageJ-related questions, I recommend asking on the ImageJ forum.

Migrate an existing java (libGDX) project and git repository from eclipse to IntelliJ IDEA

I'm a Java and Web developer.
After using eclipse for 5 years, I decided to at least try to migrate my currently active projects to the JetBrains IDE.
Mainly because of the new features for Android Studio that have been announced at Google IO 15 and I feel that it might be better for me to familiarize myself with it in general. Just in case the support for ADT in eclipse is dropped by Google at some point.
I also noticed that the Laravel (PHP framework) integration is pretty good for IntelliJ, which would come in handy for some of my planned Web projects.
The Java project I'd like to migrate is more specific a libGDX game which has a git repo.
So my question(s) are:
Is it possible to convert the project from an eclipse project to an IntelliJ project, without loosing the git repository?
Does anyone have got experience with this?
Does anyone know if there will be issues with files generated by the libGDX setup tool?
Thanks in advance
Edit: I know that there is an import option for eclipse projects to convert them to the IDEA structure, but I'm not sure if that will also handle git.
First of all, you could just try it, IntelliJ won't delete you anything. You could even use both IDEs on the same sources.
If you create a project or module from a directory which is versioned (e.g. contains .git), then IntelliJ will automatically pick it up, so you can use it.

Google app engine: maven or eclipse google plugin

I'm new to Google App Engine. To use Java App Engine, there are two options provided by Google: create a Maven project, or non-maven project backed by Eclipse Google Plugin. According to the doc, Eclipse version is easier. So should I go ahead with Eclipse? But I have seen lots of posts about maven. Could anyone comment what the pro/cons of using Maven are.
Thanks
Although you might want to try our first with the Eclipse plugin, Maven is the way to go in the long run because :
It is designed to enable collaboration between developers, ensuring everyone uses the same libraries and the same build process
It works with any serious Java IDEA, not only Eclipse. If you or the people you work with use IntelliJ, Netbeans or anything else Maven will help harmonize everything
It allows you to do Continuous Integration . Especially since now this comes bundled with App Engine via push-to-deploy. Push-to-deploy is great because it allows you to do debugging in production from the admin console. But you need to use Maven for it to work.
In conclusion, use the Eclipse plugin for your first quick-and-dirty tutorial or test project. But then learn Maven to make a real project.

Is there a good way to add Equinox source to Eclipse to help debugging an OSGi bundle?

I am banging my head against a mess of JNI code and DLLs that we are trying to shoehorn into an OSGi bundle. It has been particularly hard to get good debugging info out of the system and I have spent too much time stepping through raw byte code trying to infer what is happening inside equinox--when I really don't care--I am just not getting useful errors out. It would be great if I could have easy access to the equinox source in the debugger to see why and where it was loading what.
The simple answer of downloading all the source and building my own Eclipse would be one solution, but it feels very heavy handed. Is there a "grab source" repo I could go to and install from or some such thing?
It just feels like there should be an easier way to go about this. Something akin to using the debug libraries or installing the SRPM in another situation.
Eclipse ships with source by default, look for *.source in the plugins folder, it could be you just need to set up the source path in the debugger.
If you actually don't have the source, getting it will depend a little on what version of eclipse you are running. For Galileo or Helios you can try going to Help -> Install New Software. Work with the Galileo (or Helios) repository. Uncheck "Group items by category", in the filter type "source". In particular, most of the equinox source will be in "Eclipse RCP Plug-in Developer Resources".
Alternatively you can also go to the Equinox download page and get the Equinox SDK which has the source.

Categories