Bug 3555 source for binaries - 'defaults' button does not work (1G840M4)
AK (1/25/01 2:43:33 PM) 1. create a java project 2. open the properties page for rt.jar in the project 3. clear the 'Sources JAR file' field 4. press 'Defaults' nothing happens NOTES: EG (2/1/01 10:02:53 AM) wait until we finish the Library presentation issue.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/SourceAttachmentPropertyPage.java
private SourceAttachmentBlock fSourceAttachmentBlock;
	private IPackageFragmentRoot fJarRoot;
	public SourceAttachmentPropertyPage() {
	}
	
	/*
	 * @see PreferencePage#createContents
	 */
	protected Control createContents(Composite composite) {
		fJarRoot= getJARPackageFragmentRoot();
		if (fJarRoot != null) {
			try {
				IClasspathEntry entry= JavaModelUtil.getRawClasspathEntry(fJarRoot);
				if (entry == null) {
					
					entry= JavaCore.newLibraryEntry(fJarRoot.getPath(), null, null);
				}
				IWorkspaceRoot wsroot= fJarRoot.getJavaModel().getWorkspace().getRoot();
				fSourceAttachmentBlock= new SourceAttachmentBlock(wsroot, this, entry);
				return fSourceAttachmentBlock.createControl(composite);				
			} catch (CoreException e) {
				JavaPlugin.log(e.getStatus());
			}		
		}
		Label label= new Label(composite, SWT.LEFT + SWT.WRAP);
		label.setText(JavaUIMessages.getString("SourceAttachmentPropertyPage.noarchive.message")); 
		label.setFont(composite.getFont());