/*******************************************************************************
 * @license
 * Copyright (c) 2011, 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 * 
 * Contributors: IBM Corporation - initial API and implementation
 ******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/*******************************************************************************
 * @license
 * Copyright (c) 2012 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials are made 
 * available under the terms of the Eclipse Public License v1.0 
 * (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 * License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
/**
 * @license RequireJS domReady 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/requirejs for details
 */
/*

 Copyright (c) 2011, 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors: IBM Corporation - initial API and implementation

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation
 RequireJS domReady 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
 Available via the MIT or new BSD license.
 see: http://github.com/jrburke/requirejs for details

 Copyright (c) 2012 IBM Corporation and others.
 All rights reserved. This program and the accompanying materials are made 
 available under the terms of the Eclipse Public License v1.0 
 (http://www.eclipse.org/legal/epl-v10.html), and the Eclipse Distribution 
 License v1.0 (http://www.eclipse.org/org/documents/edl-v10.html). 

 Contributors:
 IBM Corporation - initial API and implementation
*/
(function(){var e=this;if(!e.define)e.define=function(h){e.orion=e.orion||{};e.orion.PluginProvider=h();e.eclipse=e.orion;delete e.define}})();
define("orion/plugin",[],function(){return function(e){function h(b){m&&(typeof ArrayBuffer==="undefined"&&(b=JSON.stringify(b)),m===self?m.postMessage(b):m.postMessage(b,"*"))}function i(b,a){return a&&a instanceof XMLHttpRequest?{status:a.status,statusText:a.statusText}:a}function f(b){var a=b?JSON.parse(JSON.stringify(b,i)):b;if(b instanceof Error)a.__isError=!0,a.message=a.message||b.message,a.name=a.name||b.name;return a}function c(b){return function(a){l&&h({serviceId:b,method:"dispatchEvent",
params:[a]})}}function b(b){if(b.source===m){var a=typeof b.data!=="string"?b.data:JSON.parse(b.data);if(typeof a.cancel==="string"){var g=n[a.id];g&&(delete n[a.id],g.cancel&&g.cancel(a.cancel))}else{var b=a.serviceId,k=a.method,p=a.params,d=j[b],q=d.implementation,e=q[k];k==="addEventListener"?(k=p[0],d.listeners[k]=d.listeners[k]||c(b),p=[k,d.listeners[k]]):k==="removeEventListener"&&(k=p[0],p=[k,d.listeners[k]],delete d.listeners[k]);var i={id:a.id,result:null,error:null};try{(g=e.apply(q,p))&&
typeof g.then==="function"?(n[a.id]=g,g.then(function(g){delete n[a.id];i.result=g;h(i)},function(g){if(n[a.id])delete n[a.id],i.error=f(g),h(i)},function(){h({requestId:a.id,method:"progress",params:Array.prototype.slice.call(arguments)})})):(i.result=g,h(i))}catch(l){i.error=f(l),h(i)}}}}var d=e,j=[],l=!1,n={},m=null;this.updateHeaders=function(b){if(l)throw Error("Cannot update headers. Plugin Provider is connected");d=b};this.registerServiceProvider=this.registerService=function(b,a,g){if(l)throw Error("Cannot register service. Plugin Provider is connected");
typeof b==="string"?b=[b]:Array.isArray(b)||(b=[]);var k=null,p=[];for(k in a)typeof a[k]==="function"&&p.push(k);j[j.length]={names:b,methods:p,implementation:a,properties:g||{},listeners:{}}};this.connect=function(c,a){if(!l){if(typeof window==="undefined")m=self;else if(window!==window.parent)m=window.parent;else if(window.opener!==null)m=window.opener;else{a&&a("No valid plugin target");return}addEventListener("message",b,!1);for(var g=[],k=0;k<j.length;k++)g.push({serviceId:k,names:j[k].names,
methods:j[k].methods,properties:j[k].properties});h({method:"plugin",params:[{headers:d||{},services:g}]});l=!0}c&&c()};this.disconnect=function(){l&&(removeEventListener("message",b),m=null,l=!1)}}});
(function(e,h){typeof define==="function"&&define.amd?define("orion/Deferred",[],h):typeof exports==="object"?module.exports=h():(e.orion=e.orion||{},e.orion.Deferred=h())})(this,function(){function e(){for(var b;b=d.shift()||j.shift();)b();l=!1}function h(b,c){(c?j:d).push(b);l||(l=!0,c?setTimeout(e,0):e())}function i(b){return function(){b.apply(null,arguments)}}function f(){}function c(){var b=Error("Cancel");b.name="Cancel";return b}function b(){function d(){for(var b;b=a.shift();){var g=b.deferred,
c=j==="resolved"?"resolve":"reject";if(typeof b[c]==="function")try{var q=b[c](e);q&&typeof q.then==="function"?(g.cancel=q.cancel||f,q.then(i(g.resolve),i(g.reject),g.progress)):g.resolve(q)}catch(h){g.reject(h)}else g[c](e)}}var e,j,a=[],g=this;this.reject=function(b){j||(j="rejected",e=b,a.length&&h(d));return g.promise};this.resolve=function(b){j||(j="resolved",e=b,a.length&&h(d));return g.promise};this.progress=function(b){j||a.forEach(function(a){a.progress&&a.progress(b)});return g.promise};
this.cancel=function(){j||g.reject(c())};this.then=function(g,c,f){var g={resolve:g,reject:c,progress:f,deferred:new b},e=g.deferred,i=this.cancel.bind(this),m=function(){h(function(){(e.cancel===m?i:e.cancel)()},!0)};e.cancel=m;c=e.promise;c.cancel=function(){e.cancel()};a.push(g);j&&h(d,!0);return c};this.promise={then:this.then,cancel:this.cancel}}var d=[],j=[],l=!1;b.all=function(c,d){function e(a,b){f||(k[a]=b,--g===0&&i.resolve(k))}function a(a,b){if(!f){if(d)try{e(a,d(b));return}catch(g){b=
g}i.reject(b)}}var g=c.length,k=[],f=!1,i=new b;i.then(null,function(){f=!0;c.forEach(function(a){a.cancel&&a.cancel()})});g===0?i.resolve(k):c.forEach(function(b,g){b.then(e.bind(null,g),a.bind(null,g))});return i.promise};b.when=function(c,d,e,a){var g;if(!(c&&typeof c.then==="function"))g=new b,g.resolve(c),c=g.promise;return c.then(d,e,a)};return b});
define("orion/xhr",["orion/Deferred"],function(e){function h(e,f,c,b){var d=typeof c.response!=="undefined"?c.response:c.responseText,h;try{h=c.status}catch(l){h=0}e={args:f,response:d,responseText:typeof d==="string"?d:null,status:h,url:e,xhr:c};if(typeof b!=="undefined")e.error=b;return e}return function(i,f,c){var c=c||{},b=arguments.length>3&&arguments[3]?arguments[3]:new XMLHttpRequest,d=new e,j=c.headers||{},l=c.log||!1,n;typeof j["X-Requested-With"]==="undefined"&&(j["X-Requested-With"]="XMLHttpRequest");
if(typeof c.data!=="undefined"&&(i==="POST"||i==="PUT"))n=c.data;if(typeof c.responseType==="string")b.responseType=c.responseType;b.onprogress=function(a){a.xhr=b;d.progress(a)};b.onreadystatechange=function(){if(b.readyState===4){var a=h(f,c,b),g=b.status;200<=g&&g<400?d.resolve(a):(l&&typeof console!=="undefined"&&console.log(Error(b.statusText)),d.reject(a))}};try{b.open(i,f,!0);if(typeof c.timeout==="number")if(typeof b.timeout==="number")b.timeout=c.timeout,b.addEventListener("timeout",function(){d.reject(h(f,
c,b,"Timeout exceeded"))});else{var m=setTimeout(function(){d.reject(h(f,c,b,"Timeout exceeded"))},c.timeout);d.then(clearTimeout.bind(null,m),clearTimeout.bind(null,m))}Object.keys(j).forEach(function(a){b.setRequestHeader(a,j[a])});b.send(n)}catch(o){d.reject(h(f,c,b,o))}return d.promise}});
(function(){function e(a){return a?a.slice(1).split("&"):[]}function h(a){return a.length===0?"":"?"+a.join("&")}function i(a){var b=/([^=]*)(?:=?)(.*)/.exec(a),a=b[1]?decodeURIComponent(b[1]):"",b=b[2]?decodeURIComponent(b[2]):"";return[a,b]}function f(a){var b=encodeURIComponent(a[0]);a[1]&&(b+="="+encodeURIComponent(a[1]));return b}function c(a,b){var c="",d=[],f=0;return{next:function(){if(c!==a.search)c=a.search,d=e(c);if(f<d.length){var h=i(d[f++]);switch(b){case "keys":return h[0];case "values":return h[1];
case "keys+values":return[h[0],h[1]];default:throw new TypeError;}}throw o;}}}function b(a){if(typeof a!=="string")throw new TypeError;}function d(a){var b=a.protocol;return!b||b===":"||b==="http:"&&!a.hostname?!1:!0}function j(a){Object.defineProperty(this,"_anchor",{value:a})}function l(a,b){a=a||"";if(typeof a!=="string")throw new TypeError("url");b=b?b.href||b:"";if(typeof b!=="string")throw new TypeError("base");Object.defineProperty(this,"_input",{value:a,writable:!0});var c=document.implementation.createHTMLDocument("");
if(b){var e=c.createElement("a");e.href=b;if(e.protocol.length<2||!e.host)throw Error("InvalidStateError");var f=c.createElement("base");f.href=e.href;c.head.appendChild(f)}var h=c.createElement("a");h.href=a;c.body.appendChild(h);Object.defineProperty(this,"_urlAnchor",{value:h});var i=new j(h);Object.defineProperty(this,"query",{get:function(){return d(h)?i:null},enumerable:!0})}try{if(typeof window.URL==="function"&&window.URL.length!==0&&(new window.URL("http://www.w3.org")).protocol==="http:")return}catch(n){}var m=
/([^:]*):?(.*)/,o=typeof StopIteration!=="undefined"?StopIteration:Error("Stop Iteration");Object.defineProperties(j.prototype,{get:{value:function(a){b(a);var g;e(this._anchor.search).some(function(b){b=i(b);if(b[0]===a)return g=b[1],!0});return g},enumerable:!0},set:{value:function(a,g){b(a);b(g);var c=e(this._anchor.search);c.some(function(b,e){var d=i(b);if(d[0]===a)return d[1]=g,c[e]=f(d),!0})||c.push(f([a,g]));this._anchor.search=h(c)},enumerable:!0},has:{value:function(a){b(a);return e(this._anchor.search).some(function(b){if(i(b)[0]===
a)return!0})},enumerable:!0},"delete":{value:function(a){b(a);var c=e(this._anchor.search),d=c.filter(function(b){return i(b)[0]!==a});return d.length!==c.length?(this._anchor.search=h(d),!0):!1},enumerable:!0},clear:{value:function(){this._anchor.search=""},enumerable:!0},forEach:{value:function(a,b){if(typeof a!=="function")throw new TypeError;var e=c(this._anchor,"keys+values");try{for(;;){var d=e.next();a.call(b,d[1],d[0],this)}}catch(f){if(f!==o)throw f;}},enumerable:!0},keys:{value:function(){return c(this._anchor,
"keys")},enumerable:!0},values:{value:function(){return c(this._anchor,"values")},enumerable:!0},items:{value:function(){return c(this._anchor,"keys+values")}},size:{get:function(){return e(this._anchor.search).length},enumerable:!0},getAll:{value:function(a){b(a);var c=[];e(this._anchor.search).forEach(function(b){b=i(b);b[0]===a&&c.push(b[1])});return c},enumerable:!0},append:{value:function(a,c){b(a);b(c);var d=e(this._anchor.search);d.push(f([a,c]));this._anchor.search=h(d)},enumerable:!0}});
Object.defineProperties(l.prototype,{href:{get:function(){return d(this._urlAnchor)?this._urlAnchor.href:this._input},set:function(a){b(a);this._input=a;this._urlAnchor.href=a},enumerable:!0},origin:{get:function(){return d(this._urlAnchor)?this._urlAnchor.protocol+"//"+this._urlAnchor.host:""},enumerable:!0},protocol:{get:function(){return d(this._urlAnchor)?this._urlAnchor.protocol:":"},set:function(a){b(a);this._urlAnchor.protocol=a},enumerable:!0},_userinfo:{get:function(){return!d(this._urlAnchor)?
"":RegExp("^"+this._urlAnchor.protocol+"(\\/\\/)(?:([^@]*)?@)?"+this._urlAnchor.host).exec(this._urlAnchor.href)[2]||""},set:function(a){b(a);this._urlAnchor.href=this._urlAnchor.href.replace(RegExp("^"+this._urlAnchor.protocol+"(\\/\\/)(?:([^@]*)?@)?"+this._urlAnchor.host),this._urlAnchor.protocol+"//"+(a?a+"@":"")+this._urlAnchor.host)}},username:{get:function(){if(!d(this._urlAnchor))return"";var a=m.exec(this._userinfo);return decodeURIComponent(a[1]||"")},set:function(a){b(a);var c=m.exec(this._userinfo),
a=[encodeURIComponent(a||"")];c[2]&&a.push(c[2]);this._userinfo=a.join(":")},enumerable:!0},password:{get:function(){if(!d(this._urlAnchor))return"";var a=m.exec(this._userinfo);return decodeURIComponent(a[2]||"")},set:function(a){b(a);var c=[m.exec(this._userinfo)[1]||""];a&&c.push(encodeURIComponent(a));this._userinfo=c.join(":")},enumerable:!0},host:{get:function(){return d(this._urlAnchor)?this._urlAnchor.host:""},set:function(a){b(a);this._urlAnchor.host=a},enumerable:!0},hostname:{get:function(){return d(this._urlAnchor)?
this._urlAnchor.hostname:""},set:function(a){b(a);this._urlAnchor.hostname=a},enumerable:!0},port:{get:function(){return d(this._urlAnchor)?this._urlAnchor.port:""},set:function(a){b(a);this._urlAnchor.port=a},enumerable:!0},pathname:{get:function(){return d(this._urlAnchor)?this._urlAnchor.pathname:""},set:function(a){b(a);this._urlAnchor.pathname=a},enumerable:!0},search:{get:function(){return d(this._urlAnchor)?this._urlAnchor.search:""},set:function(a){b(a);this._urlAnchor.search=a},enumerable:!0},
hash:{get:function(){return d(this._urlAnchor)?this._urlAnchor.hash:""},set:function(a){b(a);this._urlAnchor.hash=a},enumerable:!0}});window.URL&&window.URL.createObjectURL&&(Object.defineProperty(l,"createObjectURL",{value:window.URL.createObjectURL.bind(window.URL),enumerable:!1}),Object.defineProperty(l,"revokeObjectURL",{value:window.URL.revokeObjectURL.bind(window.URL),enumerable:!1}));window.URL=l})();define("orion/URL-shim",function(){});
define("domReady",[],function(){function e(a){for(var b=0,c;c=a[b];b++)c(d)}function h(){var a=j,c=l;b&&(a.length&&(j=[],e(a)),n.resourcesDone&&c.length&&(l=[],e(c)))}function i(){b||(b=!0,o&&clearInterval(o),h())}function f(a){b?a(d):j.push(a);return f}var c=typeof window!=="undefined"&&window.document,b=!c,d=c?document:null,j=[],l=[],n=requirejs||require||{},m=n.resourcesReady,o;if("resourcesReady"in n)n.resourcesReady=function(a){m&&m(a);a&&h()};c&&(document.addEventListener?(document.addEventListener("DOMContentLoaded",
i,!1),window.addEventListener("load",i,!1)):window.attachEvent&&(window.attachEvent("onload",i),self===self.top&&(o=setInterval(function(){try{document.body&&(document.documentElement.doScroll("left"),i())}catch(a){}},30))),document.readyState==="complete"&&i());f.withResources=function(a){b&&n.resourcesDone?a(d):l.push(a);return f};f.version="1.0.0";f.load=function(a,b,c,d){d.isBuild?c(null):f(c)};return f});
define("git/plugins/gitPlugin",["orion/plugin","orion/xhr","orion/URL-shim","domReady!"],function(e,h){var i=document.createElement("a");i.href="../mixloginstatic/LoginWindow.html";var f=new e({name:"Orion Git Support",version:"1.0",description:"This plugin provides Git Support to the Orion File Service.",login:i.href});f.registerService("orion.navigate.command",{},{nameKey:"Git Status",id:"eclipse.git.status",tooltipKey:"Go to Git Status",nls:"git/nls/gitmessages",validationProperties:[{source:"Git:StatusLocation",
variableName:"GitStatusLocation"},{source:"Directory",match:!0}],uriTemplate:"{OrionHome}/git/git-status2.html#{GitStatusLocation}",forceSingleItem:!0});f.registerService("orion.navigate.command",{},{nameKey:"Git Log",id:"eclipse.git.log",tooltipKey:"Go to Git Log",nls:"git/nls/gitmessages",validationProperties:[{source:"Git:CommitLocation",variableName:"GitLogLocation"}],uriTemplate:"{OrionHome}/git/git-log.html#{GitLogLocation}?page=1",forceSingleItem:!0});f.registerService("orion.navigate.command",
{},{nameKey:"Git Remote",id:"eclipse.git.remote",tooltipKey:"Go to Git Remote",nls:"git/nls/gitmessages",validationProperties:[{source:"Git:DefaultRemoteBranchLocation",variableName:"GitRemoteLocation"}],uriTemplate:"{OrionHome}/git/git-log.html#{GitRemoteLocation}?page=1",forceSingleItem:!0});f.registerService("orion.core.content",null,{id:"orion.content.gitClone",nls:"git/nls/gitmessages",nameKey:"Clone Git Repository",descriptionKey:"Go to the Orion repositories page to provide a git repository URL. Once the repository is created, it will appear in the Navigator.",
uriTemplate:"{OrionHome}/git/git-repository.html#,cloneGitRepository=URL"});f.registerService("orion.page.link.related",null,{id:"eclipse.git.status"});f.registerService("orion.page.link.related",null,{nameKey:"Git Status",id:"eclipse.git.status2",tooltipKey:"Go to Git Status",nls:"git/nls/gitmessages",validationProperties:[{source:"StatusLocation|Clone:StatusLocation",variableName:"GitStatusLocation"}],uriTemplate:"{OrionHome}/git/git-status2.html#{GitStatusLocation}"});f.registerService("orion.page.link.related",
null,{id:"eclipse.git.log"});f.registerService("orion.page.link.related",null,{id:"eclipse.git.remote"});f.registerService("orion.page.link.related",null,{nameKey:"Active Branch Log",id:"eclipse.orion.git.switchToCurrentLocal",tooltipKey:"Show the log for the active local branch",nls:"git/nls/gitmessages",validationProperties:[{source:"Clone:ActiveBranch",variableName:"GitBranchLocation"},{source:"toRef:Type",match:"RemoteTrackingBranch"}],uriTemplate:"{OrionHome}/git/git-log.html#{GitBranchLocation}?page=1",
forceSingleItem:!0});f.registerService("orion.page.link.related",null,{nameKey:"Remote Branch Log",id:"eclipse.orion.git.switchToRemote2",tooltipKey:"Show the log for the corresponding remote tracking branch",nls:"git/nls/gitmessages",validationProperties:[{source:"toRef:RemoteLocation:0:Children:0:CommitLocation",variableName:"GitRemoteLocation"}],uriTemplate:"{OrionHome}/git/git-log.html#{GitRemoteLocation}?page=1",forceSingleItem:!0});f.registerService("orion.page.link.related",null,{nameKey:"Git Repository",
id:"eclipse.git.repository2",tooltipKey:"Go to the git repository",nls:"git/nls/gitmessages",validationProperties:[{source:"CloneLocation",variableName:"GitCloneLocation"},{source:"Type",match:"Commit"}],uriTemplate:"{OrionHome}/git/git-repository.html#{GitCloneLocation}"});f.registerService("orion.page.link.related",null,{id:"eclipse.git.repository",nameKey:"Git Repository",tooltipKey:"Go to the git repository",nls:"git/nls/gitmessages",validationProperties:[{source:"Git:CloneLocation",variableName:"GitRepoLocation"}],
uriTemplate:"{OrionHome}/git/git-repository.html#{GitRepoLocation}"});f.registerService("orion.page.link.related",null,{id:"orion.git.gotoEclipseGit",nameKey:"Show Repository in eclipse.org",tooltipKey:"Show this repository in eclipse.org",nls:"git/nls/gitmessages",validationProperties:[{source:"GitUrl|Clone:GitUrl",match:"git.eclipse.org/gitroot",variableName:"EclipseGitLocation",variableMatchPosition:"after"}],uriTemplate:"http://git.eclipse.org/c{EclipseGitLocation}"});f.registerService("orion.page.link.related",
null,{id:"orion.git.gotoGithub",nameKey:"Show Repository in GitHub",nls:"git/nls/gitmessages",tooltipKey:"Show this repository in GitHub",validationProperties:[{source:"GitUrl|Clone:GitUrl",match:"github.com.*.git",variableName:"GitHubLocation",variableMatchPosition:"only",replacements:[{pattern:":",replacement:"/"},{pattern:".git$",replacement:""}]}],uriTemplate:"https://{GitHubLocation}"});f.registerServiceProvider("orion.page.link.related",null,{id:"orion.git.gotoGithubCommit",nameKey:"Show Commit in GitHub",
nls:"git/nls/gitmessages",tooltipKey:"Show this commit in GitHub",validationProperties:[{source:"GitUrl",match:"github.com.*.git",variableName:"GitHubLocation",variableMatchPosition:"only",replacements:[{pattern:":",replacement:"/"},{pattern:".git$",replacement:""}]},{source:"Type",match:"Commit"},{source:"Name",variableName:"commitName"}],uriTemplate:"https://{GitHubLocation}/commit/{commitName}"});f.registerServiceProvider("orion.page.link.related",null,{id:"orion.git.gotoEclipseGitCommit",nameKey:"Show Commit in eclipse.org",
nls:"git/nls/gitmessages",tooltipKey:"Show this commit in eclipse.org",validationProperties:[{source:"GitUrl",match:"git.eclipse.org/gitroot",variableName:"EclipseGitLocation",variableMatchPosition:"after"},{source:"Type",match:"Commit"},{source:"Name",variableName:"commitName"}],uriTemplate:"http://git.eclipse.org/c{EclipseGitLocation}/commit/?id={commitName}"});i.href="../../gitapi/diff/";f.registerService("orion.core.diff",{getDiffContent:function(c){c=new URL(c,window.location);c.query.set("parts",
"diff");return h("GET",c.href,{headers:{"Orion-Version":"1"},timeout:15E3}).then(function(b){return b.responseText})},getDiffFileURI:function(c){c=new URL(c,window.location);c.query.set("parts","uris");return h("GET",c.href,{headers:{"Orion-Version":"1"},timeout:15E3}).then(function(b){return JSON.parse(b.responseText)})}},{pattern:i.href});f.connect()});