private static String browseJavaScriptFile() {
ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
new WorkbenchLabelProvider(), new WorkbenchContentProvider());
dialog.setInput(ResourcesPlugin.getWorkspace());
dialog.addFilter(new ViewerFilter(){
public boolean select(Viewer viewer, Object parentElement, Object element){
if(element instanceof IProject || element instanceof IFolder){
return true;
}
if(element instanceof IFile){