Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Source file management
Source file management [message #1774110] Tue, 10 October 2017 16:21 Go to next message
David Lortz is currently offline David LortzFriend
Messages: 1
Registered: October 2017
Junior Member
Using file explorer on PC I see normal file structure where my file are under scr directory. But in eclipse oxygen they show up under a hidden directory called "default package " within scr. Can someone explain the difference and how to correct? I needed to copy a file over so I could use graphics functionality with code. Ended up having to manually create a new source file to add it but would like to know why there is a delta between windows file explorer and oxygen.
Re: Source file management [message #1774126 is a reply to message #1774110] Tue, 10 October 2017 19:13 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3749
Registered: July 2009
Senior Member

Java Types are always in a Package, with its segments meant to be paralleled by the folder layout under the source folder. If you don't have a package statement in the source file, it is considered to be in the default package, which just has no name. The Java perspective is showing you the Types in its Package Explorer, laying them out to encourage you to think in terms of Java Types and objects instead of files. If you really want to see the underlying files, open the Navigator View from the Window menu, but really, that's a detail you shouldn't be concerning yourself with most of the time. In either case, it should still have been just one file with different ways of looking at it.

Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Error when opening Eclipse
Next Topic:Eclipse don't Start Minecraft.
Goto Forum:

Current Time: Sun Jul 05 11:53:02 GMT 2020

Powered by FUDForum. Page generated in 0.03112 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top