if (entry == null || root.getKind() != IPackageFragmentRoot.K_BINARY) { createLabel(composite, Messages.format(JavaEditorMessages.SourceAttachmentForm_message_noSource, fFile.getElementName()));
if (entry == null || root.getKind() != IPackageFragmentRoot.K_BINARY) { createLabel(composite, Messages.format(JavaEditorMessages.SourceAttachmentForm_message_noSource, fFile.getElementName())); return; }  IJavaProject jproject= root.getJavaProject(); if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) { containerPath= entry.getPath(); IClasspathEntry entry2= JavaModelUtil.getClasspathEntryToEdit(jproject, containerPath, root.getPath()); if (entry2 == null) { IClasspathContainer container= JavaCore.getClasspathContainer(entry.getPath(), root.getJavaProject()); String containerName= container == null ? entry.getPath().toString() : container.getDescription(); createLabel(composite, Messages.format(JavaEditorMessages.SourceAttachmentForm_message_containerEntry, containerName));
			private void createSourceAttachmentControls(Composite composite, IPackageFragmentRoot root) throws JavaModelException {				IClasspathEntry entry;				try {					entry= root.getRawClasspathEntry();				} catch (JavaModelException ex) {					if (ex.isDoesNotExist())						entry= null;					else						throw ex;				}				IPath containerPath= null;				if (entry == null || root.getKind() != IPackageFragmentRoot.K_BINARY) {					createLabel(composite, Messages.format(JavaEditorMessages.SourceAttachmentForm_message_noSource, fFile.getElementName()));					return;				}				IJavaProject jproject= root.getJavaProject();				if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) {					containerPath= entry.getPath();					IClasspathEntry entry2= JavaModelUtil.getClasspathEntryToEdit(jproject, containerPath, root.getPath());					if (entry2 == null) {						IClasspathContainer container= JavaCore.getClasspathContainer(entry.getPath(), root.getJavaProject());						String containerName= container == null ? entry.getPath().toString() : container.getDescription();						createLabel(composite, Messages.format(JavaEditorMessages.SourceAttachmentForm_message_containerEntry, containerName));						return;					}					entry= entry2;				}				Button button;				IPath path= entry.getSourceAttachmentPath();				if (path == null || path.isEmpty()) {					createLabel(composite, Messages.format(JavaEditorMessages.SourceAttachmentForm_message_noSourceAttachment, root.getElementName()));					createLabel(composite, JavaEditorMessages.SourceAttachmentForm_message_pressButtonToAttach);					createLabel(composite, null);					button= createButton(composite, JavaEditorMessages.SourceAttachmentForm_button_attachSource);				} else {					createLabel(composite, Messages.format(JavaEditorMessages.SourceAttachmentForm_message_noSourceInAttachment, fFile.getElementName()));					createLabel(composite, JavaEditorMessages.SourceAttachmentForm_message_pressButtonToChange);					createLabel(composite, null);					button= createButton(composite, JavaEditorMessages.SourceAttachmentForm_button_changeAttachedSource);				}				button.addSelectionListener(getButtonListener(entry, containerPath, jproject));			}