Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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
share|improve this answer
    
Nice, thanks for finding that. –  Gnoupi Apr 13 '12 at 9:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.