Bug 298835 Merge e4 Project Path Variable back into the 3.6 stream
The virtual folder and filters changes are already in 3.6, the project path variable changes in e4 still remains to be merged.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariablesGroup.java
gc.dispose();
    }
    /**
     * (Re-)Initialize collections used to mantain temporary variable state.
     */
    private void initTemporaryState() {
        String[] varNames = pathVariableManager.getPathVariableNames(currentResource);
        tempPathVariables.clear();
        for (int i = 0; i < varNames.length; i++) {
        	
        	if (varNames[i].equals(PARENT_VARIABLE_NAME))
        		continue;
            URI uri = pathVariableManager.getValue(varNames[i], currentResource);
            
            if (uri != null) {
                IPath value = URIUtil.toPath(uri);
                if (value != null) {
	                boolean isFile = value.toFile().isFile();
	                if ((isFile && (variableType & IResource.FILE) != 0)
	                        || (isFile == false && (variableType & IResource.FOLDER) != 0)) {
	
	                    tempPathVariables.put(varNames[i], value);
	                }
                }
            }
        }
        removedVariableNames.clear();
    }
    /**
     * Updates button enabled state, depending on the number of currently selected