|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Problem creating a Ruby hintHi Everyone,
As an experiment I was trying to create a new Ruby Hint from a new module. In order to do that I'm inheriting from org.netbeans.modules.ruby.hints.spi.AstRule however it seems that this class can only be acceded from a module that is a friend of org-netbeans-modules-ruby-hints.jar . By reading the module's project(http://deadlock.netbeans.org/hudson/job/ruby/ws/ruby/hints/nbproject/project.xml ) , only two modules are friends(extrahints and cmdline) of org-netbeans-modules-ruby-hints.jar. Is there any other class which I can use to implement a Ruby Hint? Are there any plans to make org-netbeans-modules-ruby-hints.jar available for other modules ? Thanks in advance, Luis |
|
|
Re: Problem creating a Ruby hintOn Oct 19, 2007, at 5:47 AM, Luis Diego Fallas wrote: Hi Everyone, yes, but not in 6.0. The reason the module does not expose a public API yet (and therefore requires either implementation dependencies or friend status) is that the API is not considered final. It hasn't gone through API reviews yet, and in particular, I'm still thinking it needs some changes. For example, I think a number of hints will want to decide whether they apply or not based on the project type. Rather than having all of them recompute the current project, I want to pass in a map of some common attributes that the modules can look up. To add an implementation dependency, use this: <dependency> <code-name-base>org.netbeans.modules.ruby.hints</code-name-base> <build-prerequisite/> <compile-dependency/> <run-dependency> <release-version>1</release-version> <implementation-version/> </run-dependency> </dependency> (E.g. <implementation-version/> instead of <specification-version>) -- Tor |
| Free embeddable forum powered by Nabble | Forum Help |