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: zhaozhongwei@xxxxxxxxxxxxxxxx
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 <exceptione@xxxxxxxxxxx> 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
_______________________________________________
pdt-dev mailing list
pdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pdt-dev
Haal meer uit je Hotmail met Internet Explorer 8. Download nu
|