Bug 74627 [typing] Importing Type leaves linked editing mode
3.1 M2: - use for-loop over collection template to enter linked editing mode - step to "type" - type Set - use quick fix to import java.util.Set Observe: linked edit mode is exited
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/AddImportOnSelectionAction.java
private CompilationUnitEditor fEditor;
	
	public AddImportOnSelectionAction(CompilationUnitEditor editor) {	
		super(JavaEditorMessages.getString("AddImportOnSelection.label"));		 
		setToolTipText(JavaEditorMessages.getString("AddImportOnSelection.tooltip")); 
		setDescription(JavaEditorMessages.getString("AddImportOnSelection.description")); 
		fEditor= editor;
		WorkbenchHelp.setHelp(this, IJavaHelpContextIds.ADD_IMPORT_ON_SELECTION_ACTION);
		setEnabled(getCompilationUnit() != null);	
	}
	
	public void update() {
		setEnabled(fEditor != null && getCompilationUnit() != null);
	}	
			
	private ICompilationUnit getCompilationUnit () {
		if (fEditor == null) {
			return null;
		}
		
		IWorkingCopyManager manager= JavaPlugin.getDefault().getWorkingCopyManager();				
		return manager.getWorkingCopy(fEditor.getEditorInput());
	}
	
	/*
	 * @see org.eclipse.jface.action.IAction#run()
	 */
	public void run() {