John Arthorne / @jarthorne / github.com/jarthorn
Eclipse PMC, Orion committer, IBM Canada
Clone this talk into OrionHub
Rate this talk!
Open Source Platform for Browser Based Development
// plugin.html has:
...
<head>
<script type="text/javascript" src="plugin.js"></script>
<script type="text/javascript" src="jsbeautify.js"></script>
// jsbeautify.js has:
...
provider.registerServiceProvider(["orion.edit.command", "orion.cm.managedservice"], {
updated: function(properties) {
run: function(selectedText, text, selection) {
var toFormat;
var selectionEmpty = selection.start === selection.end;
if (selectionEmpty) {
toFormat = text;
Plugins can extend the functionality of Orion in the browser dynamically, without any server side changes. The plugins themselves can come from any site, not just the server Orion is hosted from.
Your existing tools already on the web,
connected to Orion components through links and plugins
Your browser becomes a tooling platform
While Orion works on phones it is better suited to tablets. Adding a bluetooth keyboard is even better
npm install orion
edit orion.conf to set a workspace directory
workspace=/home/pi/Workspace/
Orion shell commands available for Node and npm
Many components of Orion are meant to be individually consumable. Leverage our work for your project and if you have suggestions or changes, contribute them back.
function Deferred() {
var result, state, listeners = [],
_this = this;
function notify() {
var listener;
while ((listener = listeners.shift())) {
var deferred = listener.deferred;
var methodName = state === "resolved" ? "resolve" : "reject"; //$NON-NLS-0$ //$NON-NLS-1$ //$NON-NLS-2$
if (typeof listener[methodName] === "function") { //$NON-NLS-0$
try {
var listenerResult = listener[methodName](result);
if (listenerResult && typeof listenerResult.then === "function") { //$NON-NLS-0$
deferred.cancel = listenerResult.cancel || noop;
listenerResult.then(noReturn(deferred.resolve), noReturn(deferred.reject), deferred.progress);
} else {
deferred.resolve(listenerResult);
}
} catch (e) {
deferred.reject(e);
}
} else {
deferred[methodName](result);
}
}
}
If you want to generate a snippet of code Complete JavaScript client side compare both inline and unified views.
Orion is developed by contributors from IBM, VMWare, Mozilla, Google, HP, individuals (students), YOU!
That sounds great! Now here's what we need...
Orion is making the leap from neat open source project to the base of commercial web applications, but we're not there yet. Some things on the TODO list:
Read our blog at Planet Orion
Check out the Orion BUZZ
Lots of information in the Orion Wiki
Follow Orion on Twitter
Create an account and try it at OrionHub
John Arthorne / @jarthorne
Eclipse PMC, Orion Committer
Clone this talk into OrionHub