Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP 1.50.M3 Standalone
RAP 1.50.M3 Standalone [message #756592] Mon, 14 November 2011 13:16
Edin Edin is currently offline Edin EdinFriend
Messages: 101
Registered: January 2010
Senior Member
Hello im trying to setup a standalone version of a RAP Application based upon this FAQ
http://wiki.eclipse.org/RAP/FAQ#How_do_I_develop_an_RWT_standalone_application_with_RAP_.3E.3D_1.5

My problems are the following:
im getting java.lang.UnsupportedOperationException: The SimpleLifeCycle does not support Display#sleep() in my EntryPoint class with the following code:

Display display = new Display();
Shell shell = new Shell( display );
Label label = new Label( shell, SWT.NONE );
label.setText( "Hello RAP World" );
label.setBounds(50, 50, 200, 30);
shell.setSize( 500, 400 );
shell.open();
while( !shell.isDisposed() ) {
if( !display.readAndDispatch() )
display.sleep();
}
display.dispose();
return 0;

The second one is the question, how to get the following code be loaded:
public class HelloWorldConfigurator implements ApplicationConfigurator {
public void configure( ApplicationConfiguration configuration ) {
configuration.addEntryPoint( "default", ExampleEntryPoint.class );
}
}

My ExampleEntryPoint is never get loaded when i start the application from the RAP Tooling, so my brandig is not loaded.
Is it true that i even dont need OSGi anymore when startig RAP on this way? Is it then possible to define every plugin.xml setting with the Java classes?

Greetings Edin
Previous Topic:Connect Xtext and RAP
Next Topic:RAP 1.50.M3 Standalone
Goto Forum:
  


Current Time: Fri Apr 19 00:12:04 GMT 2024

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

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

Back to the top