Bug 19035 Validating Javadoc location causes connection refused in .log
Build F2 1. Open properties of a Java project 2. Enter "" as Javadoc location 3. Press validate 4. Press Ok in the dialog Check the .log: !ENTRY org.eclipse.jdt.ui 4 1 Jun 04, 2002 15:35:15.453 !MESSAGE Internal Error !STACK 0 java.net.ConnectException: Connection refused: connect ....
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/JavadocConfigurationBlock.java
new Label(topComp, SWT.LEFT);
		
		fValidateButton= new Button(topComp, SWT.PUSH);
		fValidateButton.setText(JavaUIMessages.getString("JavadocConfigurationBlock.ValidateButton.label")); 
		GridData gd= new GridData(GridData.HORIZONTAL_ALIGN_END);
		fValidateButton.setLayoutData(gd);
		SWTUtil.setButtonDimensionHint(fValidateButton);
		
		fValidateButton.addSelectionListener(new SelectionAdapter() {
				public void widgetSelected(SelectionEvent event) {
				  EntryValidator validator= new EntryValidator();
				  BusyIndicator indicator= new BusyIndicator();
				  indicator.showWhile(topComp.getDisplay(), validator);
			}
		});
		setValues();
		
		return topComp;
	}
	
	
	
	private void setValues() {
		
		String initialValue = ""; 
		if (fElem != null) {
			try {
				fJavaDocLocation = JavaDocLocations.getJavadocBaseLocation(fElem);
				if (fJavaDocLocation != null)
					initialValue = fJavaDocLocation.toExternalForm();