ImageSelectionDialog dialog =
new ImageSelectionDialog(getParentShell(),
state.getResourcesProvider(),
state.getModuleDescription(),
property.getTitle());
if (dialog.open() == Window.OK) {
String resourcePath = dialog.getSelectedResourcePath();
property.setValue(resourcePath);
}
}