Bug 119528 [build path] "Add Java Source Attachment" default path should be Jar's path
When using Buildpath Jar-> Properties -> Add Java Source Attachment -> (External File Or External Folder), the default folders for the browse dialog can be improved to improve usability and productivity. The most appropriate starting folder for the dialog is surely the folder containing the Jar for which we are setting the source path, since the soource archive or folder will likely be nearby (ie locality principle). Currently, I am getting "My documents" for source folder everytime, and I waste valuable effoct navigating around to the network drive where our library archives are maintained. Similar behavior for source archives zips.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceAttachmentBlock.java
}
		return null;
	}	
	
	/*
	 * Opens a dialog to choose an internal jar.
	 */	
	private IPath chooseInternal() {
		String initSelection= fFileNameField.getText();
		
		ViewerFilter filter= new ArchiveFileFilter((List) null, false);
		ILabelProvider lp= new WorkbenchLabelProvider();
		ITreeContentProvider cp= new WorkbenchContentProvider();
		IResource initSel= null;
		if (initSelection.length() > 0) {
			initSel= fWorkspaceRoot.findMember(new Path(initSelection));
		}
		if (initSel == null) {
			initSel= fWorkspaceRoot.findMember(fEntry.getPath());
		}
		FolderSelectionDialog dialog= new FolderSelectionDialog(getShell(), lp, cp);
		dialog.setAllowMultiple(false);
		dialog.addFilter(filter);
		dialog.setTitle(NewWizardMessages.SourceAttachmentBlock_intjardialog_title); 
		dialog.setMessage(NewWizardMessages.SourceAttachmentBlock_intjardialog_message); 
		dialog.setInput(fWorkspaceRoot);
		dialog.setInitialSelection(initSel);
		if (dialog.open() == Window.OK) {
			IResource res= (IResource) dialog.getFirstResult();
			return res.getFullPath();