Bug 10654 Allow all jars in a folder to be added to build path
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ChooseVariableDialog.java
fVariableBlock.createContents(composite);
		fVariableBlock.addDoubleClickListener(this);
		return composite;
	}
	
	protected void okPressed() {
		fVariableBlock.performOk();
		super.okPressed();
	}
	
	public String getSelectedVariable() {
		return fVariableBlock.getSelectedVariable();
	}
	
	/*
 	 * @see IStatusChangeListener#statusChanged(IStatus)
 	 */
	public void statusChanged(IStatus status) {
		updateStatus(status);
		
	}
	/*
 	 * @see IDoubleClickListener#doubleClick(DoubleClickEvent)
 	 */
	public void doubleClick(DoubleClickEvent event) {
		if (getStatus().isOK()) {
			okPressed();
		}
	}
}