Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Sternberg2012-12-03 16:17:40 +0000
committerRalf Sternberg2012-12-03 16:17:40 +0000
commite0abfaf1ab9a92718e8c8bd265b71571a85c6272 (patch)
treeec983642c0c613afd2f58b0246eeeda2af11153e /bundles/org.eclipse.rap.ui
parent4149c6dd0c359989e0847cd3fe7028f77254ea14 (diff)
downloadorg.eclipse.rap-e0abfaf1ab9a92718e8c8bd265b71571a85c6272.tar.gz
org.eclipse.rap-e0abfaf1ab9a92718e8c8bd265b71571a85c6272.tar.xz
org.eclipse.rap-e0abfaf1ab9a92718e8c8bd265b71571a85c6272.zip
Rename and move IEntryPoint and IEPFactory
* Remove "I"-prefix from interfaces See bug 391724: Remove "I" prefix from interfaces https://bugs.eclipse.org/bugs/show_bug.cgi?id=391724 * Move EntryPoint and EPFactory to application package EntryPoint is the central interface needed to define an application, it has nothing to do with the RWT lifecycle. * Add compatibility interfaces IEP and IEPF to ease migration * Revise documentation for EntryPoint and factory
Diffstat (limited to 'bundles/org.eclipse.rap.ui')
-rw-r--r--bundles/org.eclipse.rap.ui/schema/rap/entrypoint.exsd17
1 files changed, 9 insertions, 8 deletions
diff --git a/bundles/org.eclipse.rap.ui/schema/rap/entrypoint.exsd b/bundles/org.eclipse.rap.ui/schema/rap/entrypoint.exsd
index 1194647f6b..7b04236860 100644
--- a/bundles/org.eclipse.rap.ui/schema/rap/entrypoint.exsd
+++ b/bundles/org.eclipse.rap.ui/schema/rap/entrypoint.exsd
@@ -6,7 +6,7 @@
<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;.
+ 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 &lt;code&gt;EntryPoint&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;
@@ -73,7 +73,7 @@ As an alternative to registering an entrypoint, Eclipse applications can also us
An implementation of &lt;code&gt;IEntryPoint&lt;/code&gt; which starts the application.
</documentation>
<appInfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.rap.rwt.lifecycle.IEntryPoint"/>
+ <meta.attribute kind="java" basedOn=":org.eclipse.rap.rwt.application.EntryPoint"/>
</appInfo>
</annotation>
</attribute>
@@ -102,12 +102,12 @@ As an alternative to registering an entrypoint, Eclipse applications can also us
<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.
+ Each entrypoint must implement the interface &lt;code&gt;EntryPoint&lt;/code&gt;.
+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 class MyEntryPoint implements EntryPoint {
public int createUI() {
Display display = new Display();
@@ -145,11 +145,12 @@ public class MyEntryPoint implements IEntryPoint {
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;
+ id=&quot;example.entrypoint&quot;
+ class=&quot;example.MyEntrypoint&quot;
path=&quot;/myapp&quot;/&gt;
- &lt;/extension&gt;
+&lt;/extension&gt;
&lt;/pre&gt;
+
</documentation>
</annotation>

Back to the top