/* *****************************************************************************
* Copyright (c) 2009 Ola Spjuth.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Ola Spjuth - initial API and implementation
******************************************************************************/
package net.bioclipse.metaprint2d.ui.prefs;
import org.eclipse.jface.preference.FileFieldEditor;
import org.eclipse.swt.widgets.Composite;
public class RefreshableFileFieldEditor extends FileFieldEditor{
public RefreshableFileFieldEditor(String openbabelPath, String string,
boolean b, Composite fieldEditorParent) {
super(openbabelPath, string,b,fieldEditorParent);
}
@Override
public boolean checkState() {
if (getTextControl().isEnabled()==false){
showErrorMessage(null);
return true;
}
return super.checkState();
}
@Override
public void refreshValidState() {
super.refreshValidState();
}
@Override
public boolean isValid() {
// TODO Auto-generated method stub
return super.isValid();
}
}