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 214918 - Setting one project as Main breaks context menus for others
Summary: Setting one project as Main breaks context menus for others
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.2
Hardware: All All
: P2 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-28 13:51 UTC by Alexander Pepin
Modified: 2012-09-26 02:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2012-06-28 13:51:03 UTC
See also bug #214909

Steps to reproduce:
- create Welcome and Quote sample projects
- set Welcome project as Main
- right-click on Quote to open a context menu
Results: The context menu contains the following odd items:
- Build @ Debug
- Clean and Build @ Debug
- Run @ Debug
- Debug @ Debug
- Step into @ Debug
Comment 1 Alexander Pepin 2012-06-28 14:32:13 UTC
It would look better if the configuration was shown in (round) brackets e.g.
- Build (Debug)
- Run (Debug)
etc.
Comment 2 Vladimir Voskresensky 2012-06-28 19:49:09 UTC
General Project UI, not cnd specific
Comment 3 Milos Kleint 2012-06-29 07:47:13 UTC
well, I don't get any of these results with ant freeform, maven nor netbeans platform projects. Apparently there's something special to cnd project popup menu and it's actions.

reassigning back, please do an indepth analysis on your side first. Especially concerning how the @Debug message gets there into the action's label.
Comment 4 Vladimir Voskresensky 2012-06-29 08:17:45 UTC
probably the same 
http://hg.netbeans.org/cnd-main/rev/b4f0c6004578
Comment 5 Milos Kleint 2012-06-29 11:29:03 UTC
(In reply to comment #1)
> It would look better if the configuration was shown in (round) brackets e.g.
> - Build (Debug)
> - Run (Debug)
> etc.

We arrive at at problems with Debug (Debug) then..

Another possible problem with the current solution is the label of Main menu's Run/Set project Configuration which should probably say "Set Main project Configuration" in order to be aligned with the rest of the menu items there..


I suppose the whole UI change was only done because the Configuration combo in main menu now related to main project, not selected project. Right? The same is true for other actions in the same toolbar and the behaviour was consistent even before 7.2 as far as I can tell.

Personally I don't see a point in showing the configuration at all in the popup. For java projects and default configuration this add extreme clutter to the popup menu. On Macosx the supposed shadow color doesn't apply and all is the color..

My counter-proposal is to have active configuration shown in the projects view on the project node (under any conditions or only if different from the main project?) That's basically what appears to be the   problem reported in the initial comment in issue 210304. unlike today default config should not be shown.
Comment 6 Milos Kleint 2012-09-05 08:40:02 UTC
I will revert changeset b4f0c6004578 to fix this issue and issue 214909 and will reopen issue 210304.


We can show the active configuration in Set Configuration > menu item if really, really necessary.
Eg. Set Configuration @ Debug > which will be shown all the time, not only when there is another project set as main and the current config differs from the main project's one.
Comment 7 Milos Kleint 2012-09-25 08:32:47 UTC
http://hg.netbeans.org/core-main/rev/a74092d7a9e7

reverting the b4f0c6004578 changeset
Comment 8 Quality Engineering 2012-09-26 02:08:53 UTC
Integrated into 'main-golden', will be available in build *201209260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a74092d7a9e7
User: Milos Kleint <mkleint@netbeans.org>
Log: #214918, #214909 reverting changeset b4f0c6004578, when main project is set don't annotate other projects' popup menu.