Search in sources :

Example 1 with ContainerDirectorySelectionDialog

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();
}
Also used : ContainerFileProxy(org.eclipse.linuxtools.internal.docker.core.ContainerFileProxy) ContainerDirectorySelectionDialog(org.eclipse.linuxtools.internal.docker.ui.ContainerDirectorySelectionDialog)

Aggregations

ContainerFileProxy (org.eclipse.linuxtools.internal.docker.core.ContainerFileProxy)1 ContainerDirectorySelectionDialog (org.eclipse.linuxtools.internal.docker.ui.ContainerDirectorySelectionDialog)1