I made some tries, the problem is that when Eclipse is already running, you have no way to open it in the running instance.
I looked for some plugins, but no clean way to do that... The script given by Lukasz is useful, half of the solution. Just miss the line to tell the running Eclipse "Hey, open this file".... Looked at Eclipse documentation, no information. Should go see Eclipse usergroups. 2009/12/12 klemens_u <[email protected]> > Hi Lukasz, > > thanks for your input. > > Sadly I didn't find any information on how to supply a filename to the > Eclipse executable. > > Anyone? > > Thanks, Klemens > > On 12 Dez., 03:13, Łukasz Wojciechowski <[email protected]> > wrote: > > Hi > > > > First check If You can load a specific file when running Your IDE. > > > > I have managed to get this working with netbeans and to open a file in > > netbeans it is just to run: > > netbeans FILE_PATH:LINE_NUMBER > > Check what it looks like in PDT and adjust those instructions > accodringly. > > > > So assuming that You are using firefox 3 and Linux and have > > /usr/bin/php binary available: > > > > 1. > > add custom protocol to firefox following instructions from here: > http://kb.mozillazine.org/Register_protocol#Firefox_3.5_specific__.28... > > > > For our case You need to replace "foo" with "editor" > > > > 2. > > create script on Your disk with following content, lets say that you > > name it "pdt-firefox-launcher": > > #!/usr/bin/php > > <?php > > $arg = urldecode( str_replace( 'editor:', '', $_SERVER['argv'][1] ) ); > > $data = explode( ':', $arg ); > > $file = $data[0]; > > $line = $data[1]; > > passthru( "PATH_TO_PDT_EXECUTABLE $file:$line" ); > > ?> > > > > make it executable: > > chmod +x pdt-firefox-launcher > > > > 3. in settings.yml setfile_link_formatvalue like that: > > all: > > .settings: > > file_link_format: editor:%f:%l > > > > Now when You will see some exceptin dump from symfony application file > > names should be links like "editor:FILE_PATH:LINE_NUMBER". > > When You click this link firefox should ask You to specify which > > program to run for that kind of links - point it to Your > > "pdt-firefox-launcher" script created earlier > > > > Thats it - from now on every link should open up PDT with specified file > > > > Good luck > > -- > > Best regards > > Lukasz Wojciechowski > > > > New Generation Software > > +48 602 214 629http://www.ngsoft.pl > > > > 2009/12/11 klemens_u <[email protected]>: > > > > > Hi everybody, > > > > > I just read about the "file_link_format" option of symfony / xdebug in > > > the advent calendar: > > >http://www.symfony-project.org/advent_calendar/4/en > > > > > Does anyone know how to setup this for PDT/Eclipse? > > > > > Thanks, Klemens :-) > > > > > -- > > > > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > [email protected]<symfony-users%[email protected]> > . > > > For more options, visit this group athttp:// > groups.google.com/group/symfony-users?hl=en. > > > > > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<symfony-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > > -- Alexandre Salomé http://alexandre-salome.fr -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
