return null;
}
protected Object openDialogBox(Control cellEditorWindow) {
try {
ImageSelectionDialog isd = new ImageSelectionDialog(
cellEditorWindow.getShell());
String text = iconText.getText();
if (text != null && text.trim().length() > 0) {
IJavaProject javaProject = VisualSwingPlugin.getCurrentProject();
if (javaProject != null) {
IPackageFragmentRoot src_root = getSourceRoot(javaProject);
if (src_root != null) {
String srcName = src_root.getElementName();
IProject prj = javaProject.getProject();
IFile file = prj.getFolder(srcName).getFile(text);
if (file != null && file.exists())
isd.setImageFile(file);
}
}
}
int ret = isd.open();
if (ret == Window.OK) {
IFile file = isd.getImageFile();
if (file == null) {
return "";
} else {
IPath location = file.getFullPath();
location = location.removeFirstSegments(2);