1// Copyright (c) 2006-2020, JGraph Ltd 2/** 3 * 4 */ 5DesktopLibrary = function(ui, data, fileObj) 6{ 7 LocalLibrary.call(this, ui, data, fileObj.name); 8 this.fileObj = fileObj; 9}; 10 11//Extends LocalLibrary 12mxUtils.extend(DesktopLibrary, LocalLibrary); 13 14/** 15 * 16 */ 17DesktopLibrary.prototype.getHash = function() 18{ 19 return 'S' + encodeURIComponent(this.fileObj.path); 20}; 21 22/** 23 * 24 */ 25DesktopLibrary.prototype.save = function(revision, success, error) 26{ 27 LocalFile.prototype.saveFile.apply(this, arguments); 28}; 29