Bug 85385 New JProject wizard should check whether linked folders exist
I20050215-2300 The new source page on the New Java Project wizard allows to create linked folders to locations that don't exists. This leads to various problems and .log entries later.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/LinkFolderDialog.java
fLinkLocation.doFillIntoGrid(parent, numColumns);
            GridData data= (GridData)fLinkLocation.getLabelControl(null).getLayoutData();
            data.horizontalSpan= numColumns;
            data.grabExcessHorizontalSpace= true;
            LayoutUtil.setHorizontalGrabbing(fLinkLocation.getTextControl(null));
            
            variables.doFillIntoGrid(parent, 1);
        }
        
        public String getLinkTarget() {
            return fLinkLocation.getText();
        }
        /*(non-Javadoc)
         * @see org.eclipse.jdt.internal.ui.wizards.dialogfields.IStringButtonAdapter#changeControlPressed(org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField)
         */
        public void changeControlPressed(DialogField field) {
            final DirectoryDialog dialog= new DirectoryDialog(getShell());
            dialog.setMessage(NewWizardMessages.getString("JavaProjectWizardFirstPage.directory.message")); 
            String directoryName = getLinkTarget().trim();
            if (directoryName.length() == 0) {
                String prevLocation= JavaPlugin.getDefault().getDialogSettings().get(DIALOGSTORE_LAST_EXTERNAL_LOC);
                if (prevLocation != null) {
                    directoryName= prevLocation;
                }
            }
        
            if (directoryName.length() > 0) {
                final File path = new File(directoryName);
                if (path.exists())