if (superResult || currentValue.equals("")) {
return _updateSources();
}
}
List list = _sources.getListControl(_getParent(_sources));
list.removeAll();
return false;
}
private String _lastString = null;
};
GridData gridData = new GridData();
gridData.widthHint = 0;
gridData.horizontalAlignment = SWT.FILL;
gridData.grabExcessHorizontalSpace = true;
_sourceList.getTextControl(currentComposite).setLayoutData(gridData);
_sourceList.setFileExtensions(new String[] { "*.lst", "*.*" });
_setParent(_sourceList, currentComposite);
addField(_sourceList);
currentComposite = _newComposite(composite);
_sources = new ListEditor(PreferenceConstants.BACKTRACK_SOURCES,
"&Sources", currentComposite) {
protected String createList(String[] items) {
return Strings.encodeFileNames(items);
}
protected void doStore() {
if (_sourcesModified) {
List list = getListControl(_getParent(this));
String[] items = list.getItems();
String fileName = _sourceList.getStringValue();
try {
PrintWriter writer = new PrintWriter(
new FileOutputStream(fileName));