<commit_before>package org.minimalj.example.helloworld2;

import org.minimalj.frontend.Frontend;
import org.minimalj.frontend.editor.Editor.NewObjectEditor;
import org.minimalj.frontend.form.Form;

public class UserNameEditor extends NewObjectEditor<User> {

	public UserNameEditor() {
		super("Greet");
	}

	@Override
	// this method could left out
	protected User createObject() {
		return new User();
	}
	
	@Override
	protected Form<User> createForm() {
		Form<User> form = new Form<>();
		form.line(User.$.name);
		return form;
	}

	@Override
	protected User save(User user) {
		return user;
	}
	
	@Override
	protected void finished(User user) {
		Frontend.getBrowser().show(new GreetingPage(user));
	}

}<commit_msg>UserNameEditor: don't use NewObjectEditor<commit_after>package org.minimalj.example.helloworld2;

import org.minimalj.frontend.Frontend;
import org.minimalj.frontend.editor.Editor.SimpleEditor;
import org.minimalj.frontend.form.Form;

public class UserNameEditor extends SimpleEditor<User> {

	public UserNameEditor() {
		super("Greet");
	}

	@Override
	protected User createObject() {
		return new User();
	}
	
	@Override
	protected Form<User> createForm() {
		Form<User> form = new Form<>();
		form.line(User.$.name);
		return form;
	}

	@Override
	protected User save(User user) {
		return user;
	}
	
	@Override
	protected void finished(User user) {
		Frontend.getBrowser().show(new GreetingPage(user));
	}

}
{'fraction_non_alphanumeric': 0.12281926029309141, 'fraction_numerical': 0.0013956734124214933, 'mean_word_length': 4.759036144578313, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '261992', 'n_tokens_mistral': 503, 'n_tokens_neox': 466, 'n_words': 104}