show output dir for index creation

git-svn-id: https://osmand.googlecode.com/svn/trunk@802 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Victor Shcherb 2010-12-11 15:31:16 +00:00
parent 1a18058ea7
commit ceb29f4135
2 changed files with 5 additions and 2 deletions

View file

@ -14,6 +14,7 @@ import java.io.OutputStream;
import java.lang.Thread.UncaughtExceptionHandler; import java.lang.Thread.UncaughtExceptionHandler;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException; import java.sql.SQLException;
import java.text.MessageFormat;
import javax.swing.AbstractAction; import javax.swing.AbstractAction;
import javax.swing.JCheckBox; import javax.swing.JCheckBox;
@ -407,7 +408,8 @@ public class OsmExtractionUI implements IMapLocationListener {
@Override @Override
public void run() { public void run() {
IndexCreator creator = new IndexCreator(DataExtractionSettings.getSettings().getDefaultWorkingDir()); File dir = DataExtractionSettings.getSettings().getDefaultWorkingDir();
IndexCreator creator = new IndexCreator(dir);
try { try {
creator.setIndexAddress(buildAddressIndex.isSelected()); creator.setIndexAddress(buildAddressIndex.isSelected());
creator.setIndexPOI(buildPoiIndex.isSelected()); creator.setIndexPOI(buildPoiIndex.isSelected());
@ -454,7 +456,7 @@ public class OsmExtractionUI implements IMapLocationListener {
comma = true; comma = true;
msg.append(Messages.getString("OsmExtractionUI.TRANSPORT")); //$NON-NLS-1$ msg.append(Messages.getString("OsmExtractionUI.TRANSPORT")); //$NON-NLS-1$
} }
msg.append(Messages.getString("OsmExtractionUI.SUCCESFULLY_CREATED")); //$NON-NLS-1$ msg.append(MessageFormat.format(Messages.getString("OsmExtractionUI.WERE_SUCCESFULLY_CREATED"), dir.getAbsolutePath())); //$NON-NLS-1$
JOptionPane pane = new JOptionPane(msg); JOptionPane pane = new JOptionPane(msg);
JDialog dialog = pane.createDialog(frame, Messages.getString("OsmExtractionUI.GENERATION_DATA")); //$NON-NLS-1$ JDialog dialog = pane.createDialog(frame, Messages.getString("OsmExtractionUI.GENERATION_DATA")); //$NON-NLS-1$
dialog.setVisible(true); dialog.setVisible(true);

View file

@ -73,6 +73,7 @@ OsmExtractionUI.SAVING_OSM_FILE=Saving osm file
OsmExtractionUI.SELECT_AREA=Select area OsmExtractionUI.SELECT_AREA=Select area
OsmExtractionUI.SELECT_AREA_TO_FILTER=Select area to filter OsmExtractionUI.SELECT_AREA_TO_FILTER=Select area to filter
OsmExtractionUI.SPECIFY_WORKING_DIR=Specify working directory... OsmExtractionUI.SPECIFY_WORKING_DIR=Specify working directory...
OsmExtractionUI.WERE_SUCCESFULLY_CREATED=\ were successfully created \n\t at {0}.
OsmExtractionUI.SUCCESFULLY_CREATED=\ - successfully created in working directory. OsmExtractionUI.SUCCESFULLY_CREATED=\ - successfully created in working directory.
OsmExtractionUI.TRANSPORT=transport OsmExtractionUI.TRANSPORT=transport
OsmExtractionUI.UNABLE_OPEN_FILE=Failed to open log file OsmExtractionUI.UNABLE_OPEN_FILE=Failed to open log file