/** * Connect the CompilationUnitDocumentProvider to the * * @input and connect the annotation model from the provider to the IDocument of the * @input. */ protected void connect(IEditorInput input, ICompilationUnit cu) throws CoreException { if (input != null && javaWorkingCopyManager != null && cuDocumentProvider != null ) { javaWorkingCopyManager.connect(input); getEditorInputs().put(cu, input); IDocument doc = cuDocumentProvider.getDocument(input); if (doc != null && cuDocumentProvider.getAnnotationModel(input)!= null) cuDocumentProvider.getAnnotationModel(input).connect(doc); } }
JavaUI.getWorkingCopyManager().connect(input); unit = AJCompilationUnitManager.INSTANCE .getAJCompilationUnitFromCache(fInput.getFile());