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 249510 - Coloring of editor tabs is limited by 9 projects
Summary: Coloring of editor tabs is limited by 9 projects
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.0.2
Hardware: PC All
: P3 normal with 2 votes (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 252390 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-12-24 04:51 UTC by StChamond
Modified: 2017-01-04 22:47 UTC (History)
1 user (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 StChamond 2014-12-24 04:51:33 UTC
There is option for coloring of editor tabs: in Options \ Appearance \ Document Tabs \ Same background color  for files from the same project.

If you have opened more than 9 projects, only first 9 of them (in order of opening) will have custom color. The rest will have default gray tabs.

The possible cause is in class org.netbeans.core.multitabs.impl.ProjectColorTabDecorator. Here is defined 9 colors in the array backGroundColors.

The possible solution is to add more predefined colors or to implement some clever algorithm to generate a set of distinguishable pale colors on demand.


Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b17
System: Linux version 3.17.7-200.fc20.x86_64 running on amd64; UTF-8; en_US (nb)
Comment 1 StChamond 2014-12-24 05:09:24 UTC
Another possible solution is to assign a color to a project only if user open a file from a project. And to "recall" a color of a project when there is no opened editor windows for this project.
Because we have often a bunch of opened projects in the same time, but almost never have opened editor windows for more than 9 of projects.
Comment 2 Dexy86 2015-05-27 12:22:47 UTC
*** Bug 252390 has been marked as a duplicate of this bug. ***
Comment 3 dkamner 2017-01-04 21:39:46 UTC
*** Bug 268532 has been marked as a duplicate of this bug. ***