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 - NetBeans platform should not be referenced by display name
Summary: NetBeans platform should not be referenced by display name
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: UI
Depends on:
Blocks: 74399
  Show dependency tree
 
Reported: 2011-08-04 10:23 UTC by Tomas Mysik
Modified: 2011-08-05 14:38 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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