Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » No root methods found(Error when using WindowBuilder in RAP Application)
icon5.gif  No root methods found [message #1719642] Sun, 10 January 2016 22:36 Go to next message
Daniel Pmrehn is currently offline Daniel PmrehnFriend
Messages: 1
Registered: January 2016
Junior Member
Hi,

I'm building a RAP Application with the latest eclipse version.
But when I try to use WindowBuilder on my Entry Point I get the error "No root methods". Even if I select a method and click on the button "Use as entry point" it doesn't work.

Heres my Entry Point definition:
import org.eclipse.rap.rwt.application.AbstractEntryPoint;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;


public class BasicEntryPoint extends AbstractEntryPoint {

    /**
	 * 
	 */
	private static final long serialVersionUID = 2198863928438998868L;

	/**
     * @wbp.parser.entryPoint
     */
    protected void createContents(Composite parent) {
        parent.setLayout(new GridLayout(2, false));
        Button checkbox = new Button(parent, SWT.CHECK);
        checkbox.setText("Hello");
        Button button = new Button(parent, SWT.PUSH);
        button.setText("World");
    }

}



What am I doing wrong?

Thanks in advance!
Best regards
Daniel
Re: No root methods found [message #1724546 is a reply to message #1719642] Wed, 24 February 2016 14:47 Go to previous message
Paul Ramsden is currently offline Paul RamsdenFriend
Messages: 84
Registered: February 2011
Location: BW, Germany
Member
Found this elsewhere in this forum and it seems to work.


/**
 * @wbp.parser.entryPoint
 */
 @Override
 protected void createContents(Composite parent) {
    // if you want open with WindowBuilder.
    // Change code like:
    parent.setLayout(new FillLayout());
    Composite root= new Composite(parent,SWT.NONE) ;
 }
Previous Topic:Windowbuilder does not work well
Next Topic:Design page crashed
Goto Forum:
  


Current Time: Tue Apr 16 13:05:00 GMT 2024

Powered by FUDForum. Page generated in 0.09650 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top