<!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 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",
				pattern: "\\.js$"
			});
		
		// parse-js validation is not currently used since its errors are less helpful than jslint's
//		provider.registerServiceProvider("orion.edit.validator",
//			mJsOutline.validationService,
//			{	pattern: "\\.js$"
//			});
		
		provider.connect();
	}
});
</script>
</head>
<body>New outliner for JavaScript</body>
</html>

<!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 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",
				pattern: "\\.js$",
				id: "com.github.mamacdon.outliner"
			});
		
		// parse-js validation is not currently used since its errors are less helpful than jslint's
//		provider.registerServiceProvider("orion.edit.validator",
//			mJsOutline.validationService,
//			{	pattern: "\\.js$"
//			});
		
		provider.connect();
	}
});
</script>
</head>
<body>New outliner for JavaScript</body>
</html>

Add 'id' to service registration
Add 'id' to service registration
