How to open Pydev Package Explorer - eclipse

so I guess this quest is kind of stupid, but I am completely new to eclipse and pydev. I recently switched from using SPE. So I closed the Pydev Package explorer, how do I open it again? I am using LiClipse 0.9.7. Thanks in advance

I don't see what you see, but try...
Window | Show View | Other... | Pydev Package Explorer

#Grzegorz Oledzki is right, but I wanted to add some more info:
If you're in the PyDev perspective (window > open perspective > pydev), you can use Shift+Alt+W when you're inside any editor and then select to show that editor in the pydev package explorer (this also works to show in other places such as the outline and it's very handy to go from the editor to the pydev package explorer).
Also, in the latest version (3.3.3), you can use Ctrl+3 and then write 'pydev package explorer' to go to it (actually, it'll show much earlier to select and that can be used to go to any view or preferences page or even to activate some menu).
Note: this would also work on earlier versions if the Ctrl+3 binding that did a comment in the PyDev editor was removed (to let the default Ctrl+3 from Eclipse do its work).

Related

Eclipse Oxygen with pydev has wrong index, cannot rebuild it

I have installed pydev on eclipse oxygen, and globally search the content by pressing "Ctrl+H", but the search result has wrong line numbers, I cannot get correct search result either by doing "Refresh" or re-creating the workspace, anyone has come into the same situation and help me ? Thx.
Do you have auto-build turned on (in the menu: project > build automatically)?
You can also trigger a reindex by doing the following: open a PyDev editor, trigger: Ctrl+2 and then choose --reindex in the menu that opens (considering you're doing a search in the PyDev tab).

Show package explorer in PyDev Debug perspective

How do I show the package explorer in PyDev debug view?
The way it is now, the package explorer disappears when the view switches. This then shifts the editor left; Super annoying.
I have tried window > show view > other > pydev >...
There are some choices:
You can use Alt+Shift+W then select PyDev Package explorer (this will also select the file for the current editor in the PyDev Package explorer) -- this is the one I usually use as it's also useful to select the current file.
Use Ctrl+3 then type PyDev Package explorer (you probably won't have to type it all, just a part of it).
Use the menu Window > Show View > other > PyDev > PyDev Package Explorer.

PyDev package explorer empty

Up until today all was well with Eclipse and PyDev. I have not modified Eclipse or installed anything since it was working yesterday.
Now, the PyDev Package Explorer shows no entries. I can see them if I switch to the normal project/navigator view.
If I watch the pydev package explorer and switch in and out I can see something briefly appearing then disappearing.
I've deleted every project, created a new workspace and tried uninstalling and installing pydev, but still the pydev package explorer shows nothing.
All settings are correct and I can run python code, but I'd really like my package explorer back.
Any ideas?
I'm on pydev version 3.7.1.x
Thanks.
Maybe you added a filter or made top level elements working sets and have no working set defined?
I.e.: Ctrl+F10 > top level elements > Projects/Working Sets
or Ctrl+F10 > customize view.
This steps helped me for the same issue:
Ctrl+F10 -> Select Working Set... -> No Working Sets

pydev plugin in eclipse not showing the files in the project explorer

I am using pydev plugin in eclipse. I can create the project, but I cannot see the files in the project explorer.
I am attaching the screenshot. Any idea how to fix it.
Thanks
Kiran
in Pydev explorer Ctrl+F10 then from Top Level Elements choose Projects. It will show the projects in your workspace
I got a little workaround. I'm not sure what the difference between "PyDev Package Explorer" and "Package Explorer" is supposed to be, but it's clear that one of them is buggy.
I'm well aware that this is from 2011, but I came across this question while searching for it. I hope my answer will help someone.
Ensure you are in the "PyDev" perspective.
Top menu bar > Window > Customize Perspective...
Menu Visibility tab
Under "Edit", tick the "Show views" box (it might be half-ticked somehow depending on how your OS displays that). Press OK.
Top menu bar > Window > Show view > Package Explorer
A new 'view' should now be visible, called "Package Explorer". Move Package Explorer to an appropriate space (click and drag).
Delete the old "PyDev Package Explorer".
It seems that Eclipse does not have the resources up to date...
Have you configured Eclipse to do automatic refresh of resources?
Preferences > General > Startup and Shutdown: check 'Refresh workspace on startup'
Preferences > Workspace: check: Refresh automatically (this depends on your Eclipse version -- in 3.7 the settings were changed a bit, but it should be easy to know which configurations are related).
You can also try making a manual refresh: either F5 or right-click: refresh.
Another thing to check is if the path of the project is actually the path you're expecting (i.e.: the path that has the resources) -- you can press Alt+Enter to open the properties for the project and check if the location is actually correct.

How to prevent Eclipse from showing the opened file in package explorer

somehow I've ended up in a situation such that when I navigate through source files with Eclipse, the Eclipse always selects (and expands) the opened file with package explorer. With this I end up
losing my location on Package Explorer
Having my Package explorer expanded and pretty confusing.
With brief googling/exploring on the preferences I couldn't find this one..
Eclipse version is 3.4 if that happens to matter.
Thanks in advance,
Touko
Turn off the "Link with Editor" option in the Package Explorer toolbar.
(the left/right arrow icon, turned on here)
Select a source file, right click on it, choose "Open with" and then "Java Editor". The Java Editor should be the default after that for all java files.