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.

Bug 200660

Summary: NetBeans platform should not be referenced by display name
Product: apisupport Reporter: Tomas Mysik <tmysik>
Component: ProjectAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: normal Keywords: UI
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 74399    

Description Tomas Mysik 2011-08-04 10:23:13 UTC
Maybe I'm missing something but - if one develops NB modules then NB platform (as a library) has to be set. This relation is done using NB platform (display) name, it means that every member of a team has to name his/her NB platform with the same name.

I think that it would be much better to have something "immutable" (set by NB itself), something similar to Java source level (something like NB_69, NB_691 etc.).

Thanks.
Comment 1 Jesse Glick 2011-08-04 11:59:36 UTC
(In reply to comment #0)
> This relation is done using NB platform (display) name

Well, whatever you type as the platform name.

> it means that every member of a team has to name his/her NB platform with
> the same name.

Correct. I like to use "nb69" etc.

> I think that it would be much better to have something "immutable" (set by NB
> itself), something similar to Java source level (something like NB_69, NB_691
> etc.).

The wizard could prefill a more generic name. See bug #74399 for analogy.
Comment 2 Jesse Glick 2011-08-04 12:23:27 UTC
The main difficulty is that there is no equivalent to ${java.specification.version} for a NB Platform. There are spec versions for various modules, but "NetBeans IDE 6.9.1 (Build ...)" is a localized branding name with no code meaning.
Comment 3 Tomas Mysik 2011-08-04 12:31:29 UTC
(In reply to comment #2)
> The main difficulty is that there is no equivalent to
> ${java.specification.version} for a NB Platform. There are spec versions for
> various modules, but "NetBeans IDE 6.9.1 (Build ...)" is a localized branding
> name with no code meaning.

Cannot we add such property? It seems to me to be very similar (the same) as NB version.
Comment 4 Jesse Glick 2011-08-04 14:05:45 UTC
core-main #b99c72a4d4ce
Comment 5 Jesse Glick 2011-08-04 14:18:29 UTC
(In reply to comment #3)
> Cannot we add such property?

Probably not, because the platform is just a collection of modules which might have different origins. Anyway a new property would not help with 7.0.1 and prior platforms.

For now I just put in code to extract usable versions from known display name patterns (org.netbeans.core.startup.Bundle#currentVersion). If a localization translates this key (and none in main/l10n do so), or you are using a branded IDE from another vendor, or some non-IDE app, then you still need to pick a platform ID suitable for sharing.

I also made changes to the UI of NB Plaf Mgr and its Add wizard to differentiate the "Platform Name" (mostly like the internal ID, modulo s/ /_/g and so on) from the informational "Platform Label" (derived from currentVersion), and renamed the platform with ID=default to "Development IDE".

Note that preexisting custom platforms keep the same Platform Name (and ID); so if you chose a crappy name before it will still be there.
Comment 6 Quality Engineering 2011-08-05 14:38:24 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/b99c72a4d4ce
User: Jesse Glick <jglick@netbeans.org>
Log: #200660: NetBeans platform should not be referenced by display name