as you said,i think there maybe a exception happens.you can step the code
line by line and to see if the code go into the code something like:
finally{
}

and keeping steping utill you step in to the code like:

catch(*Exception e){
}

and have a look at what the e is.



the above is just what i guess.i think if you debug carefully the reason
will come out soon.
i will try to add a extension to see if the strange thing happens to me:)

On Fri, Jul 24, 2009 at 6:28 AM, Sjaak Eenhuis <[email protected]>wrote:

>  Thanks for your help. I found out that DefaultPHPGoalEvaluatorFactory has
> a priority of 10, and I also checked the bin tree on the Build page. Eclipse
> doesn't warn you if bin is checked out..:S
>
> I have the situation that my goalFactory precedes
> DefaultPHPGoalEvaluatorFactory. this works fine as long as this factory
> doesn't return null.
> If I return null, the other factories (in this case
> DefaultPHPGoalEvaluatorFactory) should return something. However,I get the
> fact that it doesn't.
>
> class PHPGoalEvaluatorFactory:
>
> public GoalEvaluator createEvaluator(IGoal goal) {
>  if (factoryInfos == null) {
> return null;
> }
>  for (int i = 0; i < factoryInfos.length; i++) {
> GoalEvaluator evaluator = factoryInfos[i].factory.createEvaluator(goal);
>  if (evaluator != null) {
> *return evaluator;*¹
> }
>  }
> return null;
> }
>
> ¹ the line «return evaluator» will never be reached in that case. I never
> see the i-counter becoming 1, although there are 2 elements in factoryInfos.
> Does anyone have a clue about the cause of this strange behaviour?
>
> I don't do anything special in my factory, no threads or something. It
> seems like pdt isn't able to handle a queue of more than one factories. Is
> createEvaluator not thread safe maybe?
>
>
>
> ------------------------------
> From: [email protected]
>
>
> you can try to add breakpoint in class PHPGoalEvaluatorFactory
>
> public GoalEvaluator createEvaluator(IGoal goal) {
>  if (factoryInfos == null) {
> return null;
> }
>  for (int i = 0; i < factoryInfos.length; i++) {
> GoalEvaluator evaluator = factoryInfos[i].factory.createEvaluator(goal);
>  if (evaluator != null) {
> return evaluator;
> }
>  }
> return null;
> }
>
>
> to see the GoalEvaluator returned by method createEvaluator.if return a
> un-null value.i think there must be some relation with the priority.
>
>
>
>
> zhao
> best regards
>
> On Tue, Jul 21, 2009 at 7:22 PM, Sjaak Eenhuis <[email protected]>wrote:
>
>  Hi,
>
> Try this one:
>
>
>  <extension
>          point="org.eclipse.php.core.goalEvaluatorFactories">
>       <factory
>             class="my.MyEvaluatorFactory"
>             priority="200">
>       </factory>
>    </extension>
>
>
> Unfortunately, this doesn't work also. No breakpoints are touched, the
> whole plugin doesn't seem to be invoked.
> A priority of 10 doesn't work either.
> Should I edit the manifest manually too?
>
> BTW: why is the extension editor not able to provide any fields for any pdt
> extension point? I am forced to edit the plugin.xml by hand. Not so much a
> problem, but it might indicate some faults?
>
> ------------------------------
> Haal meer uit je Hotmail met Internet Explorer 8. Download 
> nu<http://www.microsoft.nl/ie8>
>
> _______________________________________________
> pdt-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>
>
>
> ------------------------------
> Haal meer uit je Hotmail met Internet Explorer 8. Download 
> nu<http://www.microsoft.nl/ie8>
>
> _______________________________________________
> pdt-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>
>
_______________________________________________
pdt-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/pdt-dev

Reply via email to