toolItemSmileys.addListener(SWT.Selection,new Listener() {
public void handleEvent(Event event) {
Rectangle bounds = ((ToolItem)event.widget).getBounds();
Point loc = toolBar.toDisplay(bounds.x,bounds.y);
final Shell shell = new Shell(toolBar.getShell(),SWT.RESIZE | SWT.BORDER);
shell.setBounds(loc.x,loc.y,150,200);
shell.setLayout(new FillLayout());
final Tree tree = new Tree(shell,SWT.BORDER);
for(IconDef iconDef : emoticons.getIcons()) {