forked from mamacdon/outliner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outlinerPlugin.html
44 lines (41 loc) · 901 Bytes
/
outlinerPlugin.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html>
<head>
<title>JS Outliner</title>
<script src="lib/plugin.js"></script>
<script src="lib/require.js"></script>
<script>
/*jslint browser:true*/
/*global eclipse register require*/
require({
packages: [
{ name: "uglify-js",
location: "lib/UglifyJS",
main: "uglify-js"
},
{
name: "transformjs",
location: "lib/transformjs/lib",
main: "transformjs"
}
]
});
require(["jsoutliner"], function(mJsOutline) {
require.ready(function() {
register();
});
function register() {
var provider = new eclipse.PluginProvider();
var serviceProvider = provider.registerServiceProvider("orion.edit.outliner",
mJsOutline.outlineService,
{ name: "Hierarchical outline",
contentType: ["application/javascript"],
id: "com.github.mamacdon.outliner"
});
provider.connect();
}
});
</script>
</head>
<body>New outliner for JavaScript</body>
</html>