Re: [pdt-dev] goalEvaluatorFactories extension point — plugin is not activated

2009-07-21 Thread 赵忠伟
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 wrote:

>  Hi,
>
> Try this one:
>
>
>point="org.eclipse.php.core.goalEvaluatorFactories">
>class="my.MyEvaluatorFactory"
> priority="200">
>   
>
>
>
> 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@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>
>
___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


RE: [pdt-dev] goalEv aluatorFactories ext ension point — plugi n is not activated

2009-07-21 Thread Sjaak Eenhuis

Hi,

Try this one:
   

 

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?

_
Nieuw: onbeperkte opslagruimte in Windows Live Hotmail
http://mail.live.com___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev


Re: [pdt-dev] goalEvaluatorFactories extension point — plugin is not activated

2009-07-21 Thread Michael Spector
Try this one:

 
  
  
   

On Tue, Jul 21, 2009 at 1:29 AM, Sjaak Eenhuis wrote:

>  I have a plugin that needs to add code completion for an undeclared
> variable. To do so I try to implement my own goal factory.
>
> I am able to set break points, and start a debugging session. But it seems
> like the plugin is never called, a break point is never reached when I start
> to edit a php file.
>
> I have no idea whether the plugin.xml is correct:
>
> 
> 
> 
>
> 
> class="my.MyEvaluatorFactory"
>priority="100"
>id="my.MyEvaluatorFactory"
>name="My test"
>nature="org.eclipse.php.core.PHPNature" />
> 
>
> 
>
>
> public class MyEvaluatorFactory implements IGoalEvaluatorFactory {…}
> public class MyEvaluator extends GoalEvaluator {…}
>
> I've modelled it according to
> http://wiki.eclipse.org/API_Document_for_Extension_Points_PDT_2.0#PHP_Evaluator_Factory,
> but I am not sure if these examples are still correct. When I look in the
> aspectPDT sources, I cannot find any of the demonstrated extension points.
> :S
>
> So the question is: why is my Evaluator never invoked?
>
> --
> Lees je Het Net, Planet, Ziggo of XS4ALL-mail in Windows Live 
> Hotmail
>
> ___
> pdt-dev mailing list
> pdt-dev@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>
>
___
pdt-dev mailing list
pdt-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/pdt-dev