Lines 1112-1118
Link Here
|
1112 |
} |
1112 |
} |
1113 |
|
1113 |
|
1114 |
public static void setSourceAttachmentProperty(IPath path, String property) { |
1114 |
public static void setSourceAttachmentProperty(IPath path, String property) { |
1115 |
JavaModelManager.getJavaModelManager().rootPathToAttachments.put(path, property); |
1115 |
if (property == null) { |
|
|
1116 |
JavaModelManager.getJavaModelManager().rootPathToAttachments.put(path, PackageFragmentRoot.NO_SOURCE_ATTACHMENT); |
1117 |
} else { |
1118 |
JavaModelManager.getJavaModelManager().rootPathToAttachments.put(path, property); |
1119 |
} |
1116 |
try { |
1120 |
try { |
1117 |
ResourcesPlugin.getWorkspace().getRoot().setPersistentProperty(getSourceAttachmentPropertyName(path), property); |
1121 |
ResourcesPlugin.getWorkspace().getRoot().setPersistentProperty(getSourceAttachmentPropertyName(path), property); |
1118 |
} catch (CoreException e) { |
1122 |
} catch (CoreException e) { |