/**
   * @see
   *     de.willuhn.jameica.gui.dialogs.PasswordDialog#extend(de.willuhn.jameica.gui.util.Container)
   */
  protected void extend(Container container) throws Exception {
    if (this.filename == null) return;

    Part p =
        new Part() {
          public void paint(Composite parent) throws RemoteException {
            String text = i18n.tr("Schlüssel-Datei: {0}", filename);

            final Label comment = new Label(parent, SWT.WRAP);
            comment.setText(text);
            comment.setForeground(Color.COMMENT.getSWTColor());
            comment.setLayoutData(new GridData(GridData.FILL_BOTH));
            // Workaround fuer Windows, weil dort mehrzeilige
            // Labels nicht korrekt umgebrochen werden.
            comment.addControlListener(
                new ControlAdapter() {
                  public void controlResized(ControlEvent e) {
                    comment.setSize(comment.computeSize(comment.getSize().x, SWT.DEFAULT));
                  }
                });
          }
        };
    container.addPart(p);
  }