FileDocCategorySizeDatePackage
FileParameter.javaAPI DocAzureus 3.0.3.42258Mon Nov 20 13:36:52 GMT 2006org.gudy.azureus2.ui.swt.config

FileParameter

public class FileParameter extends DirectoryParameter
This class inherits from the DirectoryParameter class and appears the same, except for the dialog box that it opens. The reason for this is not because it is logically an extension of the DirectoryParameter class, but because it's better to leave the existing code where it is (for the sake of browsing CVS history).

Fields Summary
protected String[]
extension_list
Constructors Summary
public FileParameter(org.eclipse.swt.widgets.Composite pluginGroup, String name, String defaultValue, String[] extension_list)

		super(pluginGroup, name, defaultValue);
		this.extension_list = extension_list;
	
Methods Summary
protected java.lang.StringgetBrowseImageResource()
We don't have a better resource for this at the moment.

		return "openFolderButton";
	
protected java.lang.StringopenDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String old_value)

        FileDialog dialog = new FileDialog(shell, SWT.APPLICATION_MODAL);
        dialog.setFilterPath(old_value);
        if (this.extension_list != null) {
        	dialog.setFilterExtensions(this.extension_list);
        }
        return dialog.open();