Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRĂ¼diger Herrmann2012-11-02 13:53:50 +0000
committerRĂ¼diger Herrmann2012-11-02 13:53:50 +0000
commit27adae6bd88a4cec8403c3ea672b4b6535e09dff (patch)
tree879235488a4547c34af58275a3f21ea41f6c331e /bundles/org.eclipse.rap.ui
parent91fe9fa371888d492b9ce0ffcee6a634efe9c4ad (diff)
downloadorg.eclipse.rap-27adae6bd88a4cec8403c3ea672b4b6535e09dff.tar.gz
org.eclipse.rap-27adae6bd88a4cec8403c3ea672b4b6535e09dff.tar.xz
org.eclipse.rap-27adae6bd88a4cec8403c3ea672b4b6535e09dff.zip
Register application entry points by path
The 'name' attribute of the 'applications' extension will be used as the path Bug 393419: Remove branding API
Diffstat (limited to 'bundles/org.eclipse.rap.ui')
-rw-r--r--bundles/org.eclipse.rap.ui/schema/rap/entrypoint.exsd351
1 files changed, 180 insertions, 171 deletions
diff --git a/bundles/org.eclipse.rap.ui/schema/rap/entrypoint.exsd b/bundles/org.eclipse.rap.ui/schema/rap/entrypoint.exsd
index 8837f5b7af..c6622a8116 100644
--- a/bundles/org.eclipse.rap.ui/schema/rap/entrypoint.exsd
+++ b/bundles/org.eclipse.rap.ui/schema/rap/entrypoint.exsd
@@ -1,171 +1,180 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.rap.ui" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appInfo>
- <meta.schema plugin="org.eclipse.rap.ui" id="entrypoint" name="EntryPoint"/>
- </appInfo>
- <documentation>
- For every RAP application, an entry point class 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 &lt;code&gt;IEntryPoint&lt;/code&gt;.
-&lt;p&gt;
-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.
-&lt;/p&gt;
-&lt;p&gt;
-As an alternative to registering an entrypoint, Eclipse applications can also use the interface &lt;code&gt;IApplication&lt;/code&gt;.
-&lt;/p&gt;
-
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appInfo>
- <meta.element />
- </appInfo>
- </annotation>
- <complexType>
- <sequence>
- <element ref="entrypoint" minOccurs="1" maxOccurs="unbounded"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appInfo>
- <meta.attribute translatable="true"/>
- </appInfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="entrypoint">
- <annotation>
- <appInfo>
- <meta.element labelAttribute="parameter"/>
- </appInfo>
- </annotation>
- <complexType>
- <attribute name="id" type="string" use="required">
- <annotation>
- <documentation>
- The identifier of this entrypoint. Used in &lt;code&gt;org.eclipse.rap.ui.branding&lt;/code&gt; extension point.
- </documentation>
- </annotation>
- </attribute>
- <attribute name="class" type="string" use="required">
- <annotation>
- <documentation>
- An implementation of &lt;code&gt;IEntryPoint&lt;/code&gt; which starts the application.
- </documentation>
- <appInfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.rwt.lifecycle.IEntryPoint"/>
- </appInfo>
- </annotation>
- </attribute>
- <attribute name="path" type="string">
- <annotation>
- <documentation>
- The URL path to register the entry point at.
- </documentation>
- </annotation>
- </attribute>
- <attribute name="parameter" type="string">
- <annotation>
- <documentation>
- A URL parameter name to access the entry point. Deprecated, use the path attribute instead.
- </documentation>
- <appInfo>
- <meta.attribute deprecated="true"/>
- </appInfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appInfo>
- <meta.section type="apiInfo"/>
- </appInfo>
- <documentation>
- Each entrypoint has to implement the &lt;code&gt;IEntryPoint&lt;/code&gt; interface.
-In the createUI() method the user interface of the application is created.
-An entrypoint for a simple RAP application could look like this:
-
-&lt;pre&gt;
-public class MyEntryPoint implements IEntryPoint {
-
- 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( &quot;Hello World!&quot; );
-
- shell.layout();
- shell.open();
- return 0;
- }
-}
-&lt;/pre&gt;
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="since"/>
- </appInfo>
- <documentation>
- RAP 1.0
- </documentation>
- </annotation>
-
- <annotation>
- <appInfo>
- <meta.section type="examples"/>
- </appInfo>
- <documentation>
- &lt;pre&gt;
-&lt;extension
- id=&quot;org.eclipse.rap.demo.demoentrypoint&quot;
- point=&quot;org.eclipse.rap.ui.entrypoint&quot;&gt;
- &lt;entrypoint
- id=&quot;org.eclipse.rap.demo.entrypoint&quot;
- class=&quot;org.eclipse.rap.demo.MyEntrypoint&quot;
- path=&quot;/myapp&quot;/&gt;
- &lt;/extension&gt;
-&lt;/pre&gt;
- </documentation>
- </annotation>
-
-
- <annotation>
- <appInfo>
- <meta.section type="copyright"/>
- </appInfo>
- <documentation>
- Copyright (c) 2007, 2012 Innoopract Informationssysteme GmbH and others.&lt;br&gt;
-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
-&lt;a href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
- </documentation>
- </annotation>
-
-</schema>
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.eclipse.rap.ui" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.eclipse.rap.ui" id="entrypoint" name="EntryPoint"/>
+ </appInfo>
+ <documentation>
+ For every RAP application, an entry point class 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 &lt;code&gt;IEntryPoint&lt;/code&gt;.
+&lt;p&gt;
+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.
+&lt;/p&gt;
+&lt;p&gt;
+As an alternative to registering an entrypoint, Eclipse applications can also use the interface &lt;code&gt;IApplication&lt;/code&gt;.
+&lt;/p&gt;
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appInfo>
+ <meta.element />
+ </appInfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="entrypoint" minOccurs="1" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="entrypoint">
+ <annotation>
+ <appInfo>
+ <meta.element labelAttribute="parameter"/>
+ </appInfo>
+ </annotation>
+ <complexType>
+ <attribute name="id" type="string" use="required">
+ <annotation>
+ <documentation>
+ The identifier of this entrypoint. Used in &lt;code&gt;org.eclipse.rap.ui.branding&lt;/code&gt; extension point.
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="class" type="string" use="required">
+ <annotation>
+ <documentation>
+ An implementation of &lt;code&gt;IEntryPoint&lt;/code&gt; which starts the application.
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="java" basedOn=":org.eclipse.rwt.lifecycle.IEntryPoint"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ <attribute name="path" type="string">
+ <annotation>
+ <documentation>
+ The URL path to register the entry point at.
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="parameter" type="string">
+ <annotation>
+ <documentation>
+ A URL parameter name to access the entry point. Deprecated, use the path attribute instead.
+ </documentation>
+ <appInfo>
+ <meta.attribute deprecated="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ <attribute name="branding" type="string">
+ <annotation>
+ <documentation>
+ Specify the (optional) branding that should be used if this entry point is started.
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="identifier" basedOn="org.eclipse.rap.ui.branding/branding/@id"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiInfo"/>
+ </appInfo>
+ <documentation>
+ Each entrypoint has to implement the &lt;code&gt;IEntryPoint&lt;/code&gt; interface.
+In the createUI() method the user interface of the application is created.
+An entrypoint for a simple RAP application could look like this:
+
+&lt;pre&gt;
+public class MyEntryPoint implements IEntryPoint {
+
+ 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( &quot;Hello World!&quot; );
+
+ shell.layout();
+ shell.open();
+ return 0;
+ }
+}
+&lt;/pre&gt;
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ RAP 1.0
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ &lt;pre&gt;
+&lt;extension
+ id=&quot;org.eclipse.rap.demo.demoentrypoint&quot;
+ point=&quot;org.eclipse.rap.ui.entrypoint&quot;&gt;
+ &lt;entrypoint
+ id=&quot;org.eclipse.rap.demo.entrypoint&quot;
+ class=&quot;org.eclipse.rap.demo.MyEntrypoint&quot;
+ path=&quot;/myapp&quot;/&gt;
+ &lt;/extension&gt;
+&lt;/pre&gt;
+ </documentation>
+ </annotation>
+
+
+ <annotation>
+ <appInfo>
+ <meta.section type="copyright"/>
+ </appInfo>
+ <documentation>
+ Copyright (c) 2007, 2012 Innoopract Informationssysteme GmbH and others.&lt;br&gt;
+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
+&lt;a href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
+ </documentation>
+ </annotation>
+
+</schema>

Back to the top