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 239472 - (Project coloring) Coloring of tabs doesn't work
Summary: (Project coloring) Coloring of tabs doesn't work
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-13 13:55 UTC by arittner
Modified: 2014-12-17 09:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (470.64 KB, image/jpeg)
2013-12-13 13:55 UTC, arittner
Details
Screenshot (sorting) (601.86 KB, image/jpeg)
2013-12-13 15:16 UTC, arittner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description arittner 2013-12-13 13:55:53 UTC
Created attachment 143158 [details]
Screenshot

Sometimes (yes, very bad) I've a tab coloring. But typically it doesn't work. All my tabs have the same gray color. 

My system:

Product Version: NetBeans IDE 7.4 (Build 201310111528)
Updates: Updates available to version NetBeans 7.4 Patch 1
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b60
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b118
System: Windows 7 version 6.1 running on amd64; Cp1252; de_DE (nb)
User directory: C:\Users\arittner\AppData\Roaming\NetBeans\7.4
Cache directory: C:\Users\arittner\AppData\Local\NetBeans\Cache\7.4
Comment 1 Milos Kleint 2013-12-13 14:44:15 UTC
saubrecht: any idea where this is implemented?
Comment 2 arittner 2013-12-13 15:04:00 UTC
I only found this corresponding log lines (TabbedHandler) but with non matching warnings (missing icons - this is wrong, all editor tabs comes with icons):

INFO [org.netbeans.core.windows.view.ui.TabbedHandler]: TopComponent has no icon: MVCTC[name=EmployeeCompanyData.java, peer=[model=current=org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD@3ec67ae5]]
INFO [org.netbeans.core.windows.view.ui.TabbedHandler]: TopComponent has no icon: MVCTC[name=EmployeeCompContactData.java, peer=[model=current=org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD@d409c32]]
INFO [org.netbeans.core.windows.view.ui.TabbedHandler]: TopComponent has no icon: MVCTC[name=EmployeeAssignedCustomers.java, peer=[model=current=org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD@74e147e2]]
WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.home has been obsoleted in favor of InstalledFileLocator/Places at org.netbeans.Clusters.relativeDirsWithHome(Clusters.java:137)
INFO [org.netbeans.core.windows.view.ui.TabbedHandler]: TopComponent has no icon: MVCTC[name=EmployeeCompHistoryData.java, peer=[model=current=org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD@4799d30a]]
INFO [org.netbeans.core.windows.view.ui.TabbedHandler]: TopComponent has no icon: MVCTC[name=CompanyEmployeesPanel.java, peer=[model=current=org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD@3da749a4]]
INFO [org.netbeans.core.windows.view.ui.TabbedHandler]: TopComponent has no icon: MVCTC[name=EmployeeCompanyData.java, peer=[model=current=org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD@3ec67ae5]]
INFO [org.netbeans.core.windows.view.ui.TabbedHandler]: TopComponent has no icon: MVCTC[name=EmployeeMoveVisualPanel1.java, peer=[model=current=org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD@6ba1d825]]
INFO [org.netbeans.core.windows.view.ui.TabbedHandler]: TopComponent has no icon: MVCTC[name=EmployeeTopComponent.java, peer=[model=current=org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD@1e587e3]]
INFO [org.netbeans.core.windows.view.ui.TabbedHandler]: TopComponent has no icon: MVCTC[name=EmployeeCompContactData.java, peer=[model=current=org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD@d409c32]]
WARNING [org.openide.filesystems.Ordering]: Relative ordering attribute org-netbeans-modules-favorites-SelectInFavorites.shadow/net-sf-efhnbm-SelectFromHere.shadow on Menu/GoTo is deprecated in favor of numeric position attributes
WARNING [org.openide.filesystems.Ordering]: Not all children in Menu/GoTo/ marked with the position attribute: [net-sf-efhnbm-SelectFromHere.shadow], but some are: [org-netbeans-modules-jumpto-file-FileSearchAction.shadow, org-netbeans-modules-jumpto-type-GoToType.shadow, org-netbeans-modules-jumpto-symbol-GoToSymbol.shadow, org-netbeans-modules-spring-beans-jumpto-type-GoToBean.shadow, org-netbeans-modules-gototest-GotoOppositeAction.shadow, org-netbeans-core-windows-actions-RecentViewListAction.shadow, core-windows-SeparatorAfterRecentList.instance, org-netbeans-modules-editor-MainMenuAction$GoToSourceAction.instance, goto-declaration.shadow, org-netbeans-modules-editor-MainMenuAction$GoToSuperAction.instance, Inspect, SeparatorBeforeJumpBack.instance, org-netbeans-modules-editor-impl-actions-NavigationHistoryLastEditAction$MainMenu.instance, org-netbeans-modules-editor-MainMenuAction$JumpBackAction.instance, org-netbeans-modules-editor-MainMenuAction$JumpForwardAction.instance, SeparatorBeforeGoToLine.instance, org-openide-actions-GotoAction.shadow, org-netbeans-editor-bookmarks-ToggleBookmark.shadow, bookmark-history-popup-next.shadow, bookmark-history-popup-previous.shadow, SeparatorAfterBookmarks.instance, org-netbeans-core-actions-JumpNextAction.shadow, org-netbeans-core-actions-JumpPrevAction.shadow, org-netbeans-modules-project-ui-SelectInProjects-separatorBefore.instance, org-netbeans-modules-project-ui-SelectInProjects.shadow, org-netbeans-modules-project-ui-SelectInFiles.shadow, org-netbeans-modules-favorites-SelectInFavorites.shadow]
INFO [org.netbeans.core.windows.view.ui.TabbedHandler]: TopComponent has no icon: MVCTC[name=EmployeeAssignedCustomers.java, peer=[model=current=org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD@74e147e2]]
INFO [org.netbeans.core.windows.view.ui.TabbedHandler]: TopComponent has no icon: MVCTC[name=CompanyAssignedEmployees.java, peer=[model=current=org.netbeans.core.spi.multiview.MultiViewFactory$MapMVD@7e464272]]

HTH, josh
Comment 3 arittner 2013-12-13 15:15:49 UTC
And another hint: Also sorting (grouping tabs by project) doesn't work.

I've enabled the sorting and the opened editor tabs are not grouped together. (I'll add a screenshot)
Comment 4 arittner 2013-12-13 15:16:43 UTC
Created attachment 143162 [details]
Screenshot (sorting)
Comment 5 Stanislav Aubrecht 2013-12-13 15:49:14 UTC
'Sort opened documents list by project' applies to the drop down menu that opens after clicking 'down arrow' button in the upper right corner of the editor area. It doesn't affect the order of tabs.

When 'Background color by project' is on and all the tabs are gray, does menu 'Navigate - Select in Projects' work?
Comment 6 arittner 2013-12-13 15:57:18 UTC
(In reply to Stanislav Aubrecht from comment #5)
> 'Sort opened documents list by project' applies to the drop down menu that
> opens after clicking 'down arrow' button in the upper right corner of the
> editor area. It doesn't affect the order of tabs.

Doh, you are right. 


> When 'Background color by project' is on and all the tabs are gray, does
> menu 'Navigate - Select in Projects' work?

Yes (if not I'll file a P1 Bug ;-) - Navigate works for my. 

And: "View - Synchronize Editors with Views" works well (but normally I disable this function)

br, josh.
Comment 7 Stanislav Aubrecht 2014-06-13 13:35:59 UTC
I've made some changes in the fix for #244138
Please reopen if still reproducible in latest nightly builds, thanks.
Comment 8 StChamond 2014-12-17 07:15:32 UTC
There are only 9 predefined colors for tabs background in version 8.0.2. If you have opened more than 9 projects, some of them will have default gray tabs.

Look at org.netbeans.core.multitabs.impl.ProjectColorTabDecorator.

Please add more predefined colors. Or you can 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.6-200.fc20.x86_64 running on amd64; UTF-8; en_US (nb)
User directory: /home/user/.netbeans/8.0.2
Cache directory: /home/user/.cache/netbeans/8.0.2
Comment 9 Stanislav Aubrecht 2014-12-17 09:58:46 UTC
(In reply to StChamond from comment #8)
> There are only 9 predefined colors for tabs background in version 8.0.2. If
> you have opened more than 9 projects, some of them will have default gray
> tabs.

Please file a new ER for that, thanks.