user3086014
user3086014

Reputation: 4511

How to create a package in an hierarchical view in eclipse

I am using Eclipse juno. I have started learning java and I am facing an issue in creating package within the package. I am getting a flat view of the packages. I want to create a package com.soft.entity that is com package contains soft package which further contains entity package.

PFA the screenshot

Screenshot 1:

Screenshot 2:

enter image description here

screenshot 3

enter image description here

screenshot 4

enter image description here

Any lead is appreciated.

Thanks

Upvotes: 0

Views: 1946

Answers (1)

Roberto
Roberto

Reputation: 9080

Put the package name as:

com.soft.entity

In the option: File > New > Package

See my screenshot:

enter image description here

To see in hierarchical view see my screenshot:

enter image description here

You'll see the hierarchical structure when you added more packages, if you only have one, you'll see it in a single line.

For instance, adding a second package:

enter image description here

Upvotes: 1

Related Questions