Search in sources :

Example 1 with LocalFolderSelector

use of org.netxms.ui.eclipse.filemanager.widgets.LocalFolderSelector in project netxms by netxms.

the class StartClientToAgentFolderUploadDialog method createDialogArea.

/* (non-Javadoc)
	 * @see org.eclipse.jface.dialogs.Dialog#createDialogArea(org.eclipse.swt.widgets.Composite)
	 */
@Override
protected Control createDialogArea(Composite parent) {
    Composite dialogArea = (Composite) super.createDialogArea(parent);
    GridLayout layout = new GridLayout();
    layout.marginHeight = WidgetHelper.DIALOG_HEIGHT_MARGIN;
    layout.marginWidth = WidgetHelper.DIALOG_WIDTH_MARGIN;
    layout.verticalSpacing = WidgetHelper.DIALOG_SPACING;
    dialogArea.setLayout(layout);
    fileSelector = new LocalFolderSelector(dialogArea, SWT.NONE, false, SWT.OPEN);
    fileSelector.setLabel(Messages.get().StartClientToServerFileUploadDialog_LocalFile);
    GridData gd = new GridData();
    gd.horizontalAlignment = SWT.FILL;
    gd.grabExcessHorizontalSpace = true;
    gd.widthHint = 400;
    fileSelector.setLayoutData(gd);
    textRemoteFile = new LabeledText(dialogArea, SWT.NONE);
    textRemoteFile.setLabel(Messages.get().StartClientToServerFileUploadDialog_RemoteFileName);
    gd = new GridData();
    gd.horizontalAlignment = SWT.FILL;
    gd.grabExcessHorizontalSpace = true;
    textRemoteFile.setLayoutData(gd);
    return dialogArea;
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) LocalFolderSelector(org.netxms.ui.eclipse.filemanager.widgets.LocalFolderSelector) LabeledText(org.netxms.ui.eclipse.widgets.LabeledText) GridData(org.eclipse.swt.layout.GridData)

Aggregations

GridData (org.eclipse.swt.layout.GridData)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 Composite (org.eclipse.swt.widgets.Composite)1 LocalFolderSelector (org.netxms.ui.eclipse.filemanager.widgets.LocalFolderSelector)1 LabeledText (org.netxms.ui.eclipse.widgets.LabeledText)1