use of org.eclipse.linuxtools.internal.docker.ui.ContainerDirectorySelectionDialog in project linuxtools by eclipse.
the class ContainerCopyToPage method handleContainerBrowseButtonPressed.
@Override
protected void handleContainerBrowseButtonPressed() {
ContainerDirectorySelectionDialog dialog = new ContainerDirectorySelectionDialog(sourceNameField.getShell(), this.root, this.provider, NLS.bind(CONTAINER_DIRECTORY_MSG, containerName));
if (dialog.open() == IStatus.OK) {
Object[] result = dialog.getResult();
ContainerFileProxy proxy = (ContainerFileProxy) result[0];
// If it is valid then proceed to populate
setErrorMessage(null);
setContainerFieldValue(proxy.getFullPath());
selectionGroup.setFocus();
}
updateWidgetEnablements();
}
Aggregations