Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Default package always visible
Default package always visible [message #326633] Wed, 26 March 2008 19:38 Go to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,

in my Java projects the (default package) is always visible. A collegue of
mine does not see this empty (and in my opinion useless) package in his
projects.

Is there a way to remove this (once I have real packages created)?

Best regards, Lars
Re: Default package always visible [message #326634 is a reply to message #326633] Wed, 26 March 2008 19:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Lars,

Right click it and delete it?


Lars Vogel wrote:
> Hi,
>
> in my Java projects the (default package) is always visible. A collegue of
> mine does not see this empty (and in my opinion useless) package in his
> projects.
>
> Is there a way to remove this (once I have real packages created)?
>
> Best regards, Lars
>
>
>
Re: Default package always visible [message #326666 is a reply to message #326633] Thu, 27 March 2008 19:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Lars Vogel wrote:
> Hi,
>
> in my Java projects the (default package) is always visible. A collegue of
> mine does not see this empty (and in my opinion useless) package in his
> projects.
>
> Is there a way to remove this (once I have real packages created)?

Which view are you talking about?
Re: Default package always visible [message #326670 is a reply to message #326634] Thu, 27 March 2008 21:37 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi Ed,

;-)

I tried this but either though the system asks me if I want to delete the
default package is still there.

Best regards, Lars

"Ed Merks" <merks@ca.ibm.com> wrote in message
news:fse9ns$kpn$2@build.eclipse.org...
> Lars,
>
> Right click it and delete it?
>
>
> Lars Vogel wrote:
>> Hi,
>>
>> in my Java projects the (default package) is always visible. A collegue
>> of mine does not see this empty (and in my opinion useless) package in
>> his projects.
>>
>> Is there a way to remove this (once I have real packages created)?
>>
>> Best regards, Lars
>>
>>
Re: Default package always visible [message #326671 is a reply to message #326666] Thu, 27 March 2008 21:38 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi Eric,

the package explorer. Resetting the perspective doesn't change anything.

Best regards, Lars

"Eric Rizzo" <eclipse-news@rizzoweb.com> wrote in message
news:fsgtuh$ffh$2@build.eclipse.org...
> Lars Vogel wrote:
>> Hi,
>>
>> in my Java projects the (default package) is always visible. A collegue
>> of mine does not see this empty (and in my opinion useless) package in
>> his projects.
>>
>> Is there a way to remove this (once I have real packages created)?
>
> Which view are you talking about?
Re: Default package always visible [message #326672 is a reply to message #326633] Thu, 27 March 2008 23:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Lars Vogel" <Lars.Vogel@gmail.com> wrote in message
news:fse8n0$3dr$1@build.eclipse.org...
> Hi,
>
> in my Java projects the (default package) is always visible. A collegue of
> mine does not see this empty (and in my opinion useless) package in his
> projects.
>
> Is there a way to remove this (once I have real packages created)?


Seems like some setting in your workspace must have gotten changed. Does
this happen in newly created workspaces?

I notice there's a setting about folding empty packages in Package Explorer,
in Prefs -> Java -> Appearance. It doesn't seem to change anything, but
there's a note at the bottom of the dialog that says it only takes effect
"on new perspectives", which seems cryptic (i.e., I know how to close and
open views, but I don't know how to create a "new" perspective). Perhaps
changing that and then restarting Eclipse would work?

You might want to try posting your question to eclipse.tools.jdt, since it
seems to be particularly related to JDT.
Re: Default package always visible [message #326678 is a reply to message #326672] Fri, 28 March 2008 10:13 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi Walter,

no, on new workspaces this does not happen. I'll follow your advice and
send my question to JDT.

Thank you, Lars
Re: Default package always visible [message #326685 is a reply to message #326672] Fri, 28 March 2008 13:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Walter Harley wrote:
> "Lars Vogel" <Lars.Vogel@gmail.com> wrote in message
> news:fse8n0$3dr$1@build.eclipse.org...
>> Hi,
>>
>> in my Java projects the (default package) is always visible. A collegue of
>> mine does not see this empty (and in my opinion useless) package in his
>> projects.
>>
>> Is there a way to remove this (once I have real packages created)?
>
>
> Seems like some setting in your workspace must have gotten changed. Does
> this happen in newly created workspaces?
>
> I notice there's a setting about folding empty packages in Package Explorer,
> in Prefs -> Java -> Appearance. It doesn't seem to change anything, but
> there's a note at the bottom of the dialog that says it only takes effect
> "on new perspectives", which seems cryptic (i.e., I know how to close and
> open views, but I don't know how to create a "new" perspective). Perhaps
> changing that and then restarting Eclipse would work?

No, restarting Eclipse won't cause the Perspective to reset. You need to
close the Perspective and re-open it (or maybe Window > Reset
Perspective might work, but I doubt it).

Hope this helps,
Eric
Re: Default package always visible [message #326692 is a reply to message #326685] Fri, 28 March 2008 17:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Eric Rizzo" <eclipse-news@rizzoweb.com> wrote in message
news:fsit6t$73b$1@build.eclipse.org...
> No, restarting Eclipse won't cause the Perspective to reset. You need to
> close the Perspective and re-open it (or maybe Window > Reset Perspective
> might work, but I doubt it).

It's weird that it would depend on the Perspective, rather than just the
Package Explorer view. In fact I don't even know how I would code that if I
wanted it to behave that way!

I don't think you can "close" a Perspective; you can only change to another
perspective, true?

But closing and opening just the view didn't seem to have any effect.
Re: Default package always visible [message #326693 is a reply to message #326692] Fri, 28 March 2008 18:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Walter Harley wrote:
> "Eric Rizzo" <eclipse-news@rizzoweb.com> wrote in message
> news:fsit6t$73b$1@build.eclipse.org...
>> No, restarting Eclipse won't cause the Perspective to reset. You need to
>> close the Perspective and re-open it (or maybe Window > Reset Perspective
>> might work, but I doubt it).
>
> It's weird that it would depend on the Perspective, rather than just the
> Package Explorer view. In fact I don't even know how I would code that if I
> wanted it to behave that way!
>
> I don't think you can "close" a Perspective; you can only change to another
> perspective, true?

Right-click on a Perspective tab/button in the perspective bar (what you
would left-click to select that perspective) and choose Close. That
causes Eclipse to dispose the whole perspective so that it is re-created
from scratch (including restoring the default views and layout) the next
time you do Open Perspective. That is what the note in the Preferences
dialog is referring to when it says "only affects new perspectives." You
don't get a new one unless you close the open one first.

Eric
Re: Default package always visible [message #326772 is a reply to message #326670] Tue, 01 April 2008 07:46 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Lars Vogel wrote:
> Hi Ed,
>
> ;-)
>
> I tried this but either though the system asks me if I want to delete the
> default package is still there.
>
This is a known bug. The problem is that the default package maps to the
source folder and hence we would have to delete the entire source folder
to make the default package go away (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=83334).

Dani
> Best regards, Lars
>
> "Ed Merks" <merks@ca.ibm.com> wrote in message
> news:fse9ns$kpn$2@build.eclipse.org...
>
>> Lars,
>>
>> Right click it and delete it?
>>
>>
>> Lars Vogel wrote:
>>
>>> Hi,
>>>
>>> in my Java projects the (default package) is always visible. A collegue
>>> of mine does not see this empty (and in my opinion useless) package in
>>> his projects.
>>>
>>> Is there a way to remove this (once I have real packages created)?
>>>
>>> Best regards, Lars
>>>
>>>
>>>
>
>
>
Re: Default package always visible [message #326773 is a reply to message #326633] Tue, 01 April 2008 07:46 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Lars Vogel wrote:
> Hi,
>
> in my Java projects the (default package) is always visible. A collegue of
> mine does not see this empty (and in my opinion useless) package in his
> projects.
>
> Is there a way to remove this (once I have real packages created)?
>
Sure. Simply enable the 'Empty parent packages' filter (via Package
Explorer view menu > Filters...)

Dani
> Best regards, Lars
>
>
>
Previous Topic:Find out whether project properties window is open
Next Topic:new attribute to a model
Goto Forum:
  


Current Time: Thu Jun 27 20:11:54 GMT 2024

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

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

Back to the top