I'm learning how to develop plugins for eclipse, and I'm trying to add a menu item to a context menu. That sounds simple enough, and in the "New Plugin Project" wizard, several templates are given, one of which creates a new item in the context menu.
The problem is Eclpse's own templates contain deprecated code. How can I learn how to develop proper code if even the provided templates use deprecated structures? Are there any templates out there which use modern structures like MenuContributions instead of deprecated structures like ActionSet and PopupMenus?
For the record, I am using the latest version of Eclipse SDK, Indigo 4.2.1.
There are no templates for the command/menu API.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=194669
A good tutorial on commands is:
http://www.vogella.com/articles/EclipseCommands/article.html
Related
I have been working with Eclipse RCP for over a week now, and I've now been given an Eclipse plugin written in 3.x, which I need to migrate to 4.x. I'm using a book called Eclipse 4 RCP by Lars Vogel which has a small section on this, but I can't for the life of me figure out what I'm to do.
I'm trying to do this throught the use of the compatiblity layer. It mentions to add a couple of features for this (org.eclipse.rcp, org.eclipse.emf.ecore, org.eclipse.emf.common) and your ready to go, but I don't exactly know what I'm to do here. Like do I add these to the existing product file of the 3.x plugin I've been given, or do I create a separate e4 project and point to that. Many of the tutorials I read are a bit vague with the details and its a shame there's no proper step by step guide for beginners with this. Any help would be great.
Probably, you should be creating a separate e4 plug-in project for this. And where you have to configure your extensions/extension points in e4 ways.
Basically, like creating a new project.
If you want to migrate your Eclipse 3.x RCP application to the Eclipse 4 programming model, you can't directly reuse existing plugin.xml based user interface components, e.g. Views or Editors based on the definition in plugin.xml .
Components based on the plugin.xml file must be adjusted to avoid inheritance of Eclipse classes and to use the programming model based on #Inject . They also must be contributed to the application model.
Components which are not directly based on the plugin.xml file must be adjusted if they use Eclipse 3.x singletons, as for example Platform or PlatformUI , to access Eclipse API
you may want to take a look at this page: https://www.eclipse.org/community/eclipse_newsletter/2013/february/article3.php
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.
Eclipse offers a plugin, which displays the abstract tree view of Java projects. After installing the plugin, the view becomes available. http://www.eclipse.org/jdt/ui/astview/index.php
Is there such a functionality / plugin also available for the Netbeans IDE? I didn't find an answer in stackoverflow. The results in Google dealing with AST in Netbeans are somewhat old (2007-2009).
I know that there are standalone tools which display the AST and also other IDEs which are more useful, if such functionality is required (like IntelliJ Idea).
My question is Netbeans-specific - if this is not possible with Netbeans (without using other tools) a simple "No" will be enough! I am using Netbeans 7.3.
Did you look at these ? It is more recent (2012).
http://netbeans.dzone.com/nb-javac-ast-visualization
https://bitbucket.org/crazyjavahacking
The dev builds of NB already contain such a view in the navigator. Not pretty but it works
I'm trying to create an awt and an lcdui custom component visual designer plugin for Eclipse or NetBeans. Drag and drop functionality should be supported.
I have already found this http://wiki.netbeans.org/JavaMEComponent_VDComponentProject but I get some errors on the way and cannot complete the whole process described.
Any other links for Netbeans case?
I haven't discovered anything concerning Eclipse. Any links please?
Google donated WindowBuilder pro to Eclipse, and it was available in the Indigo release (June 2010). See http://eclipse.org/windowbuilder/ and WindowBuilder Pro>Quick Start.
WindowBuilder comes with a set of toolkits already code that can be installed (Swing, SWT, eRCP, GWT). They are pluggable, so depending on your usecase you might be able to extend one of the existing toolkits or write your own (there must be docs for that somewhere :-)
Are there any widely adopted, currently maintained Eclipse plugins for working with Apache Wicket projects? If so, where are they? Who maintains them? What do they do?
Take a look at Qwickie (eclipse plugin): https://github.com/count-negative/qwickie
The standard used to be wicket bench, but it has been discontinued and you can find a fork named stump.
I don't know stump, but wicket bench mainly had a refactoring listener (if you rename a java class, the HTML is also renamed) and some wizards (create a Panel with associated markup etc).
I haven't used bench in years, as it was rather buggy in newer eclipse versions. But I have made pretty good experiences using a custom set of eclipse HTML templates that you can download from this location: http://www.wicket-praxis.de/blog/wp-content/uploads/2010/01/wicket-template.xml
(German) description on this page: http://www.wicket-praxis.de/blog/download/
You can install these as HTML Code Templates in Eclipse:
Window -> Preferences -> Web -> HTML Files -> Editor -> Templates -> Import...
and that will enable wicket-specific template shortcuts in the HTML editor.
It's too bad you don't use IntelliJ IDEA. It has an excellent plugin called WicketForge.
Not right on the question, but not completely off it, either.
I have released a tool that can be used as an eclipse save action. It generates Java interfaces with constants for ids in wicket templates and resource keys from translation files, so that you don't need to use strings for component ids and translation keys, but can use these generated constants.
It can be integrated in eclipse quite simply as an annotation processor. After a save of a component the interfaces will be generated and built. See its readme:
https://github.com/neurolabs/wicket-id-bindings-generator
I'm maintaining it on github (feel free to fork/contribute) and am using it in all of my wicket projects.