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 145951 - can't apply properties to multiple files or configurations
Summary: can't apply properties to multiple files or configurations
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker with 5 votes (vote)
Assignee: ilia
URL:
Keywords:
: 168755 249286 (view as bug list)
Depends on:
Blocks: 146680 249286
  Show dependency tree
 
Reported: 2008-09-02 18:52 UTC by tbrunhoff
Modified: 2015-01-20 04:03 UTC (History)
2 users (show)

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 tbrunhoff 2008-09-02 18:52:40 UTC
Properties associated with a file can only be changed one file at a time. This includes
 - include directories
 - preprocessor definitions
 - whether to exclude the file from code assistance
 - the kind of tool used to compile the file
Multiple files can be selected in the Projects view, but the properties cannot be updated when more than one is selected.

Similarly, when modifying properties (even on a single file), its quite likely you would want to make the same property
modification in all configurations. This is not possible.

All of this pushes the user to modifying the configuration.xml file by hand.
Comment 1 Thomas Preisler 2008-09-16 15:55:59 UTC
> Similarly, when modifying properties (even on a single file), its quite likely you would want to make the same property
modification in all configurations. This is not possible.
Yes, it is. Select "All Configurations" from drop-down combo box.
Comment 2 tbrunhoff 2009-10-23 01:36:48 UTC
So to be clear, you can modifiy properties on a single file across multiple configurations, but you cannot modify
properties on multiple files on *any* configurations, single or multiple.
Comment 3 Thomas Preisler 2010-10-29 20:12:48 UTC
See also CR 6995901
Comment 4 Thomas Preisler 2010-10-29 23:03:18 UTC
CR 6995901 closed as not a bug....
Comment 5 tbrunhoff 2012-10-18 18:11:40 UTC
>>modifying properties (even on a single file), its quite likely you would want to 
>> make the same property modification in all configurations. This is not possible.
>Yes, it is. Select "All Configurations" from drop-down combo box.

I think we are talking about different things. Lets's say I have 4 files in my project:
 - a.cc
 - b.cc
 - c.cc
 - d.cc

Let's say I want to change the state of "exclude from code assistance" for a.cc and b.cc. If I select both in the "projects" pane, then right click on the selection, the "properties" menu item is disabled. The same thing would be true for any other property specific to files: tool, command line, additional dependencies, includes, defines, etc.

The "all configurations" you refer to works only for all files in all configurations, not for some files. You see the distinction?
Comment 6 tbrunhoff 2012-10-18 18:13:36 UTC
... and the result is that changing one property on N files requires N dialog sessions. A laborious thing.
Comment 7 tbrunhoff 2012-11-07 19:45:59 UTC
Too late for 7.0, so bumped it to 7.3. And still an inconvenience. Please confirm the last detailed description above on how you can't apply properties to multiple files or configurations.
Comment 8 Vladimir Voskresensky 2014-12-11 12:01:50 UTC
*** Bug 168755 has been marked as a duplicate of this bug. ***
Comment 9 Vladimir Voskresensky 2014-12-11 12:01:54 UTC
*** Bug 249286 has been marked as a duplicate of this bug. ***
Comment 10 tahiri123 2014-12-11 12:27:14 UTC
Is there any chance this feature will be implemented? Is there any technical inconvenience related to it?
Comment 11 ilia 2015-01-12 11:07:43 UTC
Fixing in 282632:2673b7505048, 282633:3240cca04fd0

Changes:
  * Allow multiple file selection. All files should belong to the same project.

Need to implement the same for folders.
Comment 12 Quality Engineering 2015-01-13 04:17:40 UTC
Integrated into 'main-silver', will be available in build *201501130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2673b7505048
User: Ilia Gromov <ilia@netbeans.org>
Log: Fixing Bug #145951 - can't apply properties to multiple files or configurations
Comment 13 ilia 2015-01-13 10:18:27 UTC
Fixing in 282649:fe35fa64a32f

Changes:
  * Added the same support for folders and fixed couple of NPE after the last fix
Comment 14 ilia 2015-01-13 11:50:46 UTC
Additional fix in 282651:8bdb9eeb6213
Comment 15 Quality Engineering 2015-01-14 03:14:16 UTC
Integrated into 'main-silver', will be available in build *201501140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fe35fa64a32f
User: Ilia Gromov <ilia@netbeans.org>
Log: Fixing Bug #145951 - can't apply properties to multiple files or configurations
- Select muplitle folders
Comment 16 ilia 2015-01-19 09:15:07 UTC
Additional fix:
  http://hg.netbeans.org/cnd-main/rev/8a23b7dc7a73

Changes:
  * Fixed NPE
Comment 17 Quality Engineering 2015-01-20 04:03:23 UTC
Integrated into 'main-silver', will be available in build *201501200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8a23b7dc7a73
User: Ilia Gromov <ilia@netbeans.org>
Log: Fixing Bug #145951 - can't apply properties to multiple files or configurations