title: How do I create an eclipse toolbar item with SWT.RADIO style with drop-down capabilities?
body: <p>In eclipse SWT land, it comes in handy when you can add multiple styles to controls. Toolbars can have multiple styles added. Can't tool items enjoy the same privilege? What is the work around solution?</p>
  
  <p>The ToolItem API clearly states that </p>
  
  <blockquote>
    <p>Only one of the styles CHECK, PUSH, RADIO, SEPARATOR and DROP_DOWN may
    be specified.</p>
  </blockquote>
  
  <p>Basically, I would like to have a toolbar item to behave like a radio button with a drop down. I want users to be able to change an item's default action from a list of items in its drop down.</p>
  
  <p>Can anyone kindly point me in the right direction?</p>
  
  <pre><code>    ...
      ToolBar toolBar = new ToolBar(composite, SWT.FLAT | SWT.RIGHT | SWT.HORIZONTAL);
  
      ToolItem item1 = new ToolItem(toolBar, SWT.RADIO);
      item1.addSelectionListener(new SelectionAdapter() {
          @Override
          public void widgetSelected(SelectionEvent e) {
              // do something
          }
      });
      item1.setImage(image1);
  
      ToolItem item2 = new ToolItem(toolBar, SWT.RADIO | STW.DROP_DOWN); //only allowed in my dreams
      item2.addSelectionListener(new SelectionAdapter() {
          @Override
          public void widgetSelected(SelectionEvent e) {
              // do a drop down action and lots more.
              // change image of this ToolItem to match the drop down selection.
              item2.setImage(selectedImage);
          }
  
      });
      item2.setImage(image2);
  </code></pre>