protected ElementInfo createElementInfo(Object element) throws CoreException { if (element instanceof IClassFileEditorInput) { IClassFileEditorInput input = (IClassFileEditorInput) element; ExternalClassFileEditorInput external= null; if (input instanceof ExternalClassFileEditorInput) external= (ExternalClassFileEditorInput) input; if (external != null) { try { refreshFile(external.getFile()); } catch (CoreException x) { handleCoreException(x, JavaEditorMessages.ClassFileDocumentProvider_error_createElementInfo); } } IDocument d= createDocument(input); IAnnotationModel m= createClassFileAnnotationModel(input); if (external != null) { ClassFileInfo info= new ClassFileInfo(d, m, (_FileSynchronizer) null); info.fModificationStamp= computeModificationStamp(external.getFile()); info.fEncoding= getPersistedEncoding(element); return info; } else if (input instanceof InternalClassFileEditorInput) { ClassFileSynchronizer s= new ClassFileSynchronizer(input); s.install(); ClassFileInfo info= new ClassFileInfo(d, m, s); info.fEncoding= getPersistedEncoding(element); return info; } } return null; }
IAnnotationModel m= createClassFileAnnotationModel(input);
IAnnotationModel m= createClassFileAnnotationModel(input);