Skip to content

XAware Community

Get the Flash Player to see this player.
Flash Image Rotator Module by Joomlashack.
XAware 5.6
Need Help
Webinars and Events
Advanced Tutorials
Webinars and Events

You are here: Home arrow Forums
XAware Community Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Workig on mac solution (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Workig on mac solution
#2875
tferguson (User)
XAware expert
Posts: 494
User Offline Click here to see the profile of this user
Workig on mac solution 12 Years, 1 Month ago Karma: 6  
Does anyone know why in DNDTreeHandler.java when a drop is done it finally gets to the following code:

Code:

protected void fireRightClick(final Tree tree) { processMousePressedEvent = false; Event event = new Event(); event.type = SWT.MouseDown; event.button = ControlFactory.MOUSE_RIGHT_BUTTON_ID; event.item = tree; event.doit = true; Display.getCurrent().post(event); event = new Event(); event.type = SWT.MouseUp; event.button = ControlFactory.MOUSE_RIGHT_BUTTON_ID; event.doit = true; event.item = tree; Display.getCurrent().post(event); }
The problem with this code is that Display.post(event) causes a complete hang in OS X, so bad the only way I can figure out to recover is to re-boot. So I have tested the following code:
Code:

protected void fireRightClick(final Tree tree) { processMousePressedEvent = false; Event event = new Event(); event.type = SWT.MouseDown; event.button = ControlFactory.MOUSE_RIGHT_BUTTON_ID; event.item = tree; event.doit = true; tree.notifyListeners(event.type, event); // Display.getCurrent().post(event); event = new Event(); event.type = SWT.MouseUp; event.button = ControlFactory.MOUSE_RIGHT_BUTTON_ID; event.doit = true; event.item = tree; tree.notifyListeners(event.type, event); tree.getMenu().setVisible(true); // Display.getCurrent().post(event); }
This appears to be doing exactly the same thing. I don't understand why it was necessary to "simulate" the right mouse click? Does anyone else know why this was required, or see problems with changing this to my proposed code?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
      Topics Author Date
    thread link
Workig on mac solution
tferguson 2008/10/09 15:25
    thread link
thread linkthread link Re:Workig on mac solution
Vasu Thadaka 2008/10/10 04:59
    thread link
thread linkthread linkthread link Re:Workig on mac solution
tferguson 2008/10/10 12:25
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Community Login

Get the Flash Player to see this player.
Flash Image Rotator Module by Joomlashack.
Commercial
Free Training
QuickStart Packages
Image 4 Title
Image 5 Title

Visit XAware.com