Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Double click in package explorer: toolbar resize: unintended file operations
Double click in package explorer: toolbar resize: unintended file operations [message #269793] Sat, 28 March 2009 02:57 Go to next message
Eclipse UserFriend
Originally posted by: sreed.spamcop.net

I have been plagued by files jumping from folder to folder or being copied
and pasted in the package explorer when I open them to edit by double
clicking. I have a notion about what is happening and wonder if there is a
way to work around this problem.

In most Perspectives, the package explorer sits just under the toolbar.
When a file is selected in the package explorer, the toolbar is usually
one row of icons. If I open a file in an editor that adds items to the
toolbar and causes it to change from one row of icons to two, the package
explorer is shortened and the file that was opened is no longer under the
cursor. Then due to some mouse event hokus-pokus and depending on what
lies under the cursor, the file is dragged and dropped into a neighboring
folder or a copy and paste operation is detected by the package explorer.

I would welcome any advice on how to configure Eclipse to avoid this
behavior.
Re: Double click in package explorer: toolbar resize: unintended file operations [message #269796 is a reply to message #269793] Sat, 28 March 2009 03:00 Go to previous messageGo to next message
Scott Reed is currently offline Scott ReedFriend
Messages: 8
Registered: July 2009
Junior Member
I forgot to say that I am using Eclipse version 3.4.2, build
M20090211-1700.
Re: Double click in package explorer: toolbar resize: unintended file operations [message #269802 is a reply to message #269793] Sat, 28 March 2009 15:18 Go to previous messageGo to next message
Scott Reed is currently offline Scott ReedFriend
Messages: 8
Registered: July 2009
Junior Member
One work around is to widen the Perspectives tab to make the toolbar two
rows even when Package Explorer has focus. However, it then might need
three rows with some editors, so this may not work for everyone.
Re: Double click in package explorer: toolbar resize: unintended file operations [message #269824 is a reply to message #269793] Mon, 30 March 2009 13:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 3/27/2009 10:57 PM, Scott Reed wrote:
> I have been plagued by files jumping from folder to folder or being
> copied and pasted in the package explorer when I open them to edit by
> double clicking. I have a notion about what is happening and wonder if
> there is a way to work around this problem.
> In most Perspectives, the package explorer sits just under the toolbar.
> When a file is selected in the package explorer, the toolbar is usually
> one row of icons. If I open a file in an editor that adds items to the
> toolbar and causes it to change from one row of icons to two, the
> package explorer is shortened and the file that was opened is no longer
> under the cursor. Then due to some mouse event hokus-pokus and depending
> on what lies under the cursor, the file is dragged and dropped into a
> neighboring folder or a copy and paste operation is detected by the
> package explorer.
>
> I would welcome any advice on how to configure Eclipse to avoid this
> behavior.
>

I'm having trouble picturing what you are trying to describe. Perhaps
some screen shots or a short screencast would help us understand what
you're experiencing.

Eric
Re: Double click in package explorer: toolbar resize: unintended file operations [message #269832 is a reply to message #269824] Tue, 31 March 2009 00:24 Go to previous messageGo to next message
Scott Reed is currently offline Scott ReedFriend
Messages: 8
Registered: July 2009
Junior Member
I made a short video. Where can I post it?
Re: Double click in package explorer: toolbar resize: unintended file operations [message #269834 is a reply to message #269824] Tue, 31 March 2009 00:37 Go to previous messageGo to next message
Scott Reed is currently offline Scott ReedFriend
Messages: 8
Registered: July 2009
Junior Member
I am mainly experiencing this when using ZK Studio (an Ajax IDE,
www.zkoss.com). When their "Zul Editor" has focus it adds a few icons to
the toolbar. This can be enough to cause the toolbar to expand and
contract as focus enters and leaves the editor. If focus is changed from
the editor to the package explorer by selecting a file in package
explorer, it appears that Eclipse interprets what happens as a drag and
drop operation, either a copy of the selected file if the cursor ends up
over the same folder, or moving the file if it ends up over an adjacent
folder. You will be able to see it in the video - I scrunched the window
down to minimize file size so it starts with 2 rows of icons in the
toolbar and goes to three when the Zul editor gets focus. See if you can
download it from http://home.comcast.net/~vvmade/vid/eclipsebug.avi.
Scott
Re: Double click in package explorer: toolbar resize: unintended file operations [message #269836 is a reply to message #269834] Tue, 31 March 2009 03:14 Go to previous messageGo to next message
Scott Reed is currently offline Scott ReedFriend
Messages: 8
Registered: July 2009
Junior Member
Sorry, the ZK site is www.zkoss.org.
Re: Double click in package explorer: toolbar resize: unintended file operations [message #269848 is a reply to message #269834] Tue, 31 March 2009 14:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 3/30/2009 8:37 PM, Scott Reed wrote:
> I am mainly experiencing this when using ZK Studio (an Ajax IDE,
> www.zkoss.com). When their "Zul Editor" has focus it adds a few icons to
> the toolbar. This can be enough to cause the toolbar to expand and
> contract as focus enters and leaves the editor. If focus is changed from
> the editor to the package explorer by selecting a file in package
> explorer, it appears that Eclipse interprets what happens as a drag and
> drop operation, either a copy of the selected file if the cursor ends up
> over the same folder, or moving the file if it ends up over an adjacent
> folder. You will be able to see it in the video - I scrunched the window
> down to minimize file size so it starts with 2 rows of icons in the
> toolbar and goes to three when the Zul editor gets focus. See if you can
> download it from http://home.comcast.net/~vvmade/vid/eclipsebug.avi.

That does look quite irritating. Unfortunately, I can not reproduce it
using just Eclipse JEE package (editing JSP files which make the toolbar
larger than normal similar to the Zul editor in your demo). I tried
shrinking the workbench window down just like in your demo, but could
not get any copy-file prompts like you did.
At this point, I'd encourage you to try to reproduce this without the
Zul editor; if you can't, then you should go to the ZX Studio forums and
ask them to look into it.
If you can reproduce with "base" Eclipse, then enter a bug report
(linking to or attaching your screencast would probably help with the
explanation) about it: https://bugs.eclipse.org/bugs

Hope this helps,
Eric
Re: Double click in package explorer: toolbar resize: unintended file operations [message #269861 is a reply to message #269848] Wed, 01 April 2009 03:50 Go to previous messageGo to next message
Scott Reed is currently offline Scott ReedFriend
Messages: 8
Registered: July 2009
Junior Member
When I tried the JSP editor I didn't see the number of toolbar icons
change. I saw icons become enabled and disabled but didn't see any icons
added or removed. Our configurations must be different.

I was able to replicate the same behavior with Instantiations Window
Builder Editor.

In general, this problem will occur with any configuration that causes the
number of toolbar icons to change (increase or decrease) depending on
whether package explorer has focus or some other part of the IDE has
focus. It is then possible to set the toolbar width (either by changing
the width of the whole Eclipse window or the width of the Perspectives
tab) so that adding and removing icons (clicking in package explorer and
in the other part of the IDE) will cause the toolbar to add or subtract a
row (and package explorer to change what's under the cursor) in the midst
of a selection operation causing undesirable file operations.
Re: Double click in package explorer: toolbar resize: unintended file operations [message #269863 is a reply to message #269861] Wed, 01 April 2009 03:56 Go to previous message
Scott Reed is currently offline Scott ReedFriend
Messages: 8
Registered: July 2009
Junior Member
Oops. I was not able to replicate this with the XML editor which causes
the number of icons to change. So I will take this over to ZK for
consideration. Thanks for helping me understand what's going better.
Previous Topic:Team Logical Model
Next Topic:Suggestion to the community
Goto Forum:
  


Current Time: Wed Feb 05 09:51:29 GMT 2025

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

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

Back to the top