Bug 305036 [Path Variables] Minor API changes in Dynamic Path Variables area
I'm attaching a patch illustrating what should be done in this area.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/PathVariablesGroup.java
* is called.
     * </p>
     *
     * @param control a control from which to obtain the current font
     */
    protected void initializeDialogUnits(Control control) {
        
        GC gc = new GC(control);
        gc.setFont(control.getFont());
        fontMetrics = gc.getFontMetrics();
        gc.dispose();
    }
    /**
     * (Re-)Initialize collections used to mantain temporary variable state.
     */
    private void initTemporaryState() {
        String[] varNames = pathVariableManager.getPathVariableNames();
        tempPathVariables.clear();
        for (int i = 0; i < varNames.length; i++) {
        	
        	if (varNames[i].equals(PARENT_VARIABLE_NAME))
        		continue;
            URI uri = pathVariableManager.getURIValue(varNames[i]);
            
            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)) {