114115116117118119120121122123124
labelResult.setText(RouteConverter.getBundle().getString("add-route-no-description-error")); pack(); return; } catalogModel.addRoute(category, description, file, null, new AddRouteCallback()); labelResult.setText(RouteConverter.getBundle().getString("add-route-by-file-success")); pack(); dispose(); }
113114115116117118119120121122123
labelResult.setText(RouteConverter.getBundle().getString("add-route-no-description-error")); pack(); return; } catalogModel.addRoute(category, description, null, url, new AddRouteCallback()); labelResult.setText(RouteConverter.getBundle().getString("add-route-by-url-success")); pack(); dispose(); }
7374757677787980
} public void undo() throws CannotUndoException { super.undo(); for (int i = 0; i < categories.size(); i++) { catalogModel.addRoute(categories.get(i), descriptions.get(i), toFile(files.get(i)), urls.get(i), new AddRouteCallback(), false); } }