Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » [SOLVED] How to check if a .java file is in project build path or not?
icon14.gif  [SOLVED] How to check if a .java file is in project build path or not? [message #656945] Tue, 01 March 2011 06:57 Go to next message
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
Hi all,

Is there a way (API) to programmitically check if a .java file is in project's build path or not?

Thanks in advance, best regards,

[Updated on: Tue, 01 March 2011 08:17]

Report message to a moderator

Re: How to check if a .java file is in project build path or not? [message #656958 is a reply to message #656945] Tue, 01 March 2011 07:48 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 01.03.2011 07:57, Kivanc Muslu wrote:
> Hi all,
>
> Is there a way (API) to programmitically check if a .java file is in
> project's build path or not?
>
> Thanks in advance, best regards,
See org.eclipse.jdt.core.IJavaProject.isOnClasspath(*).

Dani
Re: How to check if a .java file is in project build path or not? [message #656964 is a reply to message #656958] Tue, 01 March 2011 08:17 Go to previous message
Kivanc Muslu is currently offline Kivanc MusluFriend
Messages: 153
Registered: November 2010
Senior Member
It is the exact thing I was looking for.

Thanks a lot Dani!
Previous Topic:How to enlarge eclipse java editor functionality using plugins?
Next Topic:Context Menu - Make visible from Standard Menu
Goto Forum:
  


Current Time: Thu Apr 25 05:11:03 GMT 2024

Powered by FUDForum. Page generated in 0.02983 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top