val = parseTextInput(fTextOptions[i].getText()); if (src == fTextOptions[i]) newValue = val; } catch (NumberFormatException nex) { errorMessage = new String("Error: " + fTextOptions[i].getText() + " is not valid number"); } } setErrorMessage(errorMessage); if (errorMessage != null) { return; } ConfigurableOption option= retrieveOption(src); option.setValueIndex(newValue); updatePreview(fNewOptions);
ConfigurableOption option= retrieveOption(source); option.setValueIndex(parseTextInput(source.getText())); updatePreview(fNewOptions); }
			public void modifyText(ModifyEvent e)			{			String errorMessage = null;			int newValue=0;			Text src= (Text) e.widget;			if (fTextOptions == null) return;			for (int i=0; i < fTextOptions.length; i++)			{				int val=0;				try 				{					val = parseTextInput(fTextOptions[i].getText());					if (src == fTextOptions[i])						newValue = val;				} catch (NumberFormatException nex) {					errorMessage = new String("Error: " + fTextOptions[i].getText() + " is not valid number");				}				}			setErrorMessage(errorMessage);			if (errorMessage != null)			{				return;			}			ConfigurableOption option= retrieveOption(src);			option.setValueIndex(newValue);			updatePreview(fNewOptions);		}