[haiku-bugs] Re: [Haiku] #11008: [WebPositive] select file on Open target folder

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Wed, 16 Jul 2014 08:48:14 -0000

#11008: [WebPositive] select file on Open target folder
----------------------------------------+----------------------------
   Reporter:  diver                     |      Owner:  pulkomandy
       Type:  enhancement               |     Status:  new
   Priority:  normal                    |  Milestone:  R1
  Component:  Applications/WebPositive  |    Version:  R1/Development
 Resolution:                            |   Keywords:
 Blocked By:                            |   Blocking:
Has a Patch:  0                         |   Platform:  All
----------------------------------------+----------------------------

Comment (by pulkomandy):

 Actually this is already implemented in Web+, but doesn't always work.
 There are several problems.

 * The Tracker window is open through BRoster->Launch. There is no way to
 know when this finishes and the window is ready to receive the selection
 message
 * There is no direct way to find the window matching a path. Web+
 currently finds the window from its title, which means the message can get
 to the wrong window if two open folders have the same name. It will also
 only select the file in one window, if there are multiple windows pointing
 to the same folder (either on different workspaces or because of single-
 window mode)

 Tracker scripting support needs to be extended (there even are TODO left
 by Be engineers) so we can do this more reliably:
 * Send an EXECUTE message to Tracker with the ref to a folder, and get
 back a messenger to the opened (or raised) window
 * Use the received messenger to set the selection on that window.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11008#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: