Is it possible to create an extension or plugin for Eclipse that gives support to a specific language? Where i can find information about that? Also, can i repackage Eclipse, along with that plugin, and distribute the new package, just like PDT, for example?
Have a look at this page:
http://wiki.eclipse.org/The_Official_Eclipse_FAQs
There is a section "Implementing Support for Your Own Language" at the bottom of that page.
You should definitely have a look at Xtext which allows you quite easily to get first grade ide support for your own langage.
http://www.eclipse.org/Xtext/
It's possible. In fact support for specific languages is implemented as plug-ins. See eclipse platform plug-in developers guide and then search for details. Or look for some book like eclipse plugins.
You can repackage and distribute new package. In fact eclipse license gives you more freedom in this than for example GPL.
Related
My friend and I were searching for already built-in features in Eclipse or plugins that allow you to develop code in a group, or to be more specific, in a pair.
I found only a single plugin that provides such features, however it is quite hard to install.
Are there any simple solutions for Eclipse, or should I use a different editor?
You could use Git/GitHub or a similar form of version control. I am pretty sure Eclipse has built in support for Git.
In order to modify an eclipse plugin, what are the steps to find its editable code ?
I read and debug source provided with eclipse distribution but to try a fix in org.eclipse.jdt.internal.corext.codemanipulation behavior I need to make it editable.
Well, the source repository is available at eclipse.org, the plugin compiled with the source should be available from the standard eclipse update site.
I'm guessing you are considering changing the source, recompiling and using your plugin instead of the standard one? There is a different way to change functionality, its with fragments. For example, look at a question I asked earlier, follow the links in my text and Andrews answer for more information.
Groovy seems to fix a lot of the things I dislike about Java, and I was wondering if it would be possible to actually write an Eclipse plugin in Groovy instead of Java.
Does anyone know if this is possible, and if so how to go about it?
I've just found a blog entry which says it's not officially supported but is actually possible.
Not yet tested to see if it works, but it seems promising:
Writing Eclipse plugins with Groovy, by Jörn Dinkla
#Peter, I do not think that the blog post you linked to is complete or if it will really work. It is pointing to the old version of Groovy-Eclipse, which is no longer supported and is out of date.
Yes. It is possible to create your own plugins in Groovy.
First, install the Groovy-Eclipse plugin from here:
http://dist.codehaus.org/groovy/distributions/greclipse/snapshot/e3.7/
Then you can create a new plugin project and add the Groovy Nature.
Remove the Groovy Libraries classpath container
Instead, add the org.codehause.groovy as a required bundle
Create your Groovy code as normal
Now, the tricky part is exporting the plugin using PDE. See this blog post for how to do that: http://contraptionsforprogramming.blogspot.com/2010/08/groovy-pde-redux.html
One important thing to note is that you will need at least one Java file in your project for PDE to compile anything, It can be a dummy, empty file (this is a bug that has not yet been fixed).
Rejoice!
As an example, here is the codenarc Eclipse plugin that was written completely in Groovy:
http://sourceforge.net/projects/codenarceclipse/
You can also use JRuby, or Javascript ...
JAM Circle is a great example showing how to make great use of a scripting language in an Eclipse plugin, by allowing the end user to write his own actions and load them at runtime.
There's a proxy-like plugin that allows you to implement the plugin virtually in any language that supports JSR223 (javax.scripting)
Is there some kind of Checkstyle plug-in for Eclipse available for ColdFusion.
There aren't really any coding specifications for ColdFusion. Sean Corfield wrote one for Macromedia's internal development departments that some folks use, but there really isn't a set of coding conventions and rules that the community adheres to. Thus, there is no plugin to test that your code follows those rules.
That said, if you have standards that you prefer/enforce in your company or team, then you can use the code formatter in ColdFusion Builder 2 (still in public beta, at this time) to quickly check/update source files.
You set the formatting guidelines in the Eclipse preferences, and then you can run the formatter from the menu: Edit > Format (Keyboard shortcut: cmd/control + shift + F)
I search around a bit for cf specific Checkstyle tool, no luck. I think since CF is a tagging language as much as a scripting language, it lags behind in tools like this. You could check out the coldfusion specific eclipse plugin, it may have some of its own type checkstyle functionality.
http://cfeclipse.org/
Hoping this is still relevant to someone...
Long time ago, I've tried an approach using checkstyle regexp tags.
I wrote a blog post, check if there is any useful hint:
http://rcastagno.blogspot.it/2009/09/checkstyle-50-regexps-and-eclipse.html
There is a static code checker, written in ColdFusion, FOR ColdFusion. see https://github.com/wellercs/CodeChecker. There is also a linter that can plug in to Eclipse or ColdFusion Builder, called CFLint. See https://github.com/cflint/CFLint for that tool.
So CodeChecker is a stand-alone application and CFLint may be used, as I remember, stand-alone or as a plug-in to a number of IDEs.
You can easily add rules and guides to CodeChecker, I haven't tried with CFLint.
Is it possible to create Eclipse plugins/program Eclipse RCP apps without Java? (preferably in Jython)
This will be possible in the next Eclipse major release e4:
One of the goals of e4 is to provide support for writing plugins in other languages.
The quote is from http://wiki.eclipse.org/E4/JavaScript which summarizes the current state of using javascript to implement eclipse plug-ins in e4.
This issue in eclipse's bugzilla issue #227058 also has some discussion on that, but I believe it is outdated.
I am currently not aware of activity regarding other languages.
No. An Eclipse plugin is an OSGi bundle, and that requires interacting with a variety of things that can't implemented in Jython as far as I can see.
If you want to avoid Java, you can look at other things that target the JVM, but you will have to figure if you can produce and consume the specific items needed to call the necessary things and be called in the necessary ways.
OSGi bundles may be written in other JVM languages like Scala. Eclipse plug-ins, as of now, does not support any language other than Java. The Eclipse Plug-in Development Environment heavily makes use of JDT which ties it to Java. However there are some plans I heard that plug-ins might be supported in other languages. But I don't see that coming in near future.
You can write your main code in Jython and use Java interfaces to call then from Java. Take a look at this for details. Also, I am writing a utility library (github.com/abhin4v/jywrapper) to do the same. It has very little documentation right now, but you can look at the examples provided.