What's new? | Help | Directory | Sign in
Google
                
Search
for
Updated Dec 10, 2007 by james.strachan
JFace  

UFace supports Eclipse based JFace and SWT APIs for making Eclipse plugins or Eclipse Rich Clients via the RCP.

UIComposite

To be able to create widgets with UFace you need to get a UIComposite to represent the Panel you are gonna add widgets to. You can see this in action in the examples in the org.ufacekit.ui.jface test area.

You can create a UIComposite as follows in your JFace application.

Shell shell = new Shell();
shell.setLayout(new FillLayout());
UIComposite root = new SWTComposite(shell);

// now I can create some UI components
UIFactory factory = root.getFactory();
factory.createTable(root, ...);

Sign in to add a comment