Code Monkey home page Code Monkey logo

Comments (2)

PhilippSalvisberg avatar PhilippSalvisberg commented on June 19, 2024

Based on feedback from dtabase in Slack, it is necessary to execute "Run utPLSQL test" to fully load the extension. After that the option appears in the Connection window without a restart of SQL Developer

from utplsql-sqldeveloper.

PhilippSalvisberg avatar PhilippSalvisberg commented on June 19, 2024

Looks like a custom rule-type cannot be applied as long as the extension is not loaded. And the rule-type definition:

		<rules>
			<rule-type class="org.utplsql.sqldev.menu.UtplsqlNavigatorRule"
				id="utplsql-navigator-rule">
				<supported-parameters />
			</rule-type>
			<rule id="dbnode-is-utplsql-ready" type="utplsql-navigator-rule" />
		</rules>

does not cause the extension to be loaded. A kind of chicken-egg-issue. I see two options:

  1. Add the utPLSQL menu on every node in the tree, unconditionally (rule="always-enabled" instead of rule="dbnode-is-utplsql-ready")

  2. Use rule-types defined in the extension oracle.jdeveloper.java.core, they are already loaded and therefore can be used. However, rules have to be build using a composite-rule in the extension.xml, which is a bit verbose and less precise than the current implementation in UtplsqlNavigatorRule.xtend.

Option 2 is the way to go.

from utplsql-sqldeveloper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.