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.
Web Server and Web Root properties does not make sense for PhoneGap "browsers"
I was thinking about adding some SPI to control that.
Tomas could you look into this issue. I think the fix could be as simple as enhancing org.netbeans.modules.web.clientproject.spi.platform.ProjectConfigurationCustomizer with some ability to express that some default UI elements in HTML's Run panel should be hidden.
Please notice that I have no idea what the plans for using ProjectConfigurationCustomizer are - so feel free to suggest better names and/or better solution. What about just this simple change: public interface ProjectConfigurationCustomizer { JPanel createPanel(); EnumSet<HiddenProperties> getHiddenProperties(); enum HiddenProperties { WEB_SERVER, WEB_ROOT, } } It should work and should be ready for future changes. What do you think, guys? Thanks.
I think this is pretty good. Thx.
Done but: - Honzo please verify PhoneGap "browser" - IMHO it does not provide ProjectConfigurationCustomizer and I am not sure if it is expected or not; - Davide, if there is no ProjectConfigurationCustomizer, the web server related fields are shown. Also, I have found out that just one property is needed (only WEB_SERVER, Web Root depends on it). Thanks. http://hg.netbeans.org/web-main/rev/6389e7e117fe
Integrated into 'main-silver', will be available in build *201307022300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/6389e7e117fe User: Tomas Mysik <tmysik@netbeans.org> Log: #229386 - Some properties does not make sense for PhoneGap browser