In Visual J++, projects are directory-based, which means the project is defined by the files in the project directory structure on the hard disk. For example:
- http://msdn.microsoft.com/en-us/library/aa242649(v=vs.60).aspx or http://msdn.microsoft.com/en-us/library/aa242654(v=vs.60).aspx to the project adds the item to the project directory structure on the hard disk.
Adding a file to the project directory structure through the file system adds the file to the project, provided the file type is specified in the project filter. Visual J++ uses a filter to determine which types of files typically belong to a Java project. For more information, see http://msdn.microsoft.com/en-us/library/aa242906(v=vs.60).aspx .
Adding a folder to the project directory structure through the file system adds the folder to the project. All files in the folder, whose types are specified in the project filter, are added to the project as well.
- http://msdn.microsoft.com/en-us/library/aa265395(v=vs.60).aspx within the project moves or copies the item on the hard disk, and vice versa.
- http://msdn.microsoft.com/en-us/library/aa265510(v=vs.60).aspx in the project renames the item on the hard disk, and vice versa.
Note When http://msdn.microsoft.com/en-us/library/aa265502(v=vs.60).aspx from the project, you can choose to leave the item on the hard disk or completely delete it.
For more information about directory-based projects, see .
In addition to the relationship between the project structure and the file system, the hierarchy of Java packages in the project directly maps to a hierarchy of folders in the project (or file system). In http://msdn.microsoft.com/en-us/library/aa243138(v=vs.60).aspx , you can choose to display your project in one of two views:
Directory view (the default view) displays a hierarchical list of all project subfolders, according to the project directory structure on the hard disk. Each Java package in the project is displayed as a subfolder.
- Package view displays project subfolders as Java packages, in a flat list. Note that package view displays only .java files and the folders that contain .java files. Each folder that is displayed is listed by its fully-qualified package name. The project node itself is considered the default package.
For more information about setting the view in Project Explorer, see http://msdn.microsoft.com/en-us/library/aa265177(v=vs.60).aspx .