Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse RAP Development Guide
Previous Page Home Next Page

EntryPoint

Identifier:
org.eclipse.rap.ui.entrypoint

Since:
RAP 1.0

Description:
A major difference between RCP and RAP is the way an application is started. With regular SWT applications you would use the main(String[] args) method, in RCP an implementation of IApplication. AS RAP uses a life cycle to control the application startup the application needs an IEntrypoint implementation which does mostly the same as IApplication. The difference is that we need to do not dispose the display but return it to RAP in the createUI method. There can be several entrypoints for the same application which are distinguished by a paramter in the URI for this application like <host>:<port>/rap?startup=<entrypointname>.

Configuration Markup:

<!ELEMENT extension ( entrypoint+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT entrypoint EMPTY>

<!ATTLIST entrypoint

id        CDATA #REQUIRED

class     CDATA #REQUIRED

parameter CDATA #REQUIRED>

  • id - The identifier of this entrypoint. Used in org.eclipse.rap.ui.branding extension point.
  • class - An implementation of IEntryPoint which starts the application.
  • parameter - The name which should be used from outside in the URI.

Examples:

<extension
    id=
"org.eclipse.rap.demo.demoentrypoint"

    point=
"org.eclipse.rap.ui.entrypoint"
>
  <entrypoint
     id=
"org.eclipse.rap.demo.entrypoint"

        class=
"org.eclipse.rap.demo.MyAppEntrypoint"

        parameter=
"myapp"
/>
  </extension>


Copyright (c) 2007 Innoopract Informationssysteme GmbH and others.
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 https://www.eclipse.org/legal/epl-v10.html


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire