List of usage examples for org.eclipse.jface.preference StringFieldEditor VALIDATE_ON_KEY_STROKE
int VALIDATE_ON_KEY_STROKE
To view the source code for org.eclipse.jface.preference StringFieldEditor VALIDATE_ON_KEY_STROKE.
Click Source Link
0
) indicating that the editor should perform validation after every key stroke. From source file:pl.poznan.put.cs.gui4pddl.preferences.ui.PlannerPreferencesPageTabItem.java
License:Open Source License
private FileFieldEditor createPlannerFileFieldEditor(Composite tabItemComposite) { FileFieldEditor plannerFile = new FileFieldEditor("Planner File", "Planner File", true, StringFieldEditor.VALIDATE_ON_KEY_STROKE, tabItemComposite); plannerFile.fillIntoGrid(tabItemComposite, 3); plannerFile.setEmptyStringAllowed(false); plannerFile.setStringValue(preferences.getPlannerFilePath()); Label infoLabel = new Label(tabItemComposite, SWT.NONE); infoLabel.setText(/*from ww w . j av a 2 s. c o m*/ "Planner file arguments order: <domain_file_path> <problem_file_path> [<planner_arguments>]"); GridData gd = new GridData(GridData.FILL_HORIZONTAL); gd.grabExcessHorizontalSpace = true; gd.horizontalSpan = 3; infoLabel.setLayoutData(gd); return plannerFile; }