public OkButtonsPanel(Composite parent, boolean withImages) {
   super(
       parent,
       new ButtonInPanel[] {
         new ButtonInPanel(
             "ok",
             withImages ? SharedImages.getImage(SharedImages.icons.x16.basic.OK) : null,
             Local.Ok.toString()),
       });
 }
 @Override
 protected Control createControl(Composite parent) {
   ImageAndTextButton button =
       new ImageAndTextButton(
           parent,
           SharedImages.getImage(SharedImages.icons.x16.basic.MAIL),
           Local.Contact.toString());
   button.addClickListener(
       new Listener<MouseEvent>() {
         public void fire(MouseEvent event) {
           new ContactDialog().openProgressive(null, MyDialog.OrientationY.BOTTOM, true);
         }
       });
   return button;
 }
 public List<Pair<String, Image>> getAllPossibleNames() {
   List<Pair<String, Image>> list = new LinkedList<Pair<String, Image>>();
   for (String source : info.getSources()) {
     String name = info.getSourceName(source);
     if (name == null || name.trim().length() == 0) continue;
     Image icon =
         InfoRetrieverPluginRegistry.getIconForSource(source, data.getContentType().getID());
     list.add(new Pair<String, Image>(name, icon));
   }
   if (data.getSources().size() == 1) {
     list.add(
         new Pair<String, Image>(
             FileSystemUtil.getFileNameWithoutExtension(data.getSources().get(0).getFileName()),
             SharedImages.getImage(SharedImages.icons.x16.file.FILE)));
   }
   return list;
 }
 public DateControl(Composite parent) {
   super(parent, SWT.NONE);
   setBackground(parent.getBackground());
   GridLayout layout = UIUtil.gridLayout(this, 2, 0, 0);
   layout.horizontalSpacing = 1;
   text = UIUtil.newText(this, "", new TextChanged());
   UIControlUtil.increaseFontSize(text, -2);
   GridData gd = new GridData();
   gd.widthHint = 50;
   text.setLayoutData(gd);
   button =
       UIUtil.newImageButton(
           this,
           SharedImages.getImage(SharedImages.icons.x16.basic.CALENDAR_POPUP),
           new ButtonListener(),
           null);
 }