0 Replies Latest reply on Sep 5, 2015 5:32 AM by Simon Greener

    Problem with extension.xml rule.

    Simon Greener

      Here is a snippet from my extension.xml document.

       

          <trigger-hooks xmlns="http://xmlns.oracle.com/ide/extension">

              <triggers>

                  <actions xmlns="http://xmlns.oracle.com/jdeveloper/1013/extension">

                      <action id="org.GeoRaptor">

                          <properties>

                              <property name="Name">GeoRaptor Spatial Extension (Trigger)</property>

                              <property name="SmallIcon">${OracleIcons.DBDIAGRAM}</property>

                              <property name="LongDescription">GeoRaptor Spatial Extension for SQL Developer: Free and Open Source</property>

                          </properties>

                          <command-class>org.GeoRaptor.ExtensionCommand</command-class>

                          <menu-actions/>

                      </action>

                  </actions>

                  <controllers xmlns="http://xmlns.oracle.com/ide/extension">

                      <controller class="org.GeoRaptor.ExtensionController">

                          <update-rules>

                              <update-rule rule="always-enabled">

                                  <action id="org.GeoRaptor"/>

                              </update-rule>

                          </update-rules>

                      </controller>

                  </controllers>

                  <menu-hook xmlns="http://jcp.org/jsr/198/extension-manifest">

                      <menus>

                          <menubar id="javax.ide.view.MAIN_WINDOW_MENUBAR_ID">

                              <menu id="javax.ide.VIEW_MENU_ID">

                                  <section id="org.GeoRaptor"

                                           before="javax.ide.NEW_SECTION_ID">

                                      <item action-ref="org.GeoRaptor"/>

                                  </section>

                              </menu>

                          </menubar>

                      </menus>

                      <toolbars>

                          <toolbar id="javax.ide.view.MAIN_WINDOW_TOOLBAR_ID">

                              <section id="javax.ide.tck.toolbar.testsection" after="javax.ide.NEW_SECTION_ID">

                                  <item action-ref="org.GeoRaptor"></item>

                              </section>

                          </toolbar>

                      </toolbars>

                  </menu-hook>

      57       <context-menu-hook rule="always-enabled">

                      <site idref="navigator, editor, explorer"/>

                      <extension-listener class="org.GeoRaptor.MenuContextListener"/>

                      <menu/>

                  </context-menu-hook>

              </triggers>

          </trigger-hooks>

       

      When I start SQL Developer, in the Console, I get this:

       

      SEVERE: jar:/file:F:/oracle/sqldeveloper/sqldeveloper/extensions/org.GeoRaptor.jar!/META-INF/extension.xml:57: Rule id 'always-enabled' referenced in

      extension org.GeoRaptor is not defined in it, or any of its dependencies. Luckily, it was found in extension oracle.ide. This will work correctly this

      time, but is not guaranteed to work every time unless a dependency exists.

       

      Can anyone help me with what is going wrong?

       

      regards

      Simon