The java script share functions can be called in DOM find/replace dialog and "macro" action.
You can select a workspace file or input the java script in the panel.
Config java script library for JSDT
The JSDT (come with WTP 3.x) could help to develope the share functions. Here are the steps:
- Download java script API, extract and copy xmlnode.js to a Dynamic/Static Web Project.
- Open project properties and select Project Facets in left tree. Ensure JavaScript Toolkit are checked.

- Select JavaScript -> Libraries in left tree. Click Add a Library Folder... and select the folder contain xmlnode.js.

