Displaying full path of filename in tabs ~ Netbeans 6.8 - netbeans

I can't seem to find a way in the options to display the full path of the file at the title of the tab. I can hover over it to see it, but it would be nice to see it at a glance.
There is a SU question about it also, https://superuser.com/questions/88637/netbeans-how-to-view-file-full-path-in-window-title-or-somewhere-else
Does anyone have a solution for this to actually display it? I can see there is a custom .jar for it in the RC2 Netbeans, but that's probably way old now.
PS, I should mention that a path relative to the project would be ideal, as well as a full path. Either really :)

NetBeans 8.0.2
Tools > Options > Appearance > Document Tabs > Show full file path
The full path will appear only for the active tab (under the tabs), but you can also check "Show parent folder name in tab title" if you want to see the parent folder for every tab:

Try to use following netbeans plugin.

In Netbeans 6.9.1 (at least) you can open the Window/Properties window and pin it under the editor; this will contain the full path in the "All Files" property which is then visible at all times and always contains the current editor file's properties.

Starting from NetBeans 6.9 you can use the NetBeans extention "show path in title":
http://plugins.netbeans.org/plugin/42000/show-path-in-title
it's very helpful :D

You can also 'Select in --> [Project|Files|Favorites]. This opens the exposes the node for the file in the Projects, Files or Favorites explorer.
To do this, right click in the text editor for the file you are interested in; the 'Select in' item is near the bottom of the menu that appears.

Try using CTRL+TAB, you can find the path in status bar. This is not complete solution for your question but using keyboard (without using mouse atleast) you can find the path of the open file(s).

Related

Show the name of the containing folder in the Eclipse tab of a file

I have the same set of files in N folders, one of them, say, blank.xhtml. The files contain somewhat similar information and it is becoming overwhelming to figure out which file comes from which folder every time I switch between the tabs. When I open one of them to edit and happen to open a file with the same name from another folder I get confused and more often than not end up editing the wrong file: nullifying my hard work. So I am wondering if there is a way to show the name of a containing folder in the tab like this G-06/blank.xhtml or G-07/blank.xhtml. I will be very very thankful to anybody who has pointers to how I can make this happen.
As an addition to the Maroun's answer there is an alternative solution.
It's not exactly what you want (full name in the tab's title), but may be useful sometimes.
In the "Project Explore" view (the same goes to "Navigator" view) click the "Link with Editor" button. That way, whenever you choose some file opened in the editor, it will be automatically selected/highlighted (see the picture) in the "Project Explorer" view.
Here is the picture:
Maybe this will be useful to you too.
If you hover the mouse over the tab containing the file name then a popup appears showing the full path. Not exactly what you wanted, but it should help. (This with Eclipse Neon.3 Release 4.6.3 on a Mac).
Not quite what you're looking for, but ctrl+shft+e will open the switch editor window that shows all the open editors with their filepaths. I use this shortcut for the same reason. I'll have multiple build.gradle files open from multiple projects and this helps pick the correct one

How do you set the encoding to utf-8 in NetBeans 6.9?

I'm running NetBeans 6.9, can't seem to figure out where to set the encoding. I found some guides on google but all of them were for older versions.
The method by Mr. LordofFatality doesn't work for out-of-project files that you open via 'open file' menu.
In order to accomplish that, find a netbeans.conf file in you netbeans installation\etc\, find there a netbeans_default_options line and add there -J-Dfile.encoding=UTF-8 string.
If you don't find the "netbeans_default_options" option there, add a whole new line as following:
netbeans_default_options="-J-Dfile.encoding=UTF-8"
Relevant to NetBeans 7.2, also works in 7.4
In 6.9.1:
open the project pane if you don't see it already (Window > Projects);
right-click on the name of your project in the tree-view;
click properties;
make sure the menu item "sources" on the left is highlighted;
you should see "Encoding:" and a select-box next to it;
click OK. Done.
It SHOULD work that way and does work for anyone on the internet except me. On my Windows XP dev system files are still not saved as UTF-8. Still wondering why ...
open the project pane if you don't see it already (Window > Projects)
Right-click on the name of your project in the tree-view click
properties make sure the menu item "sources" on the left is
highlighted you should see "Encoding:" and a select-box next to it.
click ok. done.
it SHOULD work that way and does work for anyone on the internet
except me. on my windows xp dev system files are still not saved as
utf-8. still wondering why...
Your file should content one or more non-latin chars, this is why.
its bug always the editor saving my files as utf-8 without bom
See here !!!

what can I do to make display the bin folder on eclipse?

can anyone help me solve the issue that I have ?
in fact when I create a project on eclipse, the bin folder doesn't display and I am able to create a javadoc for my project. I need help please.
I don't know what the reason for your question but you can see the bin directory in Project Explorer (not Package Explorer). Here you click the triangle and select Customize View... and remove the click on Java output folders
To change this behaviour and hide the “.class” files you need to do the following.
Find your class output folder in the “Project explorer” window. This is usually called “bin” or “target” for Maven projects
Right-click this folder and click “Properties”
Tick the “Derived” checkbox and click “OK”
“.class” files will now be hidden in future.
Source: http://ayubmalik.co.uk/2011/12/hide-class-files-when-opening-a-type-or-resource-in-eclipse-ide/
If your Eclipse version doesn't allow you to show "Java Output Folders" as mentioned by nanda, then try the Navigator View (From the main menu: Window > Show View > Navigator). The Navigator View shows the bin folder.
Your question is a bit vague but try right clicking on the project and choosing build path, and see if the output directory for your java classes is set to bin. It may not appear in your unless you add some Java source code

Search and Replace only in open files (netbeans)

Anyone know if it's possible to search and replace in all opened files in netbeans? Can't seem to find the option if there even is one.
I'm using the Netbeans 6.9 PHP IDE
CTRL+SHIFT+H
This will open the Replace in Projects, where-in you can search and replace on files on all open projects, or on the selected project only.
Open the file you want the replacements.
Press Ctrl + H
And them at the bottom you will see
It's available in builds >= 7.4 from NetBeans. Not available in 7.3. I just got a status update message from NetBeans that they've added this feature.
Use Replace in Projects. Shortcut = CTRL+SHIFT+H
Select Open Documents
To search in open files press CTRL+SHIFT+F and in section scope select Open Documents.
Sure you can ... or at least you can do something very similar ...
Go to projects view and select multiple files (the files you have opened in this case). Then press CTRL+F and start searching in the selected nodes. It's not exactly 'opened files' but I think it's your best choice.
Hope that helps!
PD: CTRL + CLICK is a good method to select multiple files on Windows.
This seems impossible in netbeans 6.9 and it hasn't been introduced in Netbeans 7 either.
This is possible just the Rule mentioned.
Check Uncheck the files and hit replace button on left hand side.
Select your files you want to find and replace in Project view ( Window > Projects )
Go to Edit > Replace In Projects...
In Replace in Projects window select "Selection" from "Scope" dropdown menu
Find and replace will be committed on your selected files in Projects view.
This is the way I found.

how to change text "Eclipse" to some other text say "AshuEclipse" in the Header left hand corner?

How to change text "Eclipse" to some other text say "AshuEclipse" in the Header left hand corner?
Note: I dont want ot change the header to show workspace ,but I want to change the word Eclipse itself.
Plz suggest.
One solution an one workaround:
Solution (in theory, not tested)
The main Eclipse Windows is a WorkbenchWindow for the org.eclipse.ui plugin. It is created by the platform plugin.
If you look into the resources files within the org.eclipse.platform, you could see some files able to keep this value (for you to change it)
I have found:
eclipse-3.5.1\eclipse\plugins\org.eclipse.platform_3.3.201.v200909170800\about.properties
It contains:
blurb=Eclipse Platform\n\
eclipse-3.5.1\eclipse\plugins\org.eclipse.platform_3.3.201.v200909170800\plugin.properties
With:
pluginName=Eclipse Platform
providerName=Eclipse.org
productName=Eclipse Platform
productBlurb=Eclipse Platform\n\
Try and modify those values to see if the display can change. (I would bet on plugin.properties productBlurb)
Just tested: it does not change the display, so you need to explore some of the jars in the plugins directory of eclipse. In theory, you could change one of its resource file...
Workaround (if the previous section does not work)
My eclipse3.5 actually displays the name of the current perspective.
For instance; the Php perspective would be displayed in the header left hand corner:
alt text http://blog.wampserver.com/wp-content/uploads/2009/08/eclipse_perspective_debug.gif
So one solution would be to save your favorite perspective as "Ashu - Php Debug", and you would get what you want.
(see "create your own perspective" article)
alt text http://www.javalobby.org/images/postings/rj/eclipse_perspective/1.gif
That would need to be redefined for every perspective you are usually using.
And it would still have "Eclipse" at the end...
Preferences > General > Workspace > Workspace name
Right click on eclipse shortcut and go to properties.
Change target url text.
-> C:\your eclipe folder\eclipse.exe -showlocation <em>YOURTITLE</em>