View | Details | Raw Unified | Return to bug 148313 | Differences between
and this patch

Collapse All | Expand All

(-)ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/ConfigureBuildPathAction.java (-1 / +11 lines)
Lines 7-17 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *     Matt McCutchen - Bug 148313 [build path] "Configure Build Path" incorrectly appears for non-Java projects
10
 *******************************************************************************/
11
 *******************************************************************************/
11
package org.eclipse.jdt.internal.ui.wizards.buildpaths.newsourcepage;
12
package org.eclipse.jdt.internal.ui.wizards.buildpaths.newsourcepage;
12
13
13
import java.util.HashMap;
14
import java.util.HashMap;
14
15
16
import org.eclipse.core.runtime.CoreException;
15
import org.eclipse.core.runtime.IAdaptable;
17
import org.eclipse.core.runtime.IAdaptable;
16
import org.eclipse.core.runtime.Path;
18
import org.eclipse.core.runtime.Path;
17
19
Lines 108-114 Link Here
108
			if (res == null)
110
			if (res == null)
109
				return false;
111
				return false;
110
			
112
			
111
			return res.getProject() != null;
113
			IProject project = res.getProject();
114
			if (project == null || !project.isOpen())
115
				return false;
116
			
117
			try {
118
				return project.hasNature(JavaCore.NATURE_ID);
119
			} catch (CoreException e) {
120
				return false;
121
			}
112
		}
122
		}
113
		return false;
123
		return false;
114
	}
124
	}

Return to bug 148313