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
Label label= new Label(composite, SWT.NONE);
        label.setText(NewWizardMessages.getFormattedString("LinkFolderDialog.createIn", fContainer.getFullPath().makeRelative().toString())); 
        DialogField.createEmptySpace(composite, numOfColumns);
        
        fDependenciesGroup= new LinkFields(composite);
        fFolderNameField= new FolderNameField(composite);
        
        Validator validator= new Validator();
        fDependenciesGroup.addObserver(validator);
        fFolderNameField.addObserver(validator);
        return composite;
    }
    /**
     * Creates a folder resource handle for the folder with the given name.
     * The folder handle is created relative to the container specified during 
     * object creation. 
     *
     * @param folderName the name of the folder resource to create a handle for
     * @return the new folder resource handle
     */
    private IFolder createFolderHandle(String folderName) {
        IWorkspaceRoot workspaceRoot = fContainer.getWorkspace().getRoot();
        IPath folderPath = fContainer.getFullPath().append(folderName);
        IFolder folderHandle = workspaceRoot.getFolder(folderPath);
        return folderHandle;
    }
    /**
     * Creates a new folder with the given name and optionally linking to
     * the specified link target.