finder
Mac JDeveloper – Show in Finder
Ever wanted to easily reveal a file that you’re working on in JDeveloper in the Mac OS X Finder?
Here’s how to set up a toolbar button and context menu item to do just that:
- Go to Tools – External Tools
- Click New…
- Choose these settings:
Type = External Program
Executable = open
Arguments = -R ${file.path}
Caption = Show in Finder
Add Item to Menus = Tools Menu, Window Context Menu, Source Editor Context Menu
Add Buttons to Toolbars = Main Toolbar
Log Output to Messages Log = unchecked
Enabled = When a file is selected or open in the editor
Once you’ve created that tool, simply right-click a file in the application navigator, right-click an editor, or use the toolbar button to switch to have JDeveloper automatically switch over to the Finder and open a window with that file selected.
NFS Network URLs on a Mac
In Mac OS X, if someone gives you a Linux path that looks like:
/net/server/path/to/some/folder/
you can load that folder by swapping out “/net/” with “nfs://” and using a feature of the Mac OS X Finder. In the Finder, go to:
Go - Connect to server...
And then specify the server address of:
nfs://server/path/to/some/folder/
If you are allowed to connect, a drive will be mounted on your desktop.
On a related note. If you are using Firefox and come across one of these “nfs://” URLs, Firefox may not automatically mount the drive for you or even prompt you for an application to handle that URL. Instead, you will need to tell Firefox that you want the Finder to handle those kinds of URLs.
I have tested these instructions on Firefox 3.6:
- In Firefox’s address bar, go to:
about:config
- If you have never been there before, it might warn you about editing these settings.
- Once you get past the warning and can see a table listing all of your browser settings, right-click anywhere in that table and choose:
New - Boolean
- For the name, specify:
network.protocol-handler.expose.nfs
- For the value, specify:
false
The next time you try to click one of those links, Firefox will prompt you for a program to handle it and then that program will launch the appropriate network drive. At least on a Mac, you will need to choose:
/System/Library/CoreServices/Finder.app
Additional information on protocol handling in Firefox can be found at: