Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Package Explorer (hierarchical) and empty packages
Package Explorer (hierarchical) and empty packages [message #129977] Sat, 27 December 2003 08:21 Go to next message
Eclipse UserFriend
Originally posted by: kariem_h.hotmail.com

Hi,


I have several projects running for more than a year now. I always
upgraded to the newest eclipse milestone release but I think there is
something wrong in the display of the package explorer: It does not hide
empty parent packages.

Example: the package explorer view has to render the following hierarchy
(Layout is set to hierarchical):


com
|-domain
|-suite
|-app
|-base
|-subpackage1
|-ui
|-subpackage2
|-subpackage3
|-util


The string that corresponds to com.domain.suite.app is about 20
characters long. That is why I set package name compression to compress
hidden package names to ".".

In flat mode I see something like


....base
.....subpackage1
....ui
.....subpackage2
.....subpackage3
....util

In hierarchy mode I would like to see something like

...app
|-base
|-subpackage1
|-ui
|-subpackage2
|-subpackage3
|-util


Some projects render the sources in this manner, others display the
packages up to "app" with an empty package icon, instead of
hiding/compressing their names.

I already tried setting all CVS files to hidden (on windows) and to
reset that again, but no difference.


Perhaps someone knows what causes this inconsitency.


Thanks,
Kariem
Re: Package Explorer (hierarchical) and empty packages [message #129990 is a reply to message #129977] Sat, 27 December 2003 09:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wk5657.henleykidd.ns01.us

Hi Kariem,
In the same place that you choose heirarchical or flat is a menu for
filters. When you go there, you can select things to exclude from the
view. One of these is empty parent packages. Try that.

Wayne

Kariem Hussein wrote:

> Hi,


> I have several projects running for more than a year now. I always
> upgraded to the newest eclipse milestone release but I think there is
> something wrong in the display of the package explorer: It does not hide
> empty parent packages.

> Example: the package explorer view has to render the following hierarchy
> (Layout is set to hierarchical):


> com
> |-domain
> |-suite
> |-app
> |-base
> |-subpackage1
> |-ui
> |-subpackage2
> |-subpackage3
> |-util


> The string that corresponds to com.domain.suite.app is about 20
> characters long. That is why I set package name compression to compress
> hidden package names to ".".

> In flat mode I see something like


> ....base
> .....subpackage1
> ....ui
> .....subpackage2
> .....subpackage3
> ....util

> In hierarchy mode I would like to see something like

> ...app
> |-base
> |-subpackage1
> |-ui
> |-subpackage2
> |-subpackage3
> |-util


> Some projects render the sources in this manner, others display the
> packages up to "app" with an empty package icon, instead of
> hiding/compressing their names.

> I already tried setting all CVS files to hidden (on windows) and to
> reset that again, but no difference.


> Perhaps someone knows what causes this inconsitency.


> Thanks,
> Kariem
Re: Package Explorer (hierarchical) and empty packages [message #130015 is a reply to message #129990] Sat, 27 December 2003 09:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kariem_h.hotmail.com

Hi Wayne,


Thank you. I forgot to say that I have that turned on. I tried
selecting/deselecting "Empty Packages", "Empty Parent Packages", and
"Package Declarations" (do not know what this is for).

For two open projects that are displayed in the same view the display is
incosistent:

first project's source folder:

...app
|-base
|-subpackage1
|-ui
|-subpackage2
|-subpackage3
|-util


second project's source folder

com
|-domain
|-suite
|-app
|-base
|-subpackage1
|-ui
|-subpackage2
|-subpackage3
|-util


Thank you though,

Kariem




G. Wayne Kidd wrote:
> Hi Kariem,
> In the same place that you choose heirarchical or flat is a menu for
> filters. When you go there, you can select things to exclude from the
> view. One of these is empty parent packages. Try that.
>
> Wayne
>
> Kariem Hussein wrote:
>
>
>>Hi,
>
>
>
>>I have several projects running for more than a year now. I always
>>upgraded to the newest eclipse milestone release but I think there is
>>something wrong in the display of the package explorer: It does not hide
>>empty parent packages.
>
>
>>Example: the package explorer view has to render the following hierarchy
>>(Layout is set to hierarchical):
>
>
>
>> com
>> |-domain
>> |-suite
>> |-app
>> |-base
>> |-subpackage1
>> |-ui
>> |-subpackage2
>> |-subpackage3
>> |-util
>
>
>
>>The string that corresponds to com.domain.suite.app is about 20
>>characters long. That is why I set package name compression to compress
>>hidden package names to ".".
>
>
>>In flat mode I see something like
>
>
>
>> ....base
>> .....subpackage1
>> ....ui
>> .....subpackage2
>> .....subpackage3
>> ....util
>
>
>>In hierarchy mode I would like to see something like
>
>
>> ...app
>> |-base
>> |-subpackage1
>> |-ui
>> |-subpackage2
>> |-subpackage3
>> |-util
>
>
>
>>Some projects render the sources in this manner, others display the
>>packages up to "app" with an empty package icon, instead of
>>hiding/compressing their names.
>
>
>>I already tried setting all CVS files to hidden (on windows) and to
>>reset that again, but no difference.
>
>
>
>>Perhaps someone knows what causes this inconsitency.
>
>
>
>>Thanks,
>>Kariem
Re: Package Explorer (hierarchical) and empty packages [message #130526 is a reply to message #130015] Tue, 30 December 2003 08:35 Go to previous message
Eclipse UserFriend
Originally posted by: kariem_h.hotmail.com

Hi,

I found out something. Could someone please verify this?

The preferences in my workspace are:

Preferences > Java > Appearance:

"Compress all package name segments ...": "."

Package Explorer > Layout

Hierarchical

Package Explorer > Filters

Default, plus: "Empty packages", "Empty parent packages"


Try setting the above preferences in your project. If your project
displays correctly (compression down to the first really used package)
and it is managed via CVS try the following:

- Start eclipse in a new workspace (args: "-data <dir-to-new-ws>")

- Import the project into this new workspace and set your
preferences to compress package.

- In the Package Explorer set the layout to "Hierachical" and hide
empty packages and empty parent packages.


If the package explorer now shows the sources differently than in your
first workspace, you see what I wanted to say.


Is there something I've been missing?


I filed a bug report at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=49417


Feedback more than welcome :)


Kariem



Kariem Hussein wrote:
> Hi Wayne,
>
>
> Thank you. I forgot to say that I have that turned on. I tried
> selecting/deselecting "Empty Packages", "Empty Parent Packages", and
> "Package Declarations" (do not know what this is for).
>
> For two open projects that are displayed in the same view the display is
> incosistent:
>
> first project's source folder:
>
> ...app
> |-base
> |-subpackage1
> |-ui
> |-subpackage2
> |-subpackage3
> |-util
>
>
> second project's source folder
>
> com
> |-domain
> |-suite
> |-app
> |-base
> |-subpackage1
> |-ui
> |-subpackage2
> |-subpackage3
> |-util
>
>
> Thank you though,
>
> Kariem
>
>
>
>
> G. Wayne Kidd wrote:
>
>> Hi Kariem,
>> In the same place that you choose heirarchical or flat is a menu for
>> filters. When you go there, you can select things to exclude from the
>> view. One of these is empty parent packages. Try that.
>>
>> Wayne
>>
>> Kariem Hussein wrote:
>>
>>
>>> Hi,
>>
>>
>>
>>
>>> I have several projects running for more than a year now. I always
>>> upgraded to the newest eclipse milestone release but I think there is
>>> something wrong in the display of the package explorer: It does not
>>> hide empty parent packages.
>>
>>
>>
>>> Example: the package explorer view has to render the following
>>> hierarchy (Layout is set to hierarchical):
>>
>>
>>
>>
>>> com
>>> |-domain
>>> |-suite
>>> |-app
>>> |-base
>>> |-subpackage1
>>> |-ui
>>> |-subpackage2
>>> |-subpackage3
>>> |-util
>>
>>
>>
>>
>>> The string that corresponds to com.domain.suite.app is about 20
>>> characters long. That is why I set package name compression to
>>> compress hidden package names to ".".
>>
>>
>>
>>> In flat mode I see something like
>>
>>
>>
>>
>>> ....base
>>> .....subpackage1
>>> ....ui
>>> .....subpackage2
>>> .....subpackage3
>>> ....util
>>
>>
>>
>>> In hierarchy mode I would like to see something like
>>
>>
>>
>>> ...app
>>> |-base
>>> |-subpackage1
>>> |-ui
>>> |-subpackage2
>>> |-subpackage3
>>> |-util
>>
>>
>>
>>
>>> Some projects render the sources in this manner, others display the
>>> packages up to "app" with an empty package icon, instead of
>>> hiding/compressing their names.
>>
>>
>>
>>> I already tried setting all CVS files to hidden (on windows) and to
>>> reset that again, but no difference.
>>
>>
>>
>>
>>> Perhaps someone knows what causes this inconsitency.
>>
>>
>>
>>
>>> Thanks,
>>> Kariem
Previous Topic:Refactoring & source menu's too big (?)
Next Topic:Mozilla adaptor not working for help in Eclipse
Goto Forum:
  


Current Time: Fri Jun 06 15:49:04 EDT 2025

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

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

Back to the top