Bug 244011 [Wizards] Import from Filesystem dialog does not always give file-list
Build ID: I20080617-2000 Steps To Reproduce: When using the Eclipse importer from "File system" I encounter two situations where the panes showing directories and files do not repaint without further user actions. Scenario 1: when pasing directory name into "From directory" Scenario 2: after navigating to directory using Browse... button, then clicking Back and Next buttons in sequence The symptom in both cases is that after selecting the directory, I expect to see the folder name in the LH pane and a list of files to choose in the RH pane. Instead they remain blank until further action is taken: In scenario 1: Click in the 'From directory:' field of the Import wizard of the tooling, then Ctrl-V to paste the path into the field. You will see nothing in either pane below the field, even if you press Enter. There are several ways to make files appear: - switch focus to a different application; the left-hand pane will magically be populated. - or: click on one of the 2 panes below. Clicking on the left one populates both panes; clicking on the right pane only populates the left pane. - or: click on Browse... to the right of the field to see the directory highlighted. Click OK and the left pane will be populated. In scenario 2: The directory listing appears when you OK the initial selection of directory. But clicking Back then Next on the wizard leaves you with the "From directory:" still showing the right value, the LH pane populated, but the RH pane empty. More information: I agree it is possible to get the file list to appear and once I have selected files, they do import. However the wizard behaviour could be improved, particularly in the use case when I cut+paste the directory from another application. I have tested this only on Windows XP (SP2). No stack traces were produced here.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardFileSystemResourceImportPage1.java
protected Button deselectAllButton;
    
    private boolean entryChanged = false;
    
    private FileSystemStructureProvider fileSystemStructureProvider = new FileSystemStructureProvider();
    
    private final static String STORE_SOURCE_NAMES_ID = "WizardFileSystemResourceImportPage1.STORE_SOURCE_NAMES_ID";
    private final static String STORE_OVERWRITE_EXISTING_RESOURCES_ID = "WizardFileSystemResourceImportPage1.STORE_OVERWRITE_EXISTING_RESOURCES_ID";
    private final static String STORE_CREATE_CONTAINER_STRUCTURE_ID = "WizardFileSystemResourceImportPage1.STORE_CREATE_CONTAINER_STRUCTURE_ID";
    private final static String STORE_CREATE_VIRTUAL_FOLDERS_ID = "WizardFileSystemResourceImportPage1.STORE_CREATE_VIRTUAL_FOLDERS_ID";
    private final static String STORE_CREATE_LINKS_IN_WORKSPACE_ID = "WizardFileSystemResourceImportPage1.STORE_CREATE_LINKS_IN_WORKSPACE_ID";
    private final static String STORE_PATH_VARIABLE_SELECTED_ID = "WizardFileSystemResourceImportPage1.STORE_PATH_VARIABLE_SELECTED_ID";
    private final static String STORE_PATH_VARIABLE_NAME_ID = "WizardFileSystemResourceImportPage1.STORE_PATH_VARIABLE_NAME_ID";
    private static final String SELECT_TYPES_TITLE = DataTransferMessages.DataTransfer_selectTypes;
    private static final String SELECT_ALL_TITLE = DataTransferMessages.DataTransfer_selectAll;
    private static final String DESELECT_ALL_TITLE = DataTransferMessages.DataTransfer_deselectAll;
    private static final String SELECT_SOURCE_TITLE = DataTransferMessages.FileImport_selectSourceTitle;
    private static final String SELECT_SOURCE_MESSAGE = DataTransferMessages.FileImport_selectSource;
    protected static final String SOURCE_EMPTY_MESSAGE = DataTransferMessages.FileImport_sourceEmpty;
	private Composite linkedResourceComposite;
	/**
	 * Height of the "advanced" linked resource group. Set when the advanced group is first made
	 * visible.
	 */
	private int linkedResourceGroupHeight= -1;
	private Composite linkedResourceParent;
    /**
     *	Creates an instance of this class
     */
    protected WizardFileSystemResourceImportPage1(String name,