cant find the create custom widget in the new project - eclipse

i am new to vaadin and i have installed vaadin eclipse plugin and i cannot find the create custom widget in the File->New project->vaadin
and i cant find create themes etc ..as i see these things in the tutorial video and i cant find the visual editor also in the eclipse and i am using linux (operating system)

Check that you have installed the experimental visual editor like described on http://vaadin.com/eclipse. You can first create a Vaadin project from File->New project -> Vaadin project. You could also try to install the unstable version of the plugin from http://vaadin.com/eclipse/experimental (open URL with Eclipse plugin installer) if the stable one does not work.
Then you can check out the manual on http://vaadin.com/book/-/page/gwt.eclipse.html to get an idea of how to create a custom client side widget using GWT. This is practical if you wish to get some new client side behaviour not found in any existing widget(s).
However, if you just wish to have a new component without any new client side behaviour, you could extend the CustomComponent on the server side (in plain Vaadin, without making GWT components), add some custom logic and perhaps combine a number of existing components to be included. This composite CustomComponent can then be used in code as any other Vaadin component.

Related

How to create Eclipse GWT Designer Project, something is off?

After downloading the latest Eclipse (Luna 4.4.1), I installed the GWT / GWT designer plugin.
I concluded I that I am missing WindowsBuilderPro, and so I installed it via Eclipse Help->Install New Software.
Now I want to create a new GTW Designer project, and get the following choices, which I think are wrong:
Tutorials, perhaps older, show the following project choice:
Is my installation messed up? I reversed the installation order, and nothing changed.
Is GWT Designer out of date, should I no longer be using it?
I'm a bit more confused based on your answer (Phil). I found this presentation:
The Future of GWT, 2013 Report
and it shows:
Does GWT Designer still exist (2014) as something separate from UI Binder (I don't really want to do any HTML)?
If not, do I need the WindowBuilder plugin for UIBinder?
You don't directly create a GWT Designer project. Create a "Web application project" as displayed in your first screenshot. Then create a new "UiBinder":
It will create two files: one java file and one .ui.xml file.
When you will open the .ui.xml file, you will have two tabs at the bottom of the window: one for the code, and one for the graphic designer:

What type of Eclipse 4 customization should I choose - Application or Plugin?

I would like to create an Eclipse 4 customization, but I'm new to this aspect of Eclipse development.
As a result, I would like to ask the community what they would recommend based on the following requirements for an SDK-style custom component/project:
show up as a new project type with it's own Wizard
the wizard may use some of the built-in java source/path dialogs, but would also provide some custom dialogs of its own
based on the user selection, the wizard would generate starter code from some template(s)
once the project has been created, it will be similar to a Java project. IN FACT, I would like to allow someone the ability to compile select java code into different jars if they want - all within this one project
finally, when in these new project types inside the project explorer, I need to be able to execute custom commands (with UI support) - such as "Prepare Custom Extension", which will create JARs (if applicable) and copy all relevant source/folders into a prep location, then zip it up
Thanks and let me know if I need to clarify anything!
Bob

Finding out the source files of an Eclipse (Java EE) functionality

I want to look at the sources of the "New Web Service Client (from WSDL)" functionality. I thought it was the Axis 2.0 ws Code Generator plugin, but it is not, it's another code generator and I can't figure out its name or where is it located in eclipse sources.
Any hint on where should i look for?
EDIT: using ALT+SHIFT+F1 I found out the "contributing plugin" to the wizard I'm interested in is org.eclipse.wst.command.env.ui, but i can't find the source files of this package...
There is a neat tool in Eclipse for checking where a particular piece of functionality (such as a wizard or a view) comes from. Just focus on what you want to check and press ALT+SHIFT+F1. You will get a popup with information about your selection, including which plugin contributes it.

Create awt and lcdui custom component visual designer plugin for netbeans/eclipse

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 :-)

How to make a new Eclipse project template?

I am using a kind of framework where every time I make a new Java project. I have to arrange the files in the appropriate packages and reference the appropriate external JAR libraries. How do I make a new project template like in the New Project dialog under a new folder?
I've just done a bit of research on this for our own nefarious purposes, and found the answer.
You need to create an Eclipse plugin that uses the org.eclipse.ui.newWizards package. You can define your own category or use an existing one once you find the category ID. To create a new project wizard rather than a new resource wizard, you need to set the "project=true".
Also, your plugin must contain a class that implement org.eclipse.ui.INewWizard. Clicking on the class link from the plugin.xml editor will do the trick.
That class must do all the work in the performFinish override, and must return true to indicate that it actually did its thing and the wizard can close. This is where you create files, directories, set natures, and so forth.
You need to write an Eclipse plugin for that, and concentrate on New Project Wizard.
Writing Eclipse plugins is covered in Stack Overflow question How to write a plugin for Eclipse?.