# Resources

###### Identifier:

org.eclipse.rap.ui.resources

###### Since:

RAP 1.0

###### Description:

The `resources` extension point is used to register additional resources which are used in the client application. This can be for example a javascript library, additional images used by the client or other documents which are then available on the client. The resource can be located locally or loaded from an external location.

###### 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

>

- id - An optional identifier of the resource instance.
- class - An implementation of `org.eclipse.rwt.resources.IResource` to define location, options and other aspects for this resource.

<!ELEMENT dependsOn EMPTY>

<!ATTLIST dependsOn

resourceId IDREF #REQUIRED

>

- resourceId - The resourceId is used to identify the resource on which this resource depends on.

###### Examples:

    <extension
        id="org.eclipse.rap.gmaps.gmap"
        point="org.eclipse.rap.ui.resources">
      <resource class="org.eclipse.rap.gmaps.GMapResource"/>
    </extension>

###### API Information:

Besides registering resources with an extension you can dynamically register new resources with an `IResourceManager`. Use `RWT.getResourceManager` to obtain the currently active resource manager implemenation.

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 http://www.eclipse.org/legal/epl-v10.html