Bug 58696 Override/Implement Methods dialog: better labels for insertion position [code manipulation]
The Override/Implement Methods dialog says: Insertion Point: - First Method - Last Method - a() - b() ... I *never* know whether that means before or after the selected method. Better labels would be: Insert after: - Class Declaration Header - a() - b() ... or Insert Before: - a() - b() ... - End of Class
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/dialogs/SourceActionDialog.java
private final String VISIBILITY_MODIFIER= "VisibilityModifier"; 
	private final String FINAL_MODIFIER= "FinalModifier"; 
	private final String SYNCHRONIZED_MODIFIER= "SynchronizedModifier"; 
	
	public SourceActionDialog(Shell parent, ILabelProvider labelProvider, ITreeContentProvider contentProvider, CompilationUnitEditor editor, IType type, boolean isConstructor) throws JavaModelException {
		super(parent, labelProvider, contentProvider);
		fEditor= editor;
		fContentProvider= contentProvider;		
		fType= type;
		fCommentString= ActionMessages.getString("SourceActionDialog.createMethodComment"); 
		fWidth= 60;
		fHeight= 18;
		
		
		CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings();
		fGenerateComment= settings.createComments;		
		
		int insertionDefault= isConstructor ? 0 : 1;
		
		IDialogSettings dialogSettings= JavaPlugin.getDefault().getDialogSettings();
		String sectionId= isConstructor ? SETTINGS_SECTION_CONSTRUCTORS : SETTINGS_SECTION_METHODS;
		fSettings= dialogSettings.getSection(sectionId);		
		if (fSettings == null)  {
			fSettings= dialogSettings.addNewSection(sectionId);
			fSettings.put(VISIBILITY_MODIFIER, StringConverter.asString(Modifier.PUBLIC));
			fSettings.put(FINAL_MODIFIER, StringConverter.asString(false));
			fSettings.put(SYNCHRONIZED_MODIFIER, StringConverter.asString(false));
			fSettings.put(SETTINGS_INSERTPOSITION, insertionDefault);
		}