Code example for URL

Methods: toString

0
		if (w.length() > 0) {
			try { 
				web = new URL(w);
			} catch (MalformedURLException e) {
				try { 
					web = new URL("http://" + w);
					getPackagerOptionsPanel().getWebpageField().setText(web.toString());
				} catch (MalformedURLException ignored) {}
			} 
		} 
		final String desc = getPackagerOptionsPanel().getDescriptionArea().getText();
		final String author = getPackagerOptionsPanel().getAuthorField().getText();
		final String version = getPackagerOptionsPanel().getVersionField().getText();
		final boolean source = getPackagerOptionsPanel().getIncludeSource().isSelected();
		final java.util.List<IRobotSpecItem> robots = getRobotSelectionPanel().getSelectedRobots();
 
		final String res = repositoryManager.createPackage(f, web, desc, author, version, source, robots);
		ConsoleDialog d = new ConsoleDialog(windowManager.getRobocodeFrame(), "Packaging results", false);
 
		d.setText(res);
		d.pack();
		WindowUtil.packCenterShow(this, d);