msgBox.setMessage("Are you really sure that you want to sort the labelfile: \n" + _file.getFullPath());
int response = msgBox.open();
if (response == SWT.YES) {
SortedProperties sortedProperties = new SortedProperties();
sortedProperties.putAll(_props);
FileOutputStream labelFileStream = null;
try {
labelFileStream = new FileOutputStream(_file.getLocation().toString());
sortedProperties.store(labelFileStream, null);
_file.refreshLocal(IResource.DEPTH_ZERO, new NullProgressMonitor());
} catch (IOException e) {
WGADesignerPlugin.getDefault().logInfo("Unable to store file: " + _file.getLocation(), e);
} catch (CoreException e) {
WGADesignerPlugin.getDefault().logInfo("Unable to refresh resource on: " + _file.getLocation(), e);