ide/webstorm/webstorm.js
function writeProjectViewTemplate(rootPath) {
  var context = {
    rootPath: rootPath
  };

  var templateSource = path.join(String(__dirname), 'template', 'projectView.xml');
  var toolTemplate = fs.readFileSync(templateSource);
  return io.templateSync (toolTemplate, context);
}
function writeProjectViewTemplate(rootPath) {
  var context = {
    rootPath: rootPath
  };

  var templateSource = path.join(String(__dirname), 'template', 'projectView.xml');
  var toolTemplate = fs.readFileSync(templateSource);
  return io.templateSync (toolTemplate, context);
}
function writeProjectViewTemplate ( rootPath ) { var context = { rootPath : rootPath } ; var templateSource = path . join ( String ( __dirname ) , 'template' , 'projectView.xml' ) ; var toolTemplate = fs . readFileSync ( templateSource ) ; return io . templateSync ( toolTemplate , context ) ; }
Utility to write the ProjectView node require for project pane default in the .idea/workspace.xml.
@param rootPath (the name of the project root so tree node will be open in the project)
@returns {string}
Utility to write the ProjectView node require for project pane default in the . idea / workspace . xml .