Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326305

Summary: C/C++ active build configuration as project decorator
Product: [Tools] CDT Reporter: Salvatore Culcasi <salvatore.culcasi>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED WONTFIX QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: enhancement    
Priority: P3 CC: cdtdoug, freidin.alex
Version: 4.0.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch proposing the enhancement
none
This is what appears in the Common Navigator views none

Description Salvatore Culcasi CLA 2010-09-27 09:59:48 EDT
Build Identifier: Any

It would be nice to visualize the current active build configuration
The visualization should be easily readable and should not clutter the existing UI

In attachment there is a patch that using the decorators extension point shows
 the active build configuration on the right of the project name 

The user could choose to switch on/off the functionality using the preferences available in Window>Preferences>General>appearance>Label decorations
By default is OFF

Reproducible: Always

Steps to Reproduce:
Enhancement request
Comment 1 Salvatore Culcasi CLA 2010-09-27 10:01:14 EDT
Created attachment 179639 [details]
Patch proposing the enhancement

Patch which proposes the enhancement and fixes a refresh problem when changing the active configuration from the toolbar
Comment 2 Salvatore Culcasi CLA 2010-09-27 10:02:14 EDT
Created attachment 179640 [details]
This is what appears in the Common Navigator views
Comment 3 Andrew Gvozdev CLA 2010-09-27 13:40:01 EDT
I have a couple of questions:
1. In your particular workflow, why do you need to visualize that besides being nice and looking pretty? Is there a situation when a user would make a different decision based on that information?
2. If some other decorators like that are there (i.e. CVS branch decorator), what will be the order?
Comment 4 Doug Schaefer CLA 2010-09-27 14:28:26 EDT
I'm definitely not in favor of this. Decorators in the project explorer are generally reserved for source control information.

Once we have Configurations in the Resource tree we can highlight the active on there.
Comment 5 Salvatore Culcasi CLA 2010-09-28 04:11:33 EDT
(In reply to comment #3)
> I have a couple of questions:
> 1. In your particular workflow, why do you need to visualize that besides being
> nice and looking pretty? Is there a situation when a user would make a
> different decision based on that information?
> 2. If some other decorators like that are there (i.e. CVS branch decorator),
> what will be the order?

1) yes, we have still customers reluctant to adopt Eclipse/CDT, these people complains that some information are not quickly accesible and requires  user actions to access them

2) not checked anyway the Comment 4 made this proposal obsolete
Comment 6 Andrew Gvozdev CLA 2010-09-28 16:19:47 EDT
(In reply to comment #5)
> 1) yes, we have still customers reluctant to adopt Eclipse/CDT, these people
> complains that some information are not quickly accesible and requires  user
> actions to access them
> 2) not checked anyway the Comment 4 made this proposal obsolete
That is not really answering the questions but if the proposal is obsolete I close the bug.
Comment 7 Alex Freidin CLA 2010-12-05 10:58:25 EST
(In reply to comment #4)
> I'm definitely not in favor of this. Decorators in the project explorer are
> generally reserved for source control information.
> 
> Once we have Configurations in the Resource tree we can highlight the active on
> there.

While the motivation for this request is clear and the decorator looks good by its own, it doesn't play well with the CVS decorator.
I didn't find anything about "Configurations in the Resource tree", so I opened a general ticket for this topic - bug 331870.
Comment 8 Doug Schaefer CLA 2010-12-05 18:16:52 EST
BTW, I still plan on adding build configurations into the Project Explorer tree. We can use various techniques to highlight the active configuration that way.