Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Accessing Project Delta's
Accessing Project Delta's [message #169692] Fri, 12 December 2003 10:23
Eclipse UserFriend
Originally posted by: sppatel.us.ibm.com

This is a multipart message in MIME format.
--=_alternative 0054D0AA85256DFA_=
Content-Type: text/plain; charset="US-ASCII"

I reworded my last posting to be clearer...

I cannot find a way to do the following...

I have an incremental project builder for which I need to in its build
method to determine if a delta exists for another project in the
workspace. If I call getDelta(AnotherProject) it returns null even though
a delta exists because it passes through the !isInterestedIn() method. I
know in the build method I can return an array of other projects but this
will not work for my situation, I need to predetermine this for a list of
projects so I can take the neccessary action in the build method for the
original project.

So in my build method I want this behavior

protected IProject[] build(.....) {

IProject anotherProject =
ResourcesPlugin.getWorkspace.getRoot().getProject("AnotherProject ");

if(getDelta(anotherProject) == null) {
//process corrent project
getProject().accept(this);
} else {
//do something else
}

return null;
}

Is there a way I can do this? I really don't need to know what the deltas
are, just if one exists.
--=_alternative 0054D0AA85256DFA_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">I reworded my last posting to be clearer...</font>
<br>
<br><font size=2 face="sans-serif">I cannot find a way to do the following...</font>
<br>
<br><font size=2 face="sans-serif">I have an incremental project builder
for which I need to in its build method to determine if a delta exists
for another project in the workspace. &nbsp;If I call getDelta(AnotherProject)
it returns null even though a delta exists because it passes through the
!isInterestedIn() method. &nbsp;I know in the build method I can return
an array of other projects but this will not work for my situation, I need
to predetermine this for a list of projects so I can take the neccessary
action in the build method for the original project.</font>
<br>
<br><font size=2 face="sans-serif">So in my build method I want this behavior</font>
<br>
<br><font size=2 face="sans-serif">protected IProject[] &nbsp;build(.....)
{</font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; IProject
anotherProject = ResourcesPlugin.getWorkspace.getRoot().getProject(&quot; AnotherProject&quot;); </font>
<br>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; if(getDelta(anotherProject)
== null) {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; //process corrent project</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; getProject().accept(this);</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }
else {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; //do something else</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; }</font>
<br>
<br><font size=2 face="sans-serif">return null;</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">Is there a way I can do this? &nbsp;I
really don't need to know what the deltas are, just if one exists. </font>
--=_alternative 0054D0AA85256DFA_=--
Previous Topic:Building the platform binary
Next Topic:linux and environment variables
Goto Forum:
  


Current Time: Fri Jul 18 22:45:53 EDT 2025

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

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

Back to the top