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 269484 - Git toolbar buttons not enabled
Summary: Git toolbar buttons not enabled
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-03 15:55 UTC by mclaborn
Modified: 2017-01-04 16:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (515.84 KB, text/plain)
2017-01-03 15:55 UTC, mclaborn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2017-01-03 15:55:57 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Linux version 4.4.0-57-generic running on amd64
Java; VM; Vendor = 1.8.0_112
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.112-b15

Reproducibility: Happens every time

I added a couple of git toolbar buttons (Show Changes, Push to Upstream) to my toolbar, but they are never enabled. I would expect them to be enabled when a project is selected in the project view.
Comment 1 mclaborn 2017-01-03 15:55:59 UTC
Created attachment 163333 [details]
IDE log
Comment 2 mclaborn 2017-01-04 16:33:44 UTC
From mailing list member Fred Welland:

FWIW:    I noticed something like this before and with your post I went an did some simple tests.    My env: 

Product Version: NetBeans IDE 8.2 (Build 201609300101)

Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 1

Java: 1.8.0_112; Java HotSpot(TM) 64-Bit Server VM 25.112-b15

Runtime: Java(TM) SE Runtime Environment 1.8.0_112-b15

System: Linux version 4.8.15-200.fc24.x86_64 running on amd64; UTF-8; en_US (nb)



At present I ONLY use gradle projects in NB. 


I have added a few GIT tool bar button too -- PULL, PUSH, Show All for example. 


I have 4 gradle projects open:   a root gradle and 3 subs from that root. 


In the project tab: 


With NO FILES OPEN, when I click on a the 'main' node for a project:  buttons on/ok

With NO FILES OPEN, when I click on a NON-code node (Dependencies, Build Scripts) for a project:  buttons OFF

With NO FILES OPEN, when I click on a code node (Source Packages, Web Pages) for a project:  buttons ON


If I have a source file loaded,  generally this stays the same way.    However, if put the focus in the editor, it turns the buttons ON (regardless of the node that has focus in the project explorer). 



I don't know if this is wrong, right, bug-worthy or what.     Just giving information.
Comment 3 mclaborn 2017-01-04 16:34:04 UTC
I cannot duplicate Fred's results.  The buttons are never enabled for me.