[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pdt-dev] goalEvaluatorFactories extension point — plugin is not activated

Try this one:

 <extension
         point="org.eclipse.php.core.goalEvaluatorFactories">
      <factory
            class="my.MyEvaluatorFactory"
            priority="200">
      </factory>
   </extension>

On Tue, Jul 21, 2009 at 1:29 AM, Sjaak Eenhuis <exceptione@xxxxxxxxxxx> 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:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

    <extension point="org.eclipse.php.core.goalEvaluatorFactories">
        <goalEvaluatorFactories
               class="my.MyEvaluatorFactory"
               priority="100"
               id="my.MyEvaluatorFactory"
               name="My test"
               nature="org.eclipse.php.core.PHPNature" />
    </extension>
   
</plugin>


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@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pdt-dev