Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » What is the "Preject References" for?
What is the "Preject References" for? [message #509898] Mon, 25 January 2010 17:23 Go to next message
Raymond Mising name is currently offline Raymond Mising nameFriend
Messages: 59
Registered: July 2009
Member
Hey,

What exactly is the "Project References" for in the project properties? If I set project A required project B in the "Java Build Path" --> "Project" of project A, when I called IProject.getReferencedProjects() on project A, it returned project B to me. However, when I open the "Project References" UI, project B was not checked.

Thanks.
Re: What is the "Preject References" for? [message #509911 is a reply to message #509898] Mon, 25 January 2010 18:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Hi,

It is for non-JDT project references. In the past (an early Eclipse) if
you checked a project in the Java Build path it would under the covers
also physically set the project references. But this was fragile because
it could be accidentally removed and the java build would fail. So there
are now dynamic project references functions which JDT hooked into.

So for just about any normal reason there is no need to change this
property yourself. It would only be if you had some kind of builder that
you wrote that didn't use the dynamic hook but required that project
references need to be built first, or if the referenced project was
changed then this project needs to be build. But it would be better to
write your builder to use the dynamic hook.

Raymond wrote:
> Hey,
>
> What exactly is the "Project References" for in the project properties?
> If I set project A required project B in the "Java Build Path" -->
> "Project" of project A, when I called IProject.getReferencedProjects()
> on project A, it returned project B to me. However, when I open the
> "Project References" UI, project B was not checked.
> Thanks.

--
Thanks,
Rich Kulp
Re: What is the "Preject References" for? [message #511042 is a reply to message #509911] Fri, 29 January 2010 16:02 Go to previous message
Raymond Mising name is currently offline Raymond Mising nameFriend
Messages: 59
Registered: July 2009
Member
Thanks a lot Rich.
Previous Topic:[Databinding] How to manipulate record order in a TableViewer
Next Topic:Core Expression: activeEditor adapts to ITextEditor
Goto Forum:
  


Current Time: Tue Nov 25 22:26:09 GMT 2014

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

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