protected Control createContents(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout(1, false);
    layout.verticalSpacing = 10;
    composite.setLayout(layout);

    Group grpLocation = new Group(composite, SWT.NONE);
    grpLocation.setText(RM.getLabel("shrtc.location.label"));
    GridLayout grpLayout = new GridLayout(2, false);
    grpLocation.setLayout(grpLayout);
    grpLocation.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

    location = new Text(grpLocation, SWT.BORDER);
    GridData mainData2 = new GridData(SWT.FILL, SWT.CENTER, true, false);
    mainData2.widthHint = AbstractWindow.computeWidth(400);
    location.setLayoutData(mainData2);
    location.setText(
        FileSystemManager.getAbsolutePath(new File(initialDirectory, initialFileNameSelected)));
    monitorControl(location);

    Button btnBrowse = new Button(grpLocation, SWT.PUSH);
    btnBrowse.setText(RM.getLabel("common.browseaction.label"));
    btnBrowse.addListener(
        SWT.Selection,
        new Listener() {
          public void handleEvent(Event event) {
            File f = new File(location.getText());
            String path =
                application.showFileDialog(
                    FileSystemManager.getParent(f),
                    BackupShortcutWizardWindow.this,
                    FileSystemManager.getName(f),
                    RM.getLabel("app.buildbatch.label"),
                    SWT.SAVE);
            if (path != null) {
              location.setText(path);
            }
          }
        });
    btnBrowse.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false));

    Group grpType = new Group(composite, SWT.NONE);
    grpType.setText(RM.getLabel("shrtc.type.label"));
    grpType.setLayout(new GridLayout(1, false));
    grpType.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

    radIncremental = new Button(grpType, SWT.RADIO);
    radIncremental.setText(RM.getLabel("archivedetail.incremental.label"));
    radIncremental.setToolTipText(RM.getLabel("archivedetail.incremental.tooltip"));
    radIncremental.setSelection(true);

    radDifferential = new Button(grpType, SWT.RADIO);
    radDifferential.setText(RM.getLabel("archivedetail.differential.label"));
    radDifferential.setToolTipText(RM.getLabel("archivedetail.differential.tooltip"));

    radFull = new Button(grpType, SWT.RADIO);
    radFull.setText(RM.getLabel("archivedetail.full.label"));
    radFull.setToolTipText(RM.getLabel("archivedetail.full.tooltip"));

    Group grpScope = new Group(composite, SWT.NONE);
    grpScope.setText(RM.getLabel("shrtc.scope.label"));
    grpScope.setLayout(new GridLayout(1, false));
    grpScope.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));

    radSelectedOnly = new Button(grpScope, SWT.RADIO);
    radSelectedOnly.setText(RM.getLabel("shrtc.forselected.label"));
    radSelectedOnly.setLayoutData(new GridData());
    radSelectedOnly.setSelection(true);
    radSelectedOnly.addListener(
        SWT.Selection,
        new Listener() {
          public void handleEvent(Event event) {
            File loc = new File(location.getText());
            if (FileSystemManager.getName(loc).equals(initialFileNameAll)) {
              location.setText(
                  FileSystemManager.getAbsolutePath(
                      new File(FileSystemManager.getParentFile(loc), initialFileNameSelected)));
            }
          }
        });
    monitorControl(SWT.Selection, radSelectedOnly);

    radAll = new Button(grpScope, SWT.RADIO);
    radAll.setText(RM.getLabel("shrtc.forall.label"));
    radAll.setLayoutData(new GridData());
    radAll.addListener(
        SWT.Selection,
        new Listener() {
          public void handleEvent(Event event) {
            File loc = new File(location.getText());
            if (FileSystemManager.getName(loc).equals(initialFileNameSelected)) {
              location.setText(
                  FileSystemManager.getAbsolutePath(
                      new File(FileSystemManager.getParentFile(loc), initialFileNameAll)));
            }
          }
        });
    monitorControl(SWT.Selection, radAll);

    Group grpCheckArchive = new Group(composite, SWT.NONE);
    grpCheckArchive.setText(RM.getLabel("archivedetail.checkgroup.label"));
    grpCheckArchive.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
    grpCheckArchive.setLayout(new GridLayout(1, false));

    chkCheckArchive = new Button(grpCheckArchive, SWT.CHECK);
    chkCheckArchive.setText(RM.getLabel("archivedetail.checkarchive.label"));
    chkCheckArchive.setToolTipText(RM.getLabel("archivedetail.checkarchive.tooltip"));
    chkCheckArchive.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));
    chkCheckArchive.setSelection(true);
    monitorControl(chkCheckArchive);

    SavePanel pnlSave = new SavePanel(this);
    pnlSave.buildComposite(composite).setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, true, true));
    saveButton = pnlSave.getBtnSave();

    composite.pack();
    return composite;
  }
  public PhysicalViewComposite(final CTabFolder parent) {
    super(parent, SWT.NONE);
    GridLayout lyt = new GridLayout(6, false);
    lyt.marginHeight = 0;
    lyt.marginBottom = 2;
    lyt.verticalSpacing = 2;
    lyt.marginWidth = 0;
    setLayout(lyt);

    viewer = new TableViewer(this, SWT.BORDER | SWT.MULTI);
    viewer.addDoubleClickListener(
        new IDoubleClickListener() {
          public void doubleClick(DoubleClickEvent event) {
            application.showArchiveDetail(null);
          }
        });

    table = viewer.getTable();
    table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 6, 1));
    table.setLinesVisible(AbstractWindow.getTableLinesVisible());
    table.setHeaderVisible(true);
    String[] titles =
        new String[] {
          ResourceManager.instance().getLabel("mainpanel.description.label"),
          ResourceManager.instance().getLabel("mainpanel.date.label"),
          ResourceManager.instance().getLabel("mainpanel.size.label")
        };

    for (int i = 0; i < titles.length; i++) {
      TableColumn column = new TableColumn(table, SWT.NONE);
      column.setText(titles[i]);
      column.setMoveable(true);
    }

    table.getColumn(1).setWidth(AbstractWindow.computeWidth(200));
    table.getColumn(0).setWidth(AbstractWindow.computeWidth(400));
    table.getColumn(2).setWidth(AbstractWindow.computeWidth(150));

    table.getColumn(2).setAlignment(SWT.RIGHT);
    table.addSelectionListener(this);

    table.setMenu(Application.getInstance().getActionContextMenu());

    /*
    messageMainContainer = new Composite(this, SWT.NONE);
    messageMainContainer.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 6, 1));
    GridLayout lytMsg = new GridLayout(1, false);
    lytMsg.marginHeight = 1;
    lytMsg.marginWidth = 1;
    messageMainContainer.setLayout(lytMsg);
     */

    Label lblIncrementalImg = new Label(this, SWT.NONE);
    lblIncrementalImg.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));
    lblIncrementalImg.setImage(ArecaImages.ICO_FS_FOLDER);

    Label lblIncremental = new Label(this, SWT.NONE);
    lblIncremental.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false));
    lblIncremental.setText(ResourceManager.instance().getLabel("archivedetail.incremental.label"));

    Label lblDifferentialImg = new Label(this, SWT.NONE);
    lblDifferentialImg.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));
    lblDifferentialImg.setImage(ArecaImages.ICO_FS_FOLDER_DIFFERENTIAL);

    Label lblDifferential = new Label(this, SWT.NONE);
    lblDifferential.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false));
    lblDifferential.setText(
        ResourceManager.instance().getLabel("archivedetail.differential.label"));

    Label lblFullImg = new Label(this, SWT.NONE);
    lblFullImg.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));
    lblFullImg.setImage(ArecaImages.ICO_FS_FOLDER_FULL);

    Label lblFull = new Label(this, SWT.NONE);
    lblFull.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false));
    lblFull.setText(ResourceManager.instance().getLabel("archivedetail.full.label"));

    parent.addListener(
        SWT.Selection,
        new Listener() {
          public void handleEvent(Event event) {
            Application.getInstance().setLatestVersionRecoveryMode(parent.getSelectionIndex() != 0);
          }
        });
  }