How do I make Javadoc files show in Eclipse Package Explorer? - eclipse

I'm using the Android Developer Tools wrapper of Eclipse, and the EGit git plugin for Eclipse. I'm having a problem where I'm generating Javadoc, but I can't find it in the package explorer.
I go to Project->Generate Javadoc.
I'm using C:\Program Files\Java\jdk1.7.0_51\bin\javadoc.exe as my Javadoc command, and I select the package I want to generate Javadoc for.
I select the standard doclet with the following destination, where ReverseSentence is my package.
C:\Users\myname\workspace\ReverseSentence\doc
I check "open generated index file in browser", and generate the javadoc. It generates the Javadoc with no errors, and the index shows up in the main section of eclipse. However, the files don't show up in the package explorer.
I searched in the workspace through opening up the folder, and inside workspace\ReverseSentence there is a folder doc, which contains the proper Javadoc. However it isn't showing up in the package explorer.
How do I make it show up in the package explorer? When I used the regular version of Eclipse in the past (not the android developer tools wrapper), the Javadocs showed up there automatically.
What I've tried:
refreshing the project
closing and restarting eclipse
generating the Javadoc with an older version of the Javadoc command, which was what I was using in the other version of eclipse last time it worked (jdk1.6.0_43)
deleting the doc folder, recreating it, then trying to generate the javadoc in it (it generated in it but did not show up)
unchecking the filters which hide some things in the package explorer, (as shown how to do here: How can I get Eclipse to show .* files?)

I think that the problem is the destination folder/directory for your Javadoc files once they are generated. I encountered this same problem and discovered (finally) that the Javadocs were getting sent to a different folder than my package files were in. They went to the workspace folder I thought held all of my code also, but the code was going into a different repository. Maybe try looking for your code's location and then seeing if the generated Javadocs are landing somewhere else when they are generated. If this is the case, then the fix is to regenerate and send to the code's directory. This way, Package Explorer should be able to find and display them. Hope this helps!

Did you try by refreshing the workspace or re-opening the eclipse !?

Check the filters in the settings of the explorer. If something does not show up, usually the filter hides it. The filter can be accessed in the drop down menu of Package Explorer.

Related

Why is Eclipse not showing me my sub folders?

It was showing me subfolders yesterday but now it's not. I just imported a project into Eclipse.
If I look at "main" and "test" in the windows file explorer. I can clearly see that they contain subfolders
I tried closing it and starting it again but that didn't work
One possibility is that main and test are configured to be source folders in Eclipse. Source folder don't show up in their normal file system location, but instead at the top level of the project.
I guess yours don't because you don't seem to see them.
It's hard to figure out why these folders don't show up. Here is some things to try:
Verify that you are using the Package Explorer view, not Navigator or Project Explorer.
Go to the Filters configuration dialog in Package Explorer (see image below) and uncheck all filters.

remove project explorer from eclipse

I'm writing an Eclipse plugin and seem to have many issues with users using the plugin with the Project Explorer.
Is there a way to remove the Project Explorer from Eclipse so users won't be able to use it (not only hide it)? I provide the users with the Eclipse package so I can edit it and only then send it out.
Why is Project Explorer behaving so differntly than Package Explorer/Navigator?
Example of issues:
Double clicking on a file in the Project Explorer doesn't always open it. Right clicking on the file and choosing the Open option - works. F3 works as well. this issue seems related to the Eclipse bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=131326
My plugin has a tool bar that I set to be seen only when a project of my type is in focus. it works perfectly in Package and Navigator Explorers, but in Project Explorer, if a user points to a sub folder of the project, it is not recognized as my plugin's project and the tool bar does not appear.
Thanks!

Eclipse project explorer prefixing latex project names with "P/"

Okay, this has been bugging me for quite some time today : Eclipse's Project Explorer adds a prefix "P/" to some of my projects' name. It happens only in the explorer, as everywhere else the project name appears normally.
I didn't manage to find anything relevant on the subject in the doc' and I don't really know how to google it.
I just reinstalled Eclipse's Platform Binary 3.7.2 along with the CDT and Texlipse plugins on Precise. The prefix "P/" appears only with texlipse projects, or when I open a .tex file inside any project.
So my question is : do you know what it means ? How to get rid or it ?
When you call toString() on a Project you get this. The leading P/ indicates it's a project (it's a convention of all of the Eclipse resources, F/ for file for example). This is probably a problem in the Texlipse plugin where the label provider that they provide to the Project Explorer (Common Nagivgator) is wrong, it's using just the project, instead of project.getName(). You should file a bug with them. There is nothing that you can do about it as a user.

Eclipse Package Explorer Oddity

Recently whenever I open my workspace in Eclipse the Package Explorer has always defaulted to focusing on a single folder of all my projects/resource files. I've put up with this for a few months since I can just "Up to" to get back to the project level.
However, I'd like to get this sorted. Does anyone have any idea how I can stop Eclipse opening this specific folder as its default?
You've probably already found the solution by now, but I recently ran into the same problem and found a solution that seemed to work for me and thought I'd share.
Close Eclipse and open your workspace's workbench.xml file for edit:
gedit <yourEclipseWorkspaceDir>/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml
Search the doc for the name of the folder your Package Explorer keeps defaulting to. This should be the value of the path attribute in a line like this:
<input factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="<theOffendingFolder>" type="2"/>
Change the value of the path attribute to point to the desired folder, or delete that input line entirely if you want the Package Explorer to show you the default project level. Save the file and open Eclipse.
Maybe this is related to the files automatically opened when you start your workspace (because it was closed in that state) and the package explorer "Link with editor button". This button at the top right of package explorer view allows to synchronize the current visible file in the editor with the package explorer (personally I often use this feature but I know some of my colleagues hate it ;-)).
Hope this can help
Manu

Netbeans Javadoc not found even when library has it defined

I have a problem with Netbeans simply not recognizing Javadocs in external libraries. I've gone into the library path and specified a valid javadoc path (Netbeans accepts the path without error). But even after re-building/opening closing Netbeans, I still get the "Javadoc not found" error for all items in the library.
I'm stuck on where to go since there is no error message, and I can browse the docs using a web-browser. Any ideas?
The version of NEtbeans is 6.5.1
The files are uncompressed in a directory that has been added to the the Javadoc tab of the properties for the library. The library works as expected.
I've tried clearing the Netbeans cache to no effect.
I got it working. I deleted the library, the re-created it added the Javadocs. Now it works perfectly.
Could you please be more specific: What is your version of NetBeans? Where are those javadocs located? Are they unpacked in a separate folder, in a zip file, in jar file?
Here is a working solution for NetBeans 6.5 for an example:
Go to Project Properties > Libraries dialog
On "Compile" tab press the "Add JAR/Folder" button and locate your library
On "Compile" tab press the "Edit" button with your library selected
Add path to either: a) docs folder of that library, containing index.html and the rest of the files; b) zip file, containing that libraries docs folder;
It should work without re-building your project or restarting NetBeans.
If you have created a custom library, it can be edited in a very similar fashion through "Tools > Libraries"
Sounds similar to a problem i had recently, turned out all i had to do was delete the cache to force NetBeans to rebuild.
If #slink84's suggestion fails to help, you might try #dr Hanibbal Lecter's method from my question on stackoverflow