Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2008 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 44-49
Link Here
|
44 |
import org.eclipse.jdt.internal.corext.buildpath.BuildpathDelta; |
44 |
import org.eclipse.jdt.internal.corext.buildpath.BuildpathDelta; |
45 |
import org.eclipse.jdt.internal.corext.buildpath.CPJavaProject; |
45 |
import org.eclipse.jdt.internal.corext.buildpath.CPJavaProject; |
46 |
import org.eclipse.jdt.internal.corext.buildpath.ClasspathModifier; |
46 |
import org.eclipse.jdt.internal.corext.buildpath.ClasspathModifier; |
|
|
47 |
import org.eclipse.jdt.internal.corext.util.JavaModelUtil; |
47 |
import org.eclipse.jdt.internal.corext.util.Messages; |
48 |
import org.eclipse.jdt.internal.corext.util.Messages; |
48 |
|
49 |
|
49 |
import org.eclipse.jdt.ui.JavaElementLabels; |
50 |
import org.eclipse.jdt.ui.JavaElementLabels; |
Lines 254-263
Link Here
|
254 |
return false; |
255 |
return false; |
255 |
|
256 |
|
256 |
} else if (element instanceof IPackageFragmentRoot) { |
257 |
} else if (element instanceof IPackageFragmentRoot) { |
257 |
IClasspathEntry entry= ((IPackageFragmentRoot) element).getRawClasspathEntry(); |
258 |
IClasspathEntry entry= JavaModelUtil.getClasspathEntry((IPackageFragmentRoot) element); |
258 |
if (entry != null && entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) { |
259 |
if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) |
|
|
260 |
return false; |
261 |
if (entry.getReferencingEntry() != null) |
259 |
return false; |
262 |
return false; |
260 |
} |
|
|
261 |
} else if (element instanceof ClassPathContainer) { |
263 |
} else if (element instanceof ClassPathContainer) { |
262 |
return true; |
264 |
return true; |
263 |
} else { |
265 |
} else { |