views:

171

answers:

4

PHP Explorer is the eclipse PDT tab (the leftmost in standard configuration) where you can browse the folders of your project. I believe the same tab in standard eclipse is called "Project Explorer" but I am not sure.

What happens to me is that when I close and reopen eclipse, although the files that were open at close time are still open on relaunch of eclipse, all my folder hierarchy in PHP Explorer (where I had various folders open at close time) is displayed collapsed.

Is there away to tell eclipse to reopen all my folders the way they were at close time?

Thank you in advance for your time!

+1  A: 

Maybe this can help :

  • Window > Preference
  • General > Keep next/previous editor, view and perspective dialog open

Not sure it'll do for everything, but it should make things at least a bit better...


Edit : I just checked, to be sure : I closed and re-opened Eclipse, and the "Navigator" view has been restored, with the right directories opened.

Not sure about "PHP Explorer", as I don't use that one... But with a bit of luck, it might do the same...

Pascal MARTIN
Thank you for the suggestion that I promptly tried full of hope and excitement... but unluckily that seems not to affect the PHP explorer bit... :(
mac
Ho :-( sorry :-( (I just never use that view -- I prefer "navigator" ; but thought it might work the same way...)
Pascal MARTIN
+1  A: 

I'm guessing that you are just having too much clutter and need to stay focused on what's relevant for your current task? If that's the case, you should familiarize yourself with Mylyn. You can define tasks (no need for a server to be involved, these can be defined locally) and assign context: the relevant resources involved in the task. Most of the Eclipse views can be filtered to show just the relevant information for the given task.

zvikico
@zvikico - Thank you for the suggestion. I am already a user of *mylyn* which I use in combination with my bugtracker and I find great. Unluckily, the PHP explorer seems to be immune by the task focus logic. BTW: I am not really looking for "cleaning up": it' just that I have 10 levels of nested directories in some projects and I do not want to spend time every time I open eclipse just opening them like a virtual matrioska! :)
mac
If you believe this is a bug in PDT, you should report it in Bugzilla. Full Mylyn support is coming in PDT 2.2 (or Zend Studio 7.1). You install a stable development version of PDT 2.2, see here: http://wiki.eclipse.org/PDT/Installation#Eclipse_3.5_.2F_Galileo_.2F_PDT_2.2
zvikico
+2  A: 

For the sake of quick access to a file deep in the hierarchy, I use the following:

Ctrl-Shift-R (Open Resource) dialog/Start typing filename/open file

If I also want to see the file in the hierarchy, I use:

Right click/Show In/PHP Explorer

EDIT: I've just discovered another option. In the upper right of PHP Explorer control, there is the "Link with editor" button, and it makes the PHP Explorer automatically show the part of the tree containing the file being edited.

tishma
+1  A: 

Since the php navigator isn't affected by the trick Pascal suggested I recommend binding the menu:

Show In > PHP Explorer

To something like Ctrl+P

To do this go to:

Window > Preferences

General > Keys

Search for "Show in (Show In Target Id: PHP Explorer)"

Bind the Ctrl+p (or whatever you may like) in the binding input :)

Hope this helps

AntonioCS
Selected as answer to the question even if it is a workaround, as after all this time I suppose if there was a solution, it would have been mentioned already. Furthermost, it's a real quick workaround, that increases productivity a lot if file hierarchy is particularly complex. Thanks!
mac
Glad I could help ;)
AntonioCS