class TaskJuggler::TagFile
This class specializes ReportBase
to generate tag files used by editors such as vim.
Public Class Methods
new(report)
click to toggle source
Calls superclass method
TaskJuggler::ReportBase::new
# File lib/taskjuggler/reports/TagFile.rb, line 54 def initialize(report) super end
Public Instance Methods
generateIntermediateFormat()
click to toggle source
Calls superclass method
TaskJuggler::ReportBase#generateIntermediateFormat
# File lib/taskjuggler/reports/TagFile.rb, line 58 def generateIntermediateFormat super @tags = [] # Add the resources. @resourceList = PropertyList.new(@project.resources) @resourceList.setSorting(a('sortResources')) @resourceList = filterResourceList(@resourceList, nil, a('hideResource'), a('rollupResource'), a('openNodes')) @resourceList.each do |resource| next unless resource.sourceFileInfo @tags << TagFileEntry.new(resource.fullId, resource.sourceFileInfo.fileName, resource.sourceFileInfo.lineNo, 'r') end # Add the tasks. @taskList = PropertyList.new(@project.tasks) @taskList.setSorting(a('sortTasks')) @taskList = filterTaskList(@taskList, nil, a('hideTask'), a('rollupTask'), a('openNodes')) @taskList.each do |task| next unless task.sourceFileInfo @tags << TagFileEntry.new(task.fullId, task.sourceFileInfo.fileName, task.sourceFileInfo.lineNo, 't') end # Add the reports. @project.reports.each do |report| next unless report.sourceFileInfo @tags << TagFileEntry.new(report.fullId, report.sourceFileInfo.fileName, report.sourceFileInfo.lineNo, 'p') end end