[MapEditor] Fixed build errors for JDK6