![JAR search and dependency download from the Maven repository](/logo.png)
schema.rap.entrypoint.exsd Maven / Gradle / Ivy
The newest version!
For every RAP application, an entry point must be registered with the framework. The framework will create a separate instance of this entry point for every user session. Entry points must implement the interface <code>EntryPoint</code>.
<p>
An application can register several entrypoints, each at a different URL path. To access an entry point, the path that it is registered at must be appended to the context path of the application.
</p>
<p>
As an alternative to registering an entrypoint, Eclipse applications can also use the interface <code>IApplication</code>.
</p>
The identifier of this entrypoint.
The URL path to register the entry point at. Must start with a slash.
An implementation of <code>EntryPoint</code> which starts the application. Either this attribute or applicationId must be specified.
The id of an IApplication extension to start instead of an EntryPoint class.
Specify the (optional) branding that should be used if this entry point is started.
A string with Content Security Policy (CSP) directives.
Each entrypoint must implement the interface <code>EntryPoint</code>.
In the createUI() method, the user interface of the application is created.
An entrypoint for a simple RAP application could look like this:
<pre>
public class MyEntryPoint implements EntryPoint {
public int createUI() {
Display display = new Display();
Shell shell = new Shell( display );
shell.setLayout( new GridLayout() );
Label label = new Label( shell, SWT.NONE );
label.setText( "Hello World!" );
shell.layout();
shell.open();
return 0;
}
}
</pre>
RAP 1.0
<pre>
<extension
id="org.eclipse.rap.demo.demoentrypoint"
point="org.eclipse.rap.ui.entrypoint">
<entrypoint
id="example.entrypoint"
class="example.MyEntrypoint"
path="/myapp"/>
</extension>
</pre>
Copyright (c) 2007, 2015 EclipseSource and others.<br>
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which accompanies
this distribution, and is available at <a
href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy