2

I am a webdeveloper and my current working tools are:

  • Terminal (ssh, tailing logs, grep, git, etc)
  • Eclipse (PDT, Javascript, etc)
  • Firefox (Developer Toolbar + Firebug)

The problem is that I hate using the eclipse navigation tree. For me it is a lot easier to go to the Terminal and do something like this:

$ eclipse /var/www/myproject/long/path/lib/Driver/Sql.php

The annoying part is that the eclipse window is not focused after this command.

I have to manually click on the eclipse window (using mouse... :@ grrr)

Anyway to force eclipse to be focused?

Rui Carneiro
  • 141
  • 1
  • 6

1 Answers1

2

I found a solution: Bash command to focus a specific window

#!/bin/sh
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*
wmctrl -a Eclipse #This will focus the eclipse window
Rui Carneiro
  • 141
  • 1
  • 6