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 )
.
<!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>
org.eclipse.rap.ui.resources.IResource
to define location, options and other aspects for this resource.<!ELEMENT dependsOn EMPTY>
<!ATTLIST dependsOn
resourceId IDREF #REQUIRED>
<extension id="example.customwidget.customjs" point="org.eclipse.rap.ui.resources"> <resource class="example.customwidget.CustomJavaScriptResource"/> </extension>
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