private void onTextChange() { if (!myIsInUpdate) { myUpdateAlarm.cancelAllRequests(); myTextChanged = true; final String text = myPatternField.getText(); myCurrentScope = new InvalidPackageSet(text); try { if (!StringUtil.isEmpty(text)) { myCurrentScope = PackageSetFactory.getInstance().compile(text); } myErrorMessage = null; } catch (Exception e) { myErrorMessage = e.getMessage(); showErrorMessage(); } rebuild(false); } else if (!invalidScopeInside(myCurrentScope)) { myErrorMessage = null; } }
public String getPatternText() { return myPatternField.getText(); }