Bug 302152 New path variable created unexpectedly
One of the latest 3.6 IBuilds Steps: 1) Create a general project (let's call is 'project1') 2) Go to Project Properties and make sure that there are only dynamic path variables 2) Drag and drop a folder with a subfolder and files inside to 'project1' In my case it is c:/Folder > SubFolder > a.txt 3) In the "File and Folder Import" dialog, choose 'Automatic' (or later 'Default') and 'Recreate with Virtual Folders and Links' 4) Go to Project Properties again and see that a new variable is added ('C' which is defined relatively to PROJECT_LOC) 5) Open Properties for myProject/Folder/SubFolder/a.txt and see that its location is defined using this new 'C' variable. I should be at least asked if I want Eclipse to create any variables for me.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariableDialog.java
private boolean nameEntered = false;
    /**
     * Whether a variable location has been entered.  
     */
    private boolean locationEntered = false;
    /**
     * The standard message to be shown when there are no problems being
     * reported.
     */
    final private String standardMessage;
    /**
     * Constant for defining this dialog as intended to create a new variable
     * (value = 1).
     */
    public final static int NEW_VARIABLE = 1;
    /**
     * Constant for defining this dialog as intended to edit an existing
     * variable (value = 2).
     */
    public final static int EXISTING_VARIABLE = 2;
    /**
     * Constant for defining this dialog as intended to edit an existing link
     * location (value = 3).
     */
    public final static int EDIT_LINK_LOCATION = 3;
    private IResource currentResource = null;
    /**
     * Constructs a dialog for editing a new/existing path variable.
     * 
     * @param parentShell the parent shell