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!
Related
The weird part is I can see my projects through package explorer.
I can also export them.
But when I want to access them elsewhere e.g windows explorer, they are not there.
All I see is .metadata folder.
An unexpected shutdown of the system occurred not too long ago.
Edit: When I switched the workspace, created and opened a project, they're still not visible/accessible outside of the eclipse project explorer.
Any ideas?
You most likely haven't ticked "Copy projects into workspace" checkbox option.
File -> Import -> Existing projects into workspace:
It is possible that the projects were not put into the default, workspace folder.
To check this, right click on such a project, select Properties (it is usually available at the bottom of the list), go to the Resources tab, where you have the location of the project files displayed.
Obviously, there is a problem with Windows explorer and OneDrive in particular.
When I navigate to C:/Users/username/OneDrive/Documents/workspace or through command line I do see my eclipse projects.
But when I try to use 'Open file..' option from any application or navigate through Windows explorer, projects are not recognized nor displayed.
When opening Eclipse the project version is not the current one(it automatically opens the very beginning version of the project, not the current files on my drive).
I tried modifying the refresh settings in Preferences->Workspace, no luck. Also, when I right click->Refresh the project nothing happens.
I am using the last version of Eclipse Luna and the PyDev perspective.
have you tried go File then Switch Workspace e selected the right one? (even if ther is only one)
Some time it happend to me, maybe when i have eclipse opened and i click again on the eclipse startup app it ask me "load new workspace..." and it messup all
Try to look that its clearly the Workspace you would to use.
Do you have different Workspaces?
Try to check the location of the project.
Right-click on the project in Package Explorer and select "Properties"
Select "Resources" on right side and check the location.
If the location is wrong, try to import the right one using method as follows:
Right-click in Package Explorer and select "Import"
Select General->Existing Projects into Workspace and import the project.
I have the Problem that Eclipse shows all my packages as normal folders. I have to get back to the normal package View because in the folder view the most plugins like Windowbuilder are not working.
I already tried to change the Package Presentation -> Flat or Hierarchical no change.
I tried to add the folder or the Project as Source Folder but the he is using the he is using the first Folder as a Package and the subfolder also e.g.
the Folder
org
eclipse
wb
swt
tempuri
are shown as
org
eclipse.wb.swt
tempuri
but I need
org.eclipse.wb.swt
org.tempuri
does anyone have a solution for this?
thx for help
Michael
What you are looking for (at least in the Luna Release (4.4.0)) is the Package Explorer view instead of the Navigator view.
You can toggle it from the Window tab:
Window > Show Menu > Package Explorer
This Problem generally appears if you delete a folder and did not consider any adjustment on other structure under that folder. The best thing is to go to the package explorer and click on " Source > Build Path>use as source folder". Refresh the project and restart the eclipse.
I have been through this situation couple of times, and it always works for me. Sorry, if I didnt understand your question properly.
In Package Explorer tab, click the little triangle next to Link with Editor called View Menu, then choose Package Presentation > Hierarchical.
When I close Eclipse it remembers which files I had opened in the editor and re-opens them when I start it up again next.
Is there a way to also have it remember which packages/projects I had expanded in the Package Explorer? When I reopen Eclipse, it just goes back to everything being collapsed and showing me only the list of projects.
Package Explorer (and Project Explorer) don't support this. The older (and less functional) Navigator view does remember.
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.