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/PathVariablesGroup.java
return false;
        }
        return true;
    }
    /**
     * @param varName
     *            the variable name to test
     */
    private boolean isBuiltInVariable(String varName) {
        if (currentResource != null) {
        	IPathVariable variable = pathVariableManager.getPathVariable(varName, currentResource);
            if (variable != null) 
            	return variable.isReadOnly();
        }
        return false;
    }
    /**
     * Sets the <code>GridData</code> on the specified button to
     * be one that is spaced for the current dialog page units. The
     * method <code>initializeDialogUnits</code> must be called once
     * before calling this method for the first time.
     *
     * @param button the button to set the <code>GridData</code>
     * @return the <code>GridData</code> set on the specified button
     */
    private GridData setButtonLayoutData(Button button) {
        GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
        int widthHint = Dialog.convertHorizontalDLUsToPixels(fontMetrics,
                IDialogConstants.BUTTON_WIDTH);
        data.widthHint = Math.max(widthHint, button.computeSize(SWT.DEFAULT,