English 中文(简体)
How do I select a file within a .app in Mac OS X?
原标题:

I m trying to configure PyDev in eclipse, and as part of that I m trying to add some source folders to the External Libraries section for PYTHONPATH. However, when I click "Add source folder" in eclipse, it s not letting me drill into any .app directories. Normally, in regular Finder, I would right click and choose "Show Package Contents", but through the "Add Source Folder" in Eclipse, all the .apps are greyed out and I can t right click on them. Any ideas on how I get past this? Specifically, I m looking to drill into the GoogleAppEngineLauncher.app. I m still very new to Macs, so I m guessing (hoping?) the solution is easy and obvious to one of you out there.

Thanks

最佳回答

.app s are just directories and you can treat them as such. If you can manually type the path, i think that would work (it does with other programs I ve used).

As for drilling into the package from the file dialog, it may be possible, but I haven t found how.

Just checked this & it worked for me (you ll have to manually type the full path in the popup):

The "Go To Folder…" keyboard shortcut (⌘⇧G) works from within "Open" or "Save"
dialogues    and should allow access to the interior of packages by entering
a path...

This shortcut works anywhere from finder, useful for getting to those hidden folders such as /etc & /usr

问题回答

When Eclipse brings up the file-open dialog, switch over to the Mac Finder, browse to the .app, drill down into it with right-click > Show Package Contents, and then drag the file or folder you want from the Finder window onto the file-open dialog that Eclipse is still showing.





相关问题
In Eclipse, why doesn t "Show In" appear for non-Java files?

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Indentation guide for the eclipse editor

Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...

Adding jar from Eclipse plugin runtime tab

I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...

How to copy multiple projects into single folder in eclipse

I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.

热门标签