{"id":6,"date":"2009-08-12T14:41:40","date_gmt":"2009-08-12T13:41:40","guid":{"rendered":"http:\/\/lexxweb.co.uk\/blog\/?p=6"},"modified":"2010-03-10T11:37:48","modified_gmt":"2010-03-10T11:37:48","slug":"eclipse-plugin-tag-cloud","status":"publish","type":"post","link":"https:\/\/blog.lexxweb.co.uk\/?p=6","title":{"rendered":"Eclipse Plugin Tag Cloud"},"content":{"rendered":"<p>I got fed up looking for a nice version of an eclipse tag cloud so instead I made my own.<\/p>\n<p>Its simple but effective.<\/p>\n<div id=\"attachment_13\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/lexxweb.co.uk\/blog\/wp-content\/uploads\/2009\/08\/tagcloudeclipse.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-13\" class=\"size-medium wp-image-13\" title=\"tagcloudeclipse\" src=\"http:\/\/lexxweb.co.uk\/blog\/wp-content\/uploads\/2009\/08\/tagcloudeclipse-300x157.jpg\" alt=\"Eclipse Plugin Tag Cloud\" width=\"300\" height=\"157\" srcset=\"https:\/\/blog.lexxweb.co.uk\/wp-content\/uploads\/2009\/08\/tagcloudeclipse-300x157.jpg 300w, https:\/\/blog.lexxweb.co.uk\/wp-content\/uploads\/2009\/08\/tagcloudeclipse.jpg 791w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-13\" class=\"wp-caption-text\">Eclipse Plugin Tag Cloud<\/p><\/div>\n<p>You can download the archive here. Or look at the code below.<\/p>\n<p><a href=\"http:\/\/lexxweb.co.uk\/blog\/wp-content\/uploads\/2009\/08\/eclipseTagCloud.zip\">eclipseTagCloud<\/a>.zip<\/p>\n<p>All you should need to do to display it is make a viewpart and then write something like.<\/p>\n<p><code><\/p>\n<pre lang=\"java\">\/\/ pass the tag cloud generate a data structure like the following\r\n\/\/ example code\r\nArrayList al = new ArrayList();\r\nal.add(new Pair(\"tag 1\", 3);\r\nal.add(new Pair(\"tag 2\", 6);\r\n\/\/ create the tag cloud generator\r\nEclipseTagCloudGenerator tclg = new EclipseTagCloudGenerator(al);\r\ntclg.setMaxTags(35); \/\/set max tags to display (by default will display most frequent)\r\ntclg.setScale(2); \/\/set scale to increase font by\r\ntclg.generateTagCloudDisplay(comp, tclg.getTagCloud()); \/\/generate the tag cloud and attach it to the parent comp object<\/pre>\n<p><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got fed up looking for a nice version of an eclipse tag cloud so instead I made my own. Its simple but effective. You can download the archive here. Or look at the code below. eclipseTagCloud.zip All you should need to do to display it is make a viewpart and then write something like. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5,11],"tags":[13,25,14,16,15,17],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-eclipseplugins","category-tagging","tag-eclipse","tag-java","tag-plugin","tag-tag","tag-tag-cloud","tag-web2-0"],"_links":{"self":[{"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6"}],"version-history":[{"count":9,"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/6\/revisions"}],"predecessor-version":[{"id":9,"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/6\/revisions\/9"}],"wp:attachment":[{"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}