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 214909 - bad foreground color if I select "Run @DiagnosableReleace" or "Debug @DiagnosableReleace" menu item
Summary: bad foreground color if I select "Run @DiagnosableReleace" or "Debug @Diagnos...
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 11:58 UTC by soldatov
Modified: 2012-09-26 02:10 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (27.46 KB, image/png)
2012-06-28 11:58 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2012-06-28 11:58:36 UTC
Created attachment 121493 [details]
screenshot

Scenario:
- Launch NetBeans 7.2rc1
- Create Fractal
- Call Project Properties window
- Set default configuration as "DiagnosableReleace"
- Create Welcome project
- Set Welcome project as Main Project
- Call context menu on Fractal project node
===> bad background color if I select "Run @DiagnosableReleace" or "Debug @DiagnosableReleace" menu item
Comment 1 Alexander Pepin 2012-06-28 14:02:57 UTC
see also Bug #214918 - Setting one project as Main breaks context menus for others.
This happens on all platforms but is more noticeable on Windows due to the specific color scheme.
Comment 2 Vladimir Voskresensky 2012-06-28 19:46:05 UTC
Looks like general Project UI infra related problem, not cnd specific
Comment 3 Milos Kleint 2012-06-29 07:49:47 UTC
as with issue 214918, please state why it's general project ui problem and and not your own. Please describe the mechanism how @AAA appears in the popup menu.
Comment 4 Vladimir Voskresensky 2012-06-29 08:08:28 UTC
Milos, projects actions and config management is part of generic project UI.
@AAA is added in projectui as well. 
If to be very specific this exact commit:
http://hg.netbeans.org/cnd-main/rev/b4f0c6004578
Comment 5 Milos Kleint 2012-06-29 09:02:48 UTC
looking at the code, I see now what went wrong in my case. I've selected the Netbeans module project as main, which don't have configuration providers and thus the whole block of code was skipped.
Comment 6 Milos Kleint 2012-09-05 08:40:32 UTC
I will revert changeset b4f0c6004578 to fix this issue and issue 214918 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:33:06 UTC
http://hg.netbeans.org/core-main/rev/a74092d7a9e7

reverting the b4f0c6004578 changeset
Comment 8 Quality Engineering 2012-09-26 02:10:14 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.