Messages.getString("BundledResourceEditor.Resources"), true),
new FilesystemFilter(new String[]{".gif", ".jpg", ".jpeg", ".png", ".svg", ".wmf"}, // NON-NLS
Messages.getString("BundledResourceEditor.Images"), true),
};
final CommonFileChooser fileChooser = FileChooserService.getInstance().getFileChooser("resources");//NON-NLS
fileChooser.setFilters(filters);
final String sourceFile = sourceTextField.getText();
if (StringUtils.isEmpty(sourceFile) == false)
{
if (reportContextFile != null)
{
fileChooser.setSelectedFile(new File(reportContextFile.getParentFile(), sourceTextField.getText()));
}
else
{
fileChooser.setSelectedFile(new File(sourceTextField.getText()));
}
}
if (fileChooser.showDialog(ResourcePropertyEditorComponent.this, JFileChooser.OPEN_DIALOG) == false)
{
return;
}
final File file = fileChooser.getSelectedFile();
if (file == null)
{
return;
}