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

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:

Related

Barcodes in PDFs generated by BIRT

I'm trying to simply include a barcode in a report generated by BIRT.
Here's what I have:
BIRT Runtime 4.4.2
Eclipse BIRT Project 4.6
Eclipse Neon.3 Release 4.6.3
First I tried to simply set the font on a standard text item. This works fine in the designer, but when the pdf is generated, the text item just shows the text in the standard font, not the barcode font that I set in the designer.
I have also tried plugins from these guys:
OnBarcode.com - I was using Eclipse 2019-11 but the Barcode item didn't appear at all in the pallete when editing a report. I had to go back to Neon to get the item to show. I was then able to ad a barcode item into the report and save the report. Then when my server code tried to generate a barcode, BIRT just crashed.
BusinessRefinery.com - Even in Eclipse Neon the Barcode item didn't show in the palette. I couldn't do anything with this.
I know where the plugins folder is in my Eclipse, so I guess it's just a versioning issue somewhere with teh plugins. Also I can see that the plugins are stored in a completely different place in Eclipse 2019-11 so it's no surprise that the two plugins I mention above don't work because I would guess that the plugin architecture has changed.
I would love to hear from anybody who has achieved either of these two:
Got a non-standard font to appear in a pdf generated by BIRT.
Got a barcode plugin that works with the versions of BIRT and Eclipse that I mentioned above.
Thanks in advance.
We are using the Java libraries from ID automation and generate images on the fly by using the Java libraries with Javascript from inside BIRT.
This is not as elegant as a plugin, but it works fine.
For QR-Codes, we are using Google's ZXing library in a similar way.
I've been using this PLUGIN (source code): https://code.google.com/archive/p/birt-barcode-extension/
It's not very sophisticated, but you can insert / EDIT the barcodes on the template with a "default" preview.
It relies on ZXing (you must get it from GITHUB)

How to create Eclipse RCP application that behaves like a wizard?

I want create a installer by using Eclipse RCP. I need to give the user a wizard-like installer. This means user can do some options then click next. Or they can go back to previous page by click previous. Or they can cancel the installation by clicking cancel.
Here is my problem:
I don't know how to switch between views when clicking "next","previous". I need to create something like WizardPages and i can change between these pages?
I can't use JFace wizard because I'm required not to pop up any dialog.
I'm totally new to Eclipse RCP so please help!
thanks.
Maybe "StackLayout" is what you need.
Consider whether you actually want/need Eclipse RCP in this context. Eclipse RCP shines in complex applications with an extensive business domain and complex user interface.
An installer wizard, however, is very straightforward and static. I cannot imagine you requiring more than two or three user inputs. Your question is a bit like "I want to hear beautiful music. How do I program a robot to play the piano?"
It is much easier to limit yourself to using SWT and JFace. Use the JFace WizardDialog to make a nice installation wizard. You will find you will have never needed the Eclipse RCP framework.
See http://www.vogella.com/tutorials/EclipseWizards/article.html for a nice tutorial.
If you do think you need the features of the Eclipse RCP runtime framework, I suggest you follow the path below instead:
Create an RCP application (e.g. the sample 'Mail' application). A class will be created that is the main entry point in your application. This class will launch the Eclipse Workbench. Delete this code, and instead launch the WizardDialog.
A lot of things will not be available, such as menu's, views with drag-and-drop functionality, keybindings, etc. I cannot imagine you will need those things. However, you will benefit from the following Eclipse RCP features:
Eclipse launch framework. Ability to create a self-contained product including the JRE.
OSGi framework. Ability to easily add new plugins. Ability to use services, blueprint, etc.
JFace framework.
EMF (if you have a very complicated installation wizard)
All other eclipse plugins, although a lot of them may not work outside of the context of the Eclipse Workbench.
If you are convinced you need the full Eclipse Workbench, you can always do the following:
Define a 'base' perspective that is 'locked down'.
Use a Command to move from one perspective to the other. This will allow you to keep the previous wizard views open in other (hidden) perspectives.
Use Eclipse Contexts to hide all the standard Eclipse Workbench functionality, menu's, etc.
Since you are new to Eclipse RCP, I do not recommend learning the framework in the particular usecase of an Installation Wizard. You already need good knowledge of Eclipse RCP to be able to hack it this way, and it will not be a clean or nice implementation :-)

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

cant find the create custom widget in the new project

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.