{"id":39,"date":"2010-01-04T11:08:57","date_gmt":"2010-01-04T11:08:57","guid":{"rendered":"http:\/\/lexxweb.co.uk\/blog\/?p=39"},"modified":"2010-01-04T11:08:57","modified_gmt":"2010-01-04T11:08:57","slug":"eclipse-plugin-development-wrapping-text-in-a-label","status":"publish","type":"post","link":"https:\/\/blog.lexxweb.co.uk\/?p=39","title":{"rendered":"Eclipse Plugin Development: Wrapping Text In a Label"},"content":{"rendered":"<p>Today I was having trouble wrapping text in a label on an SWT shell in an eclipse plugin.<\/p>\n<p>I found a useful guide that explains what was going wrong. It can be found here.<\/p>\n<p><a href=\"http:\/\/book.javanb.com\/swt-the-standard-widget-toolkit\/ch15lev1sec12.html\">Wrapping Text Guide<\/a><\/p>\n<p>The problem was I hadn&#8217;t defined a widthHint for the grid data object. This is apparently used by the label component to work out whether it needs to wrap or not.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I was having trouble wrapping text in a label on an SWT shell in an eclipse plugin. I found a useful guide that explains what was going wrong. It can be found here. Wrapping Text Guide The problem was I hadn&#8217;t defined a widthHint for the grid data object. This is apparently used by [&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":[3],"tags":[],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/39","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=39"}],"version-history":[{"count":2,"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":41,"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/39\/revisions\/41"}],"wp:attachment":[{"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lexxweb.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}