void () { myModified = false; filterTree(); final String filter = myProfileFilter.getFilter(); myProfileFilter.reset(); myProfileFilter.setSelectedItem(filter); myProfile.setName(myProfile.getSource().getName()); myProfile.setProjectLevel(myProfile.getSource().isProjectLevel()); }