This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Currently, to avoid several issues, all the project convertors need to implement/provide their own lookup which is nearly the same for all these implementations. It would be great if there could be some support/helper APIs for it. This issue could be likely solved together with issue #250232. Thanks.
Created attachment 154736 [details] Diff file
Created the SPI support providing: 1st) Method finding the nearest enclosing non artificial project 2nd) Delegating implementation of the FileEncodingQueryImplementation 3rd) Implementation of the Convertor's Project Lookup The support for ClassPathProvider is not included as projectuiapi does not depend on api.java.classpath, this support has to be added to some other place (java.api.common?). However the support has the 1st) getNonConvertorOwner. With this method writing the ClassPathProvider is trivial.
(In reply to Tomas Zezula from comment #2) > The support for ClassPathProvider is not included as projectuiapi does not > depend on api.java.classpath, this support has to be added to some other > place (java.api.common?). Just a note: module java.api.common is in java cluster so unfortunately not suitable for PHP build. Thanks.
Right, this is the reason why I postponed the ClassPathProvider support. Ideally it should be done after the java.api.common is split to real apis.
patch looks ok thanks
Fixed jet-main 39ad0b5393bb
Integrated into 'main-silver', will be available in build *201507230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/39ad0b5393bb User: Tomas Zezula <tzezula@netbeans.org> Log: #253338:Support/helper APIs for Project Convertors