How to write a plugin for Eclipse? [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
How can I start writing a plugin for Eclipse?
I've looked for documentation, but unfortunately there is very little or it's poor, so what articles can recommended?

There are some pretty good resources and tutorials on the main Eclipse and IBM's site. One of the best ways is to pick an open source plug-in that has some similar features to what you want to do and start to dissect it.
PDE Does Plug-ins
Plug-in development 101, Part 1: The fundamentals
Eclipse Plugins Exposed, Part 1: A First Glimpse
Developing Eclipse plug-ins

Eclipse has a pretty good "Your First Plug-in" tutorial. If it is confusing, I'm sure they would greatly appreciate your feedback. Keep in mind that Eclipse is essentially Java, so if you don't have a good grasp of Java go for general Java tutorials first, and then come back to Eclipse development.
O'Reilly has two good Eclipse Plugin tutorials:
Eclipse Plugins Exposed
Develop Your Own Plugins for Eclipse
They not only go through the simple code examples, but give you screen shots of the process since a lot of work is done through wizard type interface windows.
If these aren't helpful, perhaps you could be more specific as to what is difficult to follow.
-Adam

The best step-by-step that covers almost every aspect of plugin development is the book "Eclipse: Building Commercial Quality Plugins".
It's available at most book shops and electronically at safari:
http://safari.oreilly.com/9780321574435

I found a great Eclipse plugin tutorial named Extending Eclipse - Plug-in Development Tutorial.

I think a very good resource is also to look at the examples that are available via the new Plug-In Project wizard.
Depending on what you want to provide with your plug-in, you can choose from editor plug-ins, view plug-ins, plug-ins that provide a property page (just to name a few) and see how they're built and what extension points they implement.

Related

Why Eclimd over Eclipse? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I was looking for java plugin in Vim. Yesterday I came across Eclimd. After going through the guide to install Eclimd from http://eclim.org/ I am able to run eclimd.
For running eclimd, eclipse is required and has to run as server.
My question is, why to run eclimd over eclipse? What gains do eclimd over eclipse give?
Also, (it's been only few hours that I have used eclimd) it seems Eclipse is more friendly.
Could anyone suggest reasons for the preference of eclimd over eclipse.
Vim is much better at text editing than Eclipse, even with a Vi-emulation plugin.
Eclipse is much better at understanding your code and interacting with the Java toolchain than Vim, even with all the Java plugins you can find on vim.org.
Eclim is a way to combine the distinctive powers of Vim and Eclipse. If you don't care, by all means don't use it and keep doing what you did before.
Vi doesn't have features for auto complition or code validation afaik for any programming language. It does provide syntax highlighting capabilities , but that's all.
Eclipse provides these features to Eclimd.
Eclimd is a client to Eclipse, that's why you can't run it without eclipse.
I hope that clarified it.
BTW: Eclipse does its syntax checking by running the javac (when used for Java programming),
while vi(m) usually doesn't support direct calls to other tools in its extensions.
But if you are focused on Java Development, you should, imho, use an ide. Eclipse is a good one, there are others such as JDeveloper oder Netbeans.
That's not only because the clear structure of projects, the integration into the build process but also because due to the different stages a Java - Project usually has.
It often starts with a desigining period, where you model your application in UML.
While developing, automated functional test will usually be developed, too, they should be designed also. After that there come the integration tests. Most ides suit much better for this when a vi - plugin could.

Developing Desktop Application using Java [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I was figuring out on the net, how to create a desktop application with Java. I found I can do it through NetBeans IDE. Is there a better IDE?
Can you suggest me a suitable eBook for learning Java NetBeans?
There are three major IDEs for Java:
NetBeans - https://netbeans.org/
Eclipse - http://www.eclipse.org/
IntelliJ - http://www.jetbrains.com/idea/ (This one is a commercial product.)
Pick your religion.
Actually, you can create desktop application with Java Swing GUI Toolkit, which is a part of the Java JDK, regardless of the IDE. #Lee Meador gives you some to choose from.
Here is a tutorial on making a simple desktop application with NetBeans.
There are also tons of YouTube tutorials for beginners. Search for "Java tutorials" and you'll be all set.
IDE preferences are fairly subjective. Netbeans is not bad. Eclipse is also a good IDE. My favorite one, though, is IntelliJ IDEA. They have a free Community Edition which lets you do a lot of things, but I paid for it to get full functionality.
As far as eBooks for learning about the IDEs, I would suggest just looking on the website of whatever IDE you end up choosing.
Here's how I see things when it comes to IDE's:
NetBeans is fantastic for beginners, but the code it generates for the Swing WYSIWYG editor looks like absolute garbage. If you're okay with keeping the code in NetBeans and not worrying about how the code for you GUI looks, it's an excellent way to go if you don't feel like hard-coding Swing.
Eclipse is a very professional and powerful tool, but it's a bit daunting at times as well, and it's not quite as quick and easy to get things up and running. It has no built-in drag and drop Swing editor (although Google provides an excellent one called the Google Plugin for Eclipse) but it's got far and away the most powerful debugger I've ever used.
I don't know a lot about IntelliJ other than that it's also a good choice for beginners and professionals alike, but I haven't seen as much community support for it. That may just be because I've been an Eclipse die-hard for ages, but that's just how I see it.
What's more important than your IDE choice is that you figure out early on how to use it to its full potential. All three are excellent pieces of software, and all three will help you do whatever it is you want to build. But they can only help you if you learn to use their organizational tools, their editor/template options, their respective debuggers, etc. Honestly, I would say if you have any friends that are Java developers, choose whatever they're using at least for now so you have someone to go to when you don't understand how to use a particular option.

Looking for (free) Java code editor (IDE) for Windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Not to be open-ended I will list my requirements.
Must have native UI (or at least .net the backend can be Java I don't care)
Must work with Ant (basic functionality is enough, as long as it shows Ant's output and double-clicking on [javac] errors inside ant outputs jumps to the referenced line)
Must have code completion (including my source code and third party .jars, no just JFC classes)
Extras (function which would help a lot):
Showing my classes and methods in a treeview
Alert for undefined symbols before compiling
Unicode support
Some form of integration with javadoc style documentation (reading JFC and other on-line documentation which was made by javadoc)
I think these are pretty down-to earth requirements.
Why don't you just use Eclipse? Then you could've listed about 200 more extras in your requirements...
Eclipse?! http://www.eclipse.org
Eclipse IDE is the best free Java IDE that I have used.
Visual J++ was an IDE from Microsoft that was shipped with Visual Studio until it was discontinued a few years ago. You might be able to get your hands on it and it should be able to follow your requirements to a certain point, but it is a discontinued product. (I don't think you mentioned it has be free.)
There has been Borland's JBuilder and possibly several other IDE's but I do concur with previous posters that Eclipse, Netbeans or IntelliJ will most likely do the job very well.
There's also Oracle's JDeveloper but since it's been rewritten I think it's also written in Java.
The only requirement that will be hard to meet is 'must have native UI'.
I long for the responsiveness of a native app
I doubt that you would settle for an online IDE then :-)
Googling for 'native java IDE' brings up (among others) Optistic. Might be worth a visit.
Lots of choices but not so many 'native UI' ones. Good luck making the right choice :-)
All the most popular IDEs should do what you have listed and a lot more. I prefer IntelliJ CE which is more productive for me. Eclipse and Netbeans are also excellent free IDEs.
In terms of screen update, I use a 2100x1600 window, sometimes locally and sometimes via VNC on our LAN and screen update speed is not an issue. Sometimes I have projects with a total of over 10,000 classes open. ;)
Update: I now use a 4K screen with over 30K classes in project with IntelliJ.
That would be either Netbeans or Eclipse if you are looking for something featurefull with nice graphical stuff, of vim or emacs if you are looking for something slimmer (with a much steeper learning curve)

General purpose build tool with good Java support? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I really need an easy to use build tool which supports multiple languages with strong Java support. I have tried Scons but found the Java support lacking. Is there anything else out there? I'm not excited about learning yet another build tool. Also, I really don't want a build tool which is difficult to use without an IDE since I use emacs and will be writing the build scripts by hand.
Edit:
When I said general purpose I meant a build tool that works with many languages. I'd like to save myself the time spent learning a new build system for every languages I use.
http://ant.apache.org/
Here is how to do C++ projects with Ant: http://www.codemesh.com/products/junction/doc/ant_cpp.html
Or http://ant-contrib.sourceforge.net/cpptasks/index.html
Ant, Maven, and Gradle all are designed for building Java applications.
EDIT: Let me expound....
Ant is a really good option. As the first very good open source java build system, it has grown to be a popular and widespread option. Most anything you will do in a typical java system has been done through Ant. You can find sample after sample and great tutorials on learning this. Now, just because it can handle everything doesn't mean it's quick and painless. There's a lot of 'boilerplate' build.xml that you almost certainly will be writing. Also, there is no dependency management.
Enter Maven -- Dependency management is handled very well here. Merely specify the name of the jar(s) that your project depends on and it will ensure that you have the appropriate version. Also, the help and tutorials available are very good and you can be up and building in 5 minutes.
Gradle -- this is a newer build system, built to take out most of the pain points and boilerplate code. This is a great option if you are interested in using/learning Groovy!
I would recommend ant. I used it for a java project and it worked great. But we had help from a person experienced in writing the build scripts so I don't know how easy it is.
I recommend Hudson as a general build management solution. You configure jobs and we point it at our revision control system to watch for checkins. It has strong java support, but can run any job as the build process, including chaining of jobs together.
Ant.
Most java online tutorial use Ant as build tool. You can find how it works by reading java tutorial.
You don't have to learn every single command in ANT, just learn a few which are useful :)

Best Eclipse version for Java development [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
There are many editions of Eclipse for Java development. I am trying out MyEclipse and am pretty impressed with the out-of-box experience. Before I get too comfortable with it, I would like to find out if it is the best edition available. Feel free to list free or commercial packages, but for the sake of other readers, please mention if there is a cost.
Considerations
I am mostly concerned with the code editing experience. Here is a list of some factors that would affect my decision:
Extensive support for refactoring
Code suggestions (like suggesting refactorings)
Easily configurable keyboard shortcuts
Easily configurable colours (I use dark colour schemes, and setting this up with MyEclipse was hell; that said, I only really need to do it once)
Excellent debugging support
Source control plugins (SVN or git if one exists)
Don't care about GUI designers
I am aware that there is a thread discussing the best IDE for Java development; however, most of the responses do not detail recommended editions of Eclipse.
I'm always just downloading classic edition and just add plugins I need. That way I keep Eclipse as lean as possible.
all of the above except the color stuff works great with vanilla Eclipse 3.4 + Subclipse. if you find an easy way to customize colors in Eclipse, please let us know.
Until then you're stuck with having to manually change each color.
Actually almost all the things you mentioned are present in the plain old "Eclipse IDE for Java Developers" (85MB) at eclipse.org. It has a much smaller footprint than some of the others like MyEclipse. You'll need to install an SVN plugin, though.
Agree with Marko and Epaga
I have Eclipse 3.4 (Ganymede) with following additional plugins (links are the update site URLs):
Subclipse for Subversion
Spring IDE for Spring. Favourite features: Advanced spring xml completion and bean visualisations.
m2eclipse for Maven. Favourite features: transitive dependency tree and graph visualisations.

Categories

Resources