Commit 5f589842 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

* minor cleanup

parent 2aaad7bd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -76,7 +76,6 @@ public class TranslationHandler extends AbstractHandler {
	}

	private void loadTargetFormat(String bundleName, String label, String extension) {
		//TODO: Rename className to BundleName
		if (Platform.getBundle(bundleName) != null) {
			targetFormats.put(label, extension);
		}
@@ -109,7 +108,8 @@ public class TranslationHandler extends AbstractHandler {
			String type = file.getFileExtension();
			ElementListSelectionDialog dialog = new ElementListSelectionDialog(Display.getDefault().getActiveShell(), new LabelProvider());
			dialog.setTitle("Import configuration");
			dialog.setMessage("Importing "+type+" from "+file.getName()+"\n\nSelect the target format");
			dialog.setMessage("Importing "+type+" from "+file.getName()
								+"\n\nSelect the target format");
			dialog.setElements(targetFormats.keySet().toArray());
			
			dialog.setInitialElementSelections(Arrays.asList(new String[] {TranslationHandler.translationTarget}));