Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 61906 Details for
Bug 148313
[build path] "Configure Build Path" incorrectly appears for non-Java projects
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Fix by checking that project is open and has Java nature
148313.diff (text/plain), 1.28 KB, created by
Matt McCutchen
on 2007-03-24 15:40:09 EDT
(
hide
)
Description:
Fix by checking that project is open and has Java nature
Filename:
MIME Type:
Creator:
Matt McCutchen
Created:
2007-03-24 15:40:09 EDT
Size:
1.28 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.ui >Index: ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/ConfigureBuildPathAction.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/ConfigureBuildPathAction.java,v >retrieving revision 1.10 >diff -u -r1.10 ConfigureBuildPathAction.java >--- ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/ConfigureBuildPathAction.java 23 Nov 2006 09:23:50 -0000 1.10 >+++ ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/newsourcepage/ConfigureBuildPathAction.java 24 Mar 2007 19:39:22 -0000 >@@ -12,6 +12,7 @@ > > import java.util.HashMap; > >+import org.eclipse.core.runtime.CoreException; > import org.eclipse.core.runtime.IAdaptable; > import org.eclipse.core.runtime.Path; > >@@ -107,8 +108,14 @@ > IResource res= (IResource) ((IAdaptable) firstElement).getAdapter(IResource.class); > if (res == null) > return false; >- >- return res.getProject() != null; >+ IProject project = res.getProject(); >+ if (project == null || !project.isOpen()) >+ return false; >+ try { >+ return project.hasNature(JavaCore.NATURE_ID); >+ } catch (CoreException e) { >+ return false; >+ } > } > return false; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 148313
:
61906
|
62661