JFace examples in Eclipse like SWT Examples? - eclipse-rcp

Are there any all-in-one JFace controls example out there like the SWT Examples in Eclipse? Searching (googling and searching here on stackoverflow.com) did not help me.
It would be nice if it was a standalone app or an eclipse plugin.
Thank you.

Aside from the SWT JFace examples and introduction courses, you have some projects based on JFace controls:
JFace Data Binding
CellLabelProvider TreeViewer example
Nebula project
Nebula is a place where different Eclipse-Projects and Independent developers collaborate on building Custom SWT widgets and reuseable UI-Components useable in UI-Applications built using SWT and JFace.
RCP Forms Plugin
The framework tries to hide some of the complexity of developing forms from you; as with all frameworks there might be points in time where it just does not work and you have to dig deeper into the secrets of SWT, JFace, UI Forms or Databinding

http://wiki.eclipse.org/index.php/JFaceSnippets

There is no all-in-one showcase example, but individual samples are available in the Eclipse CVS. You can check out the org.eclipse.jface.snippets project from the Eclipse CVS repo (WebView: http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.snippets)

Related

Eclipse e4 migrating 3.x plugin to 4.x?

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

Integration of Xtext DSL editors and e4-based RCP

I am working on RCP application for editing dsl files.
For now I managed to create two editors using Xtext 2.5 that works fine in Eclipse (validation, cross references, etc.). Also there is e4 based RCP application skeleton with custom navigation tree (files are loaded from remote server not from local workspace).
Now I have to integrate those both of them. Unfortunately I didn't find any up to date tutorials about this topic that works for my case.
Here are links that I tried:
This blog post describes integration for Eclipse 3.x
This one about e4 but version of Xtext is less than 2.5
Here is a lot of information about RCP but I didn't found anything about plugins integration with RCP.
There is similar question but it is not clear for me how to use obtained editor or how to get resourceProvider instance.
Does anyone have a reference to the relevant tutorial or sample?
According to Eclipse bug 401309 and various comments in the Eclipse forums XText editors are not compatible with a pure e4 RCP because they rely on lots of code from the 3.x compatibility layer.
You can still create an Eclipse 3.x style RCP, as described in your second reference.
I have added a comment to Bug 401309 where I describe how to make it work.

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

Need good material on SWT layouts

I am learning SWT and I am in need of some good material on SWT layouts. Anyone have some good material or links for SWT layouts? Thanks for any help
The Definitive Guide to SWT and Jface by Robert Harris is pretty good and explains all of the basic layout in a useful ways with lots and lots of examples.
Using WindowBuilder can also help a lot, as you here see - in real-time - the consequences of your UI decisions...
The absolutely best it to try and try again...
There is really no reason not to use MigLayout. It's the best layout manager for "hand-made" GUI. Very powerful, easy to understand and use.. There is version for Swing and SWT as well..
MigLayout website
The best way to learn SWT and its layouts is trying things out yourself.
But I recommend the following ressources for a start:
The noteworthy SWT tutorial on Zetcode
Furthermore the eclipse / JFace / SWT section on java2s
Last but not least the official SWT homepage with its examples and if you like its widget page with links to javadoc and code snippets

Eclipse form based XML editor

Can anyone suggest me some reading for creating Form based editor in Eclipse?
The right Google term would probably be "Eclipse Forms", and there are a few articles available:
Eclipse Forms API - Tutorial
Revitalize your applications with Eclipse Forms
Eclipse Forms: Rich UI for the Rich Client
Also, in general a good place to start searching for Eclipse material is http://www.eclipse.org/articles/