String defaultName = Mediator.getInstance()
.getDocumentManager().getNextUntitledFilterName();
List<ITextComponent<String>> fields = new ArrayList<ITextComponent<String>>();
fields.add(new TextField("Name", defaultName, false, false,
TextField.Kind.LINE));
final TextDialog nameDlg = new TextDialog("Filter Name", fields);
// Create an observation filter message and notify listeners.
IFilterDescription desc = new IFilterDescription() {
@Override
public boolean isParsable() {
return false;
}
@Override
public String getFilterName() {
return nameDlg.getTextStrings().get(0);
}
@Override
public String getFilterDescription() {
// Return a machine-readable (able to be parsed)