Bug 128722 - [Viewers] AntView Menu "Open with" starts default Ant task
Summary: [Viewers] AntView Menu "Open with" starts default Ant task
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Boris Bokowski CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-02-20 16:41 EST by Vera Henneberger CLA
Modified: 2012-06-21 18:02 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vera Henneberger CLA 2006-02-20 16:41:48 EST
1) Open Ant View
2) Press right mouse button on an added build.xml and choose "Open with -> Ant Editor"

EditorPart with build.xml is opened AND the default task of the xml-File starts automatically.
Comment 1 Darin Swanson CLA 2006-02-20 17:56:14 EST
Double clicking in the Ant view will launch the Ant build.

On WinXP, right clicking>Open With>Ant editor does not launch the build.

Kevin can you please see if this reproducable on the Mac?
Comment 2 Vera Henneberger CLA 2006-02-23 03:39:13 EST
Ok I've tried to figure out my problem more precisely:

1) Open Ant View
2) Select a Ant-Build with one click (left mouse button)
3) Click Right mouse button to open popup menu
4) Choose Open With -> Ant Editor
5) build.xml is opened AND default task is started

So the problem seems to be that the combination of left click and right click is recognized as a double click. The default Ant task gets started after the popupmenu gets closed.

The problem occurs on my dual g5 and on my powerbook (both Tiger 10.4.5)
Comment 3 Jared Burns CLA 2006-02-23 13:10:30 EST
Can't reproduce on Linux-GTK. Vera, are you actually using a two-button mouse on the Mac or are you getting right-click behavior with a modifier key?
Comment 4 Vera Henneberger CLA 2006-02-23 15:40:40 EST
- Dual G5 with a two button mouse
- Powerbook no mouse -> using a modifier key
Comment 5 Darin Swanson CLA 2006-03-20 12:32:03 EST
Please take a look Kevin.
Comment 6 Kevin Barnes CLA 2006-03-20 12:49:12 EST
I can reproduce this on my powerbook, but I have to get the timing just right. If I click too slowly the build doesn't execute.
Comment 7 Kevin Barnes CLA 2006-03-20 13:08:04 EST
We're getting a double click event that isn't expected. Moving to JFace for comment.
Comment 8 Darin Swanson CLA 2006-03-21 10:47:09 EST
not sure what this has to do with contributions?

This is a programmatic double click listener and we are getting a double click event when we do not expect it.
Comment 9 Douglas Pollock CLA 2006-03-21 13:51:18 EST
What type of object are you attaching a listener to?  Please be precise.
Comment 10 Darin Swanson CLA 2006-03-21 14:01:02 EST
Line 325 of the org.eclipse.ant.internal.ui.views.AntView
Adding a double click listener to an org.eclipse.jface.viewers.TreeViewer.
Comment 11 Douglas Pollock CLA 2006-03-21 18:09:35 EST
Re-directing to Boris....
Comment 12 Silenio Quarti CLA 2012-06-21 18:02:18 EDT
Closing report, platform is discontinued.

Cannot reproduce on cocoa.