Bug 310444 [LinkedResources] Drag and Drop dialogs not disabled when Linked Resources turned off
I20100425-2000 - on the 'Linked Resources' preference page, disable the checkbox => DND groups are still enabled (should be disabled) - click OK - drag a file from the OS to the Package Explorer, Resource Navigator,... => "File Operation" dialog is still shown (should not be shown and just make a copy). Selecting "Link to files" gives an error dialog after I clicked OK. Additional UI problems on the preference page: - groups don't use dialog font - missing vertical gap between checkbox and first DND group: The gap should have the same size as the gap between the second group and the "Path variables..." label. Currently, the visual clustering suggests that the checkbox only applies to the DND groups.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceImportPage1.java
}
    /**
     *	Repopulate the view based on the currently entered directory.
     */
    protected void resetSelection() {
        MinimizedFileSystemElement currentRoot = getFileSystemTree();
        this.selectionGroup.setRoot(currentRoot);
        File sourceDirectory = getSourceDirectory();
        if (sourceDirectory != null) {
			IPath path = getContainerFullPath();
	    	if (path != null && relativePathVariableGroup != null) {
				IResource target = ResourcesPlugin.getWorkspace().getRoot().findMember(path);
				if (target != null) {
			        String variable = RelativePathVariableGroup.getPreferredVariable(new IPath[] {Path.fromOSString(sourceDirectory.getAbsolutePath())}, (IContainer) target);
			        if (variable != null)
			        	relativePathVariableGroup.selectVariable(variable);
				}
	    	}
        }
    }
    /**
     *	Use the dialog store to restore widget values to the values that they held
     *	last time this wizard was used to completion
     */
    protected void restoreWidgetValues() {
        IDialogSettings settings = getDialogSettings();
        if (settings != null) {
            String[] sourceNames = settings.getArray(STORE_SOURCE_NAMES_ID);
            if (sourceNames == null) {
				return;