0) {
fsWrite.each(function(fileSystem) {
fsSelect.insertRecord({jsxid:fileSystem.getId(), jsxtext:fileSystem.getLabel()});
});
fsSelect.setValue(fsWrite[0].getId());
this._onFSSelect(fsWrite[0].getId());
} else {
fsSelect.setEnabled(false, true);
}
};
objJSX._getFS = function(id) {
return jsx3.ide.getPlugIn("jsx3.io").getFileSystemById(id);
};
objJSX._onFSSelect = function(id) {
var fileSystem = this._getFS(id);
homepath.setValue("", true);
btnBrowse.setEnabled(false, true);
if (fileSystem) {
fileSystem.load().when(function() {
var fs = fileSystem.getInstance();
var userDocs = fs.getUserDocuments();
if (userDocs)
homepath.setValue(userDocs.resolve(jsx3.ide.DEFAULT_USER_HOME).getAbsolutePath(), true);
btnBrowse.setEnabled(fileSystem && fileSystem.hasList(), true);
});
}
};
objJSX.registerHotKey('doCreate', jsx3.gui.Event.KEY_ENTER, false, false, false);
objJSX.onInit();
]]>