Resources

Identifier:
org.eclipse.rap.ui.resources

Since:
RAP 1.0

Description:
The resources extension point is used to register static resources such as images or JavaScript files in order to make them available at for the client. The resource can be accessed by a URL that can be obtained by RWT.getResourceManager().getLocation( String ).

Configuration Markup:

<!ELEMENT extension (resource+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT resource (dependsOn)*>

<!ATTLIST resource

id    CDATA #IMPLIED

class CDATA #REQUIRED>


<!ELEMENT dependsOn EMPTY>

<!ATTLIST dependsOn

resourceId IDREF #REQUIRED>


Examples:

<extension
    id="example.customwidget.customjs"
    point="org.eclipse.rap.ui.resources">
  <resource class="example.customwidget.CustomJavaScriptResource"/>
</extension>

API Information:
Besides registering static resources with an extension you can also dynamically register new resources with the resource manager. Use RWT.getResourceManager() to obtain the current resource manager instance.


Copyright (c) 2007, 2015 EclipseSource 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 http://www.eclipse.org/legal/epl-v10.html