The first one overrides the Java generator, the second one overrides the Java launch configuration to launch the derived generator.
Please have a look at the comments marked with EXAMPLE: (you can add that as a Java task tag in the preferences and use the Tasks View to locate these comments).