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
final ICompilationUnit cu= getCompilationUnit();
		if (cu == null || fEditor == null)
			return;
		if (!ElementValidator.checkValidateEdit(cu, getShell(), JavaEditorMessages.getString("AddImportOnSelection.error.title"))) 
			return;
		if (!ActionUtil.isProcessable(getShell(), cu))
			return;
			
		ISelection selection= fEditor.getSelectionProvider().getSelection();
		IDocument doc= fEditor.getDocumentProvider().getDocument(fEditor.getEditorInput());
		if (selection instanceof ITextSelection && doc != null) {
			ITextSelection textSelection= (ITextSelection) selection;
			AddImportsOperation op= new AddImportsOperation(cu, doc, textSelection.getOffset(), textSelection.getLength(), new SelectTypeQuery(getShell()));
			try {
				IProgressService progressService= PlatformUI.getWorkbench().getProgressService();
				progressService.runInUI(fEditor.getSite().getWorkbenchWindow(), new WorkbenchRunnableAdapter(op, op.getScheduleRule()), op.getScheduleRule());
				IStatus status= op.getStatus();
				if (!status.isOK()) {
					IStatusLineManager manager= getStatusLineManager();
					if (manager != null) {
						manager.setMessage(status.getMessage());
					}
				}
			} catch (InvocationTargetException e) {
				ExceptionHandler.handle(e, getShell(), JavaEditorMessages.getString("AddImportOnSelection.error.title"), null); 
			} catch (InterruptedException e) {
				
			}
		}		
	}