Quantcast

How to list folders in tree structure in sonar 3.0

classic Classic list List threaded Threaded
4 messages Options
run
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

How to list folders in tree structure in sonar 3.0

run
I am trying  the following code in .erb  file    with sonar 3.0  to show folders in tree structure.

        Order:
        <%= select_tag 'size_metric', options_from_collection_for_select(
          Sonar::TreemapBuilder.size_metrics, :key, :short_name, Sonar::TreemapBuilder.default_size_metric.key),
          :id => 'select_size_metric', :class => 'small',:onchange => "load_treemap(current_resource_key);" %>
                           Color:
        <%= select_tag 'color_metric', options_from_collection_for_select(
            Sonar::TreemapBuilder.color_metrics, :key, :short_name, Sonar::TreemapBuilder.default_color_metric.key),
            :id => 'select_color_metric', :class => 'small', :onchange => "load_treemap(current_resource_key);" %>
     




will result error  with message "We're sorry, but something went wrong."


But it works with sonar 2.11  pefectly.   I think  soanr removed some clases. Thn which are the replacement class.            
 My target  is display directory and folders in tree structure.   please help me..
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: How to list folders in tree structure in sonar 3.0

Jorge Costa
maybe its related with this http://jira.codehaus.org/browse/SONAR-3584

try upgrading to 3.1.1
Best Regards
Jorge Costa
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [sonar-dev] Re: How to list folders in tree structure in sonar 3.0

Simon Brandhof
Hi,

Indeed the class Sonar::TreemapBuilder has been removed. I can't really tell you how to fix the issue because this class is not considered as API.

Regards
Simon


On 3 July 2012 13:33, jmecosta <[hidden email]> wrote:
maybe its related with this http://jira.codehaus.org/browse/SONAR-3584

try upgrading to 3.1.1

--
View this message in context: http://sonar.15.n6.nabble.com/How-to-list-folders-in-tree-structure-in-sonar-3-0-tp5000522p5000536.html
Sent from the Sonar dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email





--

Simon BRANDHOF | SonarSource
http://sonarsource.com

run
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [sonar-dev] Re: How to list folders in tree structure in sonar 3.0

run
Thankyou
Loading...