use of org.eclipse.linuxtools.internal.docker.ui.jobs.FindImageInfoRunnable in project linuxtools by eclipse.
the class ImageRunResourceVolumesVariablesPage method findImageInfo.
private IDockerImageInfo findImageInfo(final IDockerImage selectedImage) throws InvocationTargetException, InterruptedException {
final FindImageInfoRunnable findImageInfoRunnable = new FindImageInfoRunnable(selectedImage);
getContainer().run(true, true, findImageInfoRunnable);
final IDockerImageInfo selectedImageInfo = findImageInfoRunnable.getResult();
return selectedImageInfo;
}
use of org.eclipse.linuxtools.internal.docker.ui.jobs.FindImageInfoRunnable in project linuxtools by eclipse.
the class ImageRunSelectionPage method getImageInfo.
/**
* @param selectedImage
* @return the corresponding {@link IDockerImageInfo} or <code>null</code>
* if something went wrong.
*/
private IDockerImageInfo getImageInfo(final IDockerImage selectedImage) {
try {
final FindImageInfoRunnable findImageInfoRunnable = new FindImageInfoRunnable(selectedImage);
getContainer().run(true, true, findImageInfoRunnable);
final IDockerImageInfo selectedImageInfo = findImageInfoRunnable.getResult();
return selectedImageInfo;
} catch (InvocationTargetException | InterruptedException e) {
Activator.log(e);
}
return null;
}
Aggregations