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

Bug 501049

Summary: Binding for Open PHP Type doesn't work in Project Explorer
Product: z_Archived Reporter: Michal Niewrzal <wywrzal>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact: Sylvia Tancheva <silviya>
Severity: major    
Priority: P3 CC: thierryblind, zulus
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=462699
https://git.eclipse.org/r/119629
https://git.eclipse.org/r/119630
https://git.eclipse.org/c/pdt/org.eclipse.pdt.git/commit/?id=97b1de7aba0445759dceb8e11f136181b5864cd7
Whiteboard:
Bug Depends on:    
Bug Blocks: 478814    

Description Michal Niewrzal CLA 2016-09-08 04:43:36 EDT
It works only if selection is on PHP model element.
Comment 1 Thierry BLIND CLA 2016-09-08 06:25:26 EDT
Sorry Michal, it may sound stupid, what do you mean with "Open PHP Type" in Project Explorer? :) I'm a bit lost ;)
Comment 2 Michal Niewrzal CLA 2016-09-08 06:29:00 EDT
No problem :) 'Open PHP Type' dialog available under Shift+Ctrl+T shortcut or from main menu Navigate -> Open Type.

I noticed that there is the same problem for 'Open Method' dialog.
Comment 3 Michal Niewrzal CLA 2016-09-08 06:30:48 EDT
And main problem is that Shift+Ctrl+T is not always working inside Project Explorer.
Comment 4 Thierry BLIND CLA 2016-09-08 06:35:40 EDT
Ok thank you now I understand ;)
Strangely I see no error on my side, maybe I do only some basic use for now!
Comment 5 Michal Niewrzal CLA 2016-09-08 06:43:20 EDT
Hmm maybe I will describe my workflow with details:
* Open PHP Perspective
* Open Project Explorer, close PHP Explorer
* Create PHP project
* Create file test.txt
* Select this file and try Ctrl+Shift+T
* In my case 'Open PHP Type' dialog is not opening
Comment 6 Thierry BLIND CLA 2016-09-08 07:04:02 EDT
Ok I could reproduce it with your description, thank you Michal :)
I never hit this bug before, because I always use the PHP Explorer!
Comment 7 Michal Niewrzal CLA 2016-09-08 07:05:49 EDT
Me too but now when we are thinking about replacing PHP Explorer with Project Explorer I started to check things here and there :)
Comment 8 Thierry BLIND CLA 2016-09-08 08:19:56 EDT
Please stop finding bugs ! ;) I'm joking ! ;)
Comment 9 Michal Niewrzal CLA 2016-10-11 18:31:17 EDT
At the moment I cannot find satisfying solution for this. Mainly because every attempt to fix this finish with conflict with JDT and theirs Ctlr+Shift+T :)

As workaround/enhancement maybe we can add Open PHP Type and Open PHP Method to perspective toolbar? We have place there.
Comment 10 Thierry BLIND CLA 2016-10-12 09:08:43 EDT
We can make a try ;) I see that more like a workaround, generally I'm a heavy keyboard shortcut user ;)
Comment 11 Eclipse Genie CLA 2018-03-18 07:39:57 EDT
New Gerrit change created: https://git.eclipse.org/r/119629
Comment 12 Eclipse Genie CLA 2018-03-18 07:52:11 EDT
New Gerrit change created: https://git.eclipse.org/r/119630