blob: 615b00834c9729bc182387e9728f6247becca70b [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2011." >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="../org.dojotoolkit/dojo/dojo.js.uncompressed.js"></script>
<script type="text/javascript" src="../orion/plugin.js"></script>
<script type="text/javascript" src="filePlugin/webdavImpl.js"></script>
<script type="text/javascript">
window.onload = function() {
function trace(implementation) {
var method;
var traced = {};
for (method in implementation) {
if (typeof implementation[method] === 'function') {
traced[method] = function(methodName) {
return function() {
console.log("*" + methodName);
var arg;
for (arg in arguments) {
console.log(" [" + arg + "] " + arguments[arg]);
}
var result = implementation[methodName].apply(implementation, Array.prototype.slice.call(arguments));
dojo.when(result, function(json) {
console.log(json);
});
return result;
};
}(method);
}
}
return traced;
}
var temp = document.createElement('a');
temp.href = ".";
var base = temp.href;
var service = new eclipse.DAVFileServiceImpl(base, base);
var provider = new eclipse.PluginProvider();
provider.registerServiceProvider("orion.core.file", service, {Name:'WebDAV contents', top:base, pattern:base});
service.dispatchEvent = provider.dispatchEvent;
provider.connect();
};
</script>
</head>
<body>
</body>
</html>