I can't work out how to use Image files in Eclipse. I've saved the files to what I think is the relevant folder (the same file where all the classname.java files are stored but the images aren't showing up on in eclipse. I've attached a screenshot by way of explanation
Try dragging the images into the physical tree view in the package explorer. That should work, otherwise, try refreshing the Package Explorer.
The Package Explorer view can be finicky about what content it shows. The files are there, are visible to Eclipse, but just aren't visible in that view. Try a different nav view, such as Project Explorer. The view that most faithfully shows the actual file contents of a project is Navigator.
Related
While using VS Code in larger projects, I have trouble seeing which file and folder I have open.
My current explorer looks like this:
I can see a selected folder, but that quickly becomes difficult to see when I am in a project with hundreds of folders and/or files.
I'd like the selected folder to look like this. (Purely to illustrate this I've selected all the files in the current folder)
But with the open file highlighted somehow.
Is it possible to theme the explorer view in this way?
Directly after the upgrade to the latest version of Eclipse (4.23) the project explorer behaves abnormal. It shows the complete package path on every package hierarchy level.
The first image shows the abnormal view the second the expected view. As you can imagine with many hierarchy levels the view becomes quite confusing.
I've tried to change the package presantation, the project presentation and almost all other options in the project explorer view menu to no avail.
I assume this is a bug and will be fixed. Maybe someone has a workaround?
Help me please. The problem I'm having is that in Eclipse In the Package Explorer, a Maven project that contains sub Maven projects displays duplicates of the same folders. In addition this causes the 'Ctrl + click' to not work.
So for example if you have a folder hierarchy, and almost each folder is another sub project, such as the following....
1/projectX-dev
2/projectX-dev/web-services
3/projectX-dev/web-services/mapping-data
4/projectX-dev/web-services/mapping-organizations
5/projectX-dev/web-services/metrixs
6/projectX-dev/web-services/metrixs/data-ingest
7/projectX-dev/web-services/metrixs/organization-feeds
Then in my package explorer I would have 7 listed items because each folder has its own .pom file. So for example expanding 5 it would contain the code that is also present in 6 & 7 because it is the parent folder which of course makes sense, but this is most annoying because now there are three locations where I can go to get at information where all I would want is for #1 to be displayed.
In addition to the layout annoyance, in Eclipse it seems that if I open a file under one of the listings over another then the 'Ctrl + click' to navigate to imported class methods no longer is supported. I am growing tired of this and need some clarification on how to just import the Maven projects and have it where the 'Ctrl + click' functions and the display in the Package Explorer would be 1/projectX-dev and that is it. I don't want all the other listings just the main parent folder.
As you can see in the image, the expanded folder netops-nice-jira-dev has items which are all listed at the top level as other projects. i.e. ui-extensions & web-services. The rest-service is a project also and it resides inside of the web-services project. So it is pissing me off how if I open a file from one location it allows for the proper interaction with the file such as Ctrl Click to track methods whereas with opening the file from another location it acts like a plain text file. 1 I don't want all these items to be duplicated in my view I just want the main top level project to be displayed and keep it simple to navigate down the structure rather than trying to find the proper place to open a file from.
Any suggestions on how to NOT display all the projects that are within the project?
The friggin previous people who put together this project created Eclipse projects within Eclipse project folders and everything was added to the Eclipse project view so things are all screwy.
If I open files from one project normal IDE functions will work, if I open the files from within one of the many other projects then the IDE functions don't work where i'm being told the project does not exist on the build path.
How frustrating!
I use a maven standard directory layout for my projects.
The image Below is a typical project explorer view of a "not so minimum working example" of the view I want to customize.
As you can see, all the relevant folders are marked as source folders, so there is no need to show the src folder hierarchy as it is shown below the included libraries.
So the question is, how can I get rid of the redundant src folder showing, i.e. how to show only source folders and libraries?
I've playing around with filters and content configuration of the view but couldn't find the way to do it.
Click to the third right top button, then "Filters" and then check "Name filter patterns" and write "src". Then the second src folder is hidden.
This is actually not added twice it is because of the explorer view you are using, just change it to navigator view and your problem will get solved.
Check this post might help you more, it is not related to you answer but show how to select navigator view
Hope this will help you :).
The description in Andreas B.'s answer refers to the Package Explorer view. In Project Explorer view it's:
View Menu → Filters and Customization... → User filters → New → src → activate/check it → OK
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