// if is, use those extensions to filter this list.
// note: in windows using "reg query ..." to read bindings form registry would work.
// Note : If the above mentioned filtering is implemented it should be made optional / configurable.
- dialog.setFilterExtensions(new String[]{"*.*"});
+ dialog.setFilterExtensions(new String[]{"*.*"}); //$NON-NLS-1$
if (dialog.open() == null) return;
String filterPath = dialog.getFilterPath();
String[] filenames = dialog.getFileNames();
- ImportJob job = new ImportJob(filenames.length > 1 ? "Import files" : "Import file", resource, filterPath, filenames);
+ ImportJob job = new ImportJob(filenames.length > 1 ? Messages.ImportDocument_JobImportFiles : Messages.ImportDocument_ImportFile, resource, filterPath, filenames);
job.setUser(true);
job.schedule();
}
@Override
protected IStatus run(final IProgressMonitor monitor) {
- monitor.beginTask("Importing...", filenames.length);
+ monitor.beginTask(Messages.ImportDocument_ImportingDots, filenames.length);
try {
Simantics.getSession().syncRequest(new WriteRequest() {
@Override
}
}
});
- return new Status(IStatus.OK, Activator.PLUGIN_ID, "Import succesful.");
+ return new Status(IStatus.OK, Activator.PLUGIN_ID, Messages.ImportDocument_ActivatorImportSucessful);
} catch (DatabaseException e) {
- return new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Import failed.", e);
+ return new Status(IStatus.ERROR, Activator.PLUGIN_ID, Messages.ImportDocument_ImportFailed, e);
} finally {
monitor.done();
}